summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-28 23:30:51 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-29 04:26:04 +0300
commitc8b18b47abbb325b6cc4b34abbad52b03825e4f9 (patch)
tree3fbca23dda0c1c1ec31c54373e4faa74c998bb76 /src/net/tmwa/chathandler.h
parent0cc6167c407c1cf18158ca0e154a3b1cab48853d (diff)
downloadplus-c8b18b47abbb325b6cc4b34abbad52b03825e4f9.tar.gz
plus-c8b18b47abbb325b6cc4b34abbad52b03825e4f9.tar.bz2
plus-c8b18b47abbb325b6cc4b34abbad52b03825e4f9.tar.xz
plus-c8b18b47abbb325b6cc4b34abbad52b03825e4f9.zip
Extract shared logic from chathandler and gamehandler netcode to ea namespace.
Diffstat (limited to 'src/net/tmwa/chathandler.h')
-rw-r--r--src/net/tmwa/chathandler.h29
1 files changed, 3 insertions, 26 deletions
diff --git a/src/net/tmwa/chathandler.h b/src/net/tmwa/chathandler.h
index c1b1f26fa..d9e927e03 100644
--- a/src/net/tmwa/chathandler.h
+++ b/src/net/tmwa/chathandler.h
@@ -26,9 +26,9 @@
#include "net/chathandler.h"
#include "net/net.h"
-#include "net/tmwa/messagehandler.h"
+#include "net/ea/chathandler.h"
-#include <queue>
+#include "net/tmwa/messagehandler.h"
#ifdef __GNUC__
#define A_UNUSED __attribute__ ((unused))
@@ -39,7 +39,7 @@
namespace TmwAthena
{
-class ChatHandler : public MessageHandler, public Net::ChatHandler
+class ChatHandler : public MessageHandler, public Ea::ChatHandler
{
public:
ChatHandler();
@@ -50,37 +50,14 @@ class ChatHandler : public MessageHandler, public Net::ChatHandler
void talkRaw(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);
-
void who();
void sendRaw(const std::string &args);
void processRaw(MessageOut &outMsg, std::string &line);
-
- private:
- typedef std::queue<std::string> WhisperQueue;
- WhisperQueue mSentWhispers;
};
} // namespace TmwAthena