diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-27 21:45:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-27 21:45:16 +0300 |
commit | 0fe0f8bae7b754453e6e6bb7c7b29903facb9311 (patch) | |
tree | d92c810fbc93fe8bb2f362a7ef023ebe96653c2d /src/net/chathandler.h | |
parent | 8150191686759b13a239c25970924c3c186140ff (diff) | |
download | plus-0fe0f8bae7b754453e6e6bb7c7b29903facb9311.tar.gz plus-0fe0f8bae7b754453e6e6bb7c7b29903facb9311.tar.bz2 plus-0fe0f8bae7b754453e6e6bb7c7b29903facb9311.tar.xz plus-0fe0f8bae7b754453e6e6bb7c7b29903facb9311.zip |
improve chathandler class.
Diffstat (limited to 'src/net/chathandler.h')
-rw-r--r-- | src/net/chathandler.h | 34 |
1 files changed, 8 insertions, 26 deletions
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; }; } |