blob: 128b5f423eb61ae7fbe966aeb973f2410615b2e5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#pragma once
#include <QtCore/qcontainerfwd.h>
#include <QtCore>
enum CommandType {
Noop,
LuaEval,
Open,
TabOpen,
TabNext,
TabPrev,
};
class Cmd {
public:
CommandType command;
QStringList args;
Cmd(CommandType command = Noop, QStringList args = QStringList())
: command(command), args(args) {}
};
class CommandParser {
public:
CommandParser();
Cmd parse(QString command);
private:
CommandType toCommandType(QString cmd);
};
|