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