summaryrefslogtreecommitdiff
path: root/src/commandhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-18 17:02:13 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-18 17:02:13 +0300
commitdd828df46a661fbd0a24fbe540a4a585360be005 (patch)
tree7963e4739a4f6ace5d5c847edd4e679cc6c9bf87 /src/commandhandler.h
parentea28a76cfbace0ccc8d25e523b410f2dea339423 (diff)
downloadmv-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.h20
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;