7 #define COMMANDS Commands::instance()
10 * Class which holds all commands for the command line. This is separated in
11 * this module to alow the use of different languages for the GUI and the
12 * command interface. Implemented as singleton.
14 * @author Andrew Mustun
16 class Commands: public QObject
19 QStringList complete(const QString & cmd);
20 RS2::ActionType cmdToAction(const QString & cmd);
21 RS2::ActionType keycodeToAction(const QString & code);
24 static Commands * instance();
25 static QString command(const QString & cmd);
26 static bool checkCommand(const QString & cmd, const QString & str,
27 RS2::ActionType action = RS2::ActionNone);
28 static QString msgAvailableCommands();
32 static Commands * uniqueInstance;
37 QMultiHash<QString, RS2::ActionType *> mainCommands;
38 QMultiHash<QString, RS2::ActionType *> shortCommands;
41 #endif // __COMMANDS_H__