From 0fe0f8bae7b754453e6e6bb7c7b29903facb9311 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Mar 2013 21:45:16 +0300 Subject: improve chathandler class. --- src/net/chathandler.h | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) (limited to 'src/net/chathandler.h') diff --git a/src/net/chathandler.h b/src/net/chathandler.h index c21a30f74..e4fe2deb7 100644 --- a/src/net/chathandler.h +++ b/src/net/chathandler.h @@ -35,41 +35,23 @@ class ChatHandler { } virtual void talk(const std::string &text, - const std::string &channel) = 0; + const std::string &channel) const = 0; - virtual void talkRaw(const std::string &text) = 0; + virtual void talkRaw(const std::string &text) const = 0; - virtual void me(const std::string &text) = 0; + virtual void me(const std::string &text, + const std::string &channel) const = 0; virtual void privateMessage(const std::string &recipient, const std::string &text) = 0; - virtual void channelList() = 0; + virtual void who() const = 0; - virtual void enterChannel(const std::string &channel, - const std::string &password) = 0; + virtual void sendRaw(const std::string &args) const = 0; - virtual void quitChannel(int channelId) = 0; + virtual void ignoreAll() const = 0; - virtual void sendToChannel(int channelId, const std::string &text) = 0; - - virtual void userList(const std::string &channel) = 0; - - virtual void setChannelTopic(int channelId, - const std::string &text) = 0; - - virtual void setUserMode(int channelId, const std::string &name, - int mode) = 0; - - virtual void kickUser(int channelId, const std::string &name) = 0; - - virtual void who() = 0; - - virtual void sendRaw(const std::string &args) = 0; - - virtual void ignoreAll() = 0; - - virtual void unIgnoreAll() = 0; + virtual void unIgnoreAll() const = 0; }; } -- cgit v1.2.3-70-g09d2