summaryrefslogtreecommitdiff
path: root/src/net/tmwserv/chathandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwserv/chathandler.h')
-rw-r--r--src/net/tmwserv/chathandler.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/net/tmwserv/chathandler.h b/src/net/tmwserv/chathandler.h
index f0604da8..05f5243d 100644
--- a/src/net/tmwserv/chathandler.h
+++ b/src/net/tmwserv/chathandler.h
@@ -22,9 +22,12 @@
#ifndef NET_TMWSERV_CHATHANDLER_H
#define NET_TMWSERV_CHATHANDLER_H
+#include "net/chathandler.h"
#include "net/messagehandler.h"
-class ChatHandler : public MessageHandler
+namespace TmwServ {
+
+class ChatHandler : public MessageHandler, public Net::ChatHandler
{
public:
ChatHandler();
@@ -33,6 +36,30 @@ class ChatHandler : public MessageHandler
* Handle the given message appropriately.
*/
void handleMessage(MessageIn &msg);
+
+ void talk(const std::string &text);
+
+ void me(const std::string &text);
+
+ void privateMessage(const std::string &recipient,
+ const std::string &text);
+
+ 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);
private:
/**
@@ -81,4 +108,6 @@ class ChatHandler : public MessageHandler
void handleChannelEvent(MessageIn &msg);
};
+} // namespace TmwServ
+
#endif