summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-27 21:45:16 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-27 21:45:16 +0300
commit0fe0f8bae7b754453e6e6bb7c7b29903facb9311 (patch)
treed92c810fbc93fe8bb2f362a7ef023ebe96653c2d /src/net/ea/chathandler.h
parent8150191686759b13a239c25970924c3c186140ff (diff)
downloadplus-0fe0f8bae7b754453e6e6bb7c7b29903facb9311.tar.gz
plus-0fe0f8bae7b754453e6e6bb7c7b29903facb9311.tar.bz2
plus-0fe0f8bae7b754453e6e6bb7c7b29903facb9311.tar.xz
plus-0fe0f8bae7b754453e6e6bb7c7b29903facb9311.zip
improve chathandler class.
Diffstat (limited to 'src/net/ea/chathandler.h')
-rw-r--r--src/net/ea/chathandler.h39
1 files changed, 5 insertions, 34 deletions
diff --git a/src/net/ea/chathandler.h b/src/net/ea/chathandler.h
index d46b10057..416589e86 100644
--- a/src/net/ea/chathandler.h
+++ b/src/net/ea/chathandler.h
@@ -40,50 +40,21 @@ class ChatHandler : public Net::ChatHandler
A_DELETE_COPY(ChatHandler)
- virtual void talk(const std::string &text,
- const std::string &channel) = 0;
-
- virtual void talkRaw(const std::string &text) = 0;
-
- void me(const std::string &text);
-
- virtual void privateMessage(const std::string &recipient,
- const std::string &text) = 0;
-
- void channelList();
-
- void enterChannel(const std::string &channel,
- const std::string &password);
-
- void quitChannel(int channelId);
-
- void sendToChannel(int channelId, const std::string &text);
-
- void userList(const std::string &channel);
-
- void setChannelTopic(int channelId, const std::string &text);
-
- void setUserMode(int channelId, const std::string &name, int mode);
-
- void kickUser(int channelId, const std::string &name);
-
- virtual void who() = 0;
-
- virtual void sendRaw(const std::string &args) = 0;
+ void me(const std::string &text, const std::string &channel) const;
virtual void processWhisperResponse(Net::MessageIn &msg);
virtual void processWhisper(Net::MessageIn &msg);
virtual void processBeingChat(Net::MessageIn &msg,
- const bool channels);
+ const bool channels) const;
virtual void processChat(Net::MessageIn &msg, bool normalChat,
- bool channels);
+ const bool channels) const;
- virtual void processMVP(Net::MessageIn &msg);
+ virtual void processMVP(Net::MessageIn &msg) const;
- virtual void processIgnoreAllResponse(Net::MessageIn &msg);
+ virtual void processIgnoreAllResponse(Net::MessageIn &msg) const;
protected:
typedef std::queue<std::string> WhisperQueue;