From dd828df46a661fbd0a24fbe540a4a585360be005 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 May 2013 17:02:13 +0300 Subject: add named commands with enum. use some named commands from popupmenu. --- src/commandhandler.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/commandhandler.h') 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; -- cgit v1.2.3-60-g2f50