summaryrefslogtreecommitdiff
path: root/src/net/eathena/mailhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
commit84d2bab38202cd52b5eb0a37c12204ab6f607915 (patch)
tree2f3951b2f4f3b75f190eb2539979cc4afbace27c /src/net/eathena/mailhandler.cpp
parent40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff)
downloadmv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip
Remove MessageHandler class
Diffstat (limited to 'src/net/eathena/mailhandler.cpp')
-rw-r--r--src/net/eathena/mailhandler.cpp62
1 files changed, 1 insertions, 61 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp
index 654032536..3561f3e6a 100644
--- a/src/net/eathena/mailhandler.cpp
+++ b/src/net/eathena/mailhandler.cpp
@@ -33,71 +33,11 @@ extern Net::MailHandler *mailHandler;
namespace EAthena
{
-MailHandler::MailHandler() :
- MessageHandler()
+MailHandler::MailHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_MAIL_OPEN_WINDOW,
- SMSG_MAIL_MAILS_LIST,
- SMSG_MAIL_READ_MAIL,
- SMSG_MAIL_GET_ATTACHMENT,
- SMSG_MAIL_SEND_MAIL_ACK,
- SMSG_MAIL_NEW_MAIL,
- SMSG_MAIL_SET_ATTACHMENT_ACK,
- SMSG_MAIL_DELETE_MAIL_ACK,
- SMSG_MAIL_RETURN,
- 0
- };
- handledMessages = _messages;
mailHandler = this;
}
-void MailHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_MAIL_OPEN_WINDOW:
- MailRecv::processMailOpen(msg);
- break;
-
- case SMSG_MAIL_MAILS_LIST:
- MailRecv::processMailList(msg);
- break;
-
- case SMSG_MAIL_READ_MAIL:
- MailRecv::processReadMail(msg);
- break;
-
- case SMSG_MAIL_GET_ATTACHMENT:
- MailRecv::processGetAttachment(msg);
- break;
-
- case SMSG_MAIL_SEND_MAIL_ACK:
- MailRecv::processSendMailAck(msg);
- break;
-
- case SMSG_MAIL_NEW_MAIL:
- MailRecv::processNewMail(msg);
- break;
-
- case SMSG_MAIL_SET_ATTACHMENT_ACK:
- MailRecv::processSetAttachmentAck(msg);
- break;
-
- case SMSG_MAIL_DELETE_MAIL_ACK:
- MailRecv::processDeleteAck(msg);
- break;
-
- case SMSG_MAIL_RETURN:
- MailRecv::processMailReturn(msg);
- break;
-
- default:
- break;
- }
-}
-
void MailHandler::refresh() const
{
createOutPacket(CMSG_MAIL_REFRESH_INBOX);