diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-18 17:02:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-18 17:02:13 +0300 |
commit | dd828df46a661fbd0a24fbe540a4a585360be005 (patch) | |
tree | 7963e4739a4f6ace5d5c847edd4e679cc6c9bf87 /src/commandhandler.h | |
parent | ea28a76cfbace0ccc8d25e523b410f2dea339423 (diff) | |
download | mv-dd828df46a661fbd0a24fbe540a4a585360be005.tar.gz mv-dd828df46a661fbd0a24fbe540a4a585360be005.tar.bz2 mv-dd828df46a661fbd0a24fbe540a4a585360be005.tar.xz mv-dd828df46a661fbd0a24fbe540a4a585360be005.zip |
add named commands with enum.
use some named commands from popupmenu.
Diffstat (limited to 'src/commandhandler.h')
-rw-r--r-- | src/commandhandler.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/commandhandler.h b/src/commandhandler.h index 58fe78bf5..2bcd9e596 100644 --- a/src/commandhandler.h +++ b/src/commandhandler.h @@ -61,13 +61,29 @@ class CommandHandler final void handleCommand(const std::string &command, ChatTab *const tab = localChatTab); + void handleCommands(const std::string &command, + ChatTab *const tab = localChatTab); + void invokeCommand(const std::string &type, const std::string &args, ChatTab *const tab, const bool warn = false); - void handleCommands(const std::string &command, - ChatTab *const tab = localChatTab); + void invokeCommand(const int type, + const bool warn = false); + + void invokeCommand(const int type, + const std::string &args, + ChatTab *const tab, + const bool warn = false); + + void invokeCommand(const int type, + const std::string &args, + const bool warn = false); + + void invokeCommand(const int type, + ChatTab *const tab, + const bool warn = false); protected: friend class ChatTab; |