diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-10 23:53:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-10 23:53:20 +0300 |
commit | a12b573538c7816ba3f79cc0c67fc98614e1fdc2 (patch) | |
tree | fca2b3b2315164b73416955241fea5507c106659 /src/net/eathena | |
parent | 051d2ee3bc0ec387acde86081d999b1c90a7806f (diff) | |
download | manaverse-a12b573538c7816ba3f79cc0c67fc98614e1fdc2.tar.gz manaverse-a12b573538c7816ba3f79cc0c67fc98614e1fdc2.tar.bz2 manaverse-a12b573538c7816ba3f79cc0c67fc98614e1fdc2.tar.xz manaverse-a12b573538c7816ba3f79cc0c67fc98614e1fdc2.zip |
Add empty mail2handler.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/generalhandler.cpp | 3 | ||||
-rw-r--r-- | src/net/eathena/generalhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/mail2handler.cpp | 38 | ||||
-rw-r--r-- | src/net/eathena/mail2handler.h | 41 |
4 files changed, 84 insertions, 0 deletions
diff --git a/src/net/eathena/generalhandler.cpp b/src/net/eathena/generalhandler.cpp index 9758b8a7d..0557c652b 100644 --- a/src/net/eathena/generalhandler.cpp +++ b/src/net/eathena/generalhandler.cpp @@ -51,6 +51,7 @@ #include "net/eathena/itemhandler.h" #include "net/eathena/loginhandler.h" #include "net/eathena/maphandler.h" +#include "net/eathena/mail2handler.h" #include "net/eathena/mailhandler.h" #include "net/eathena/markethandler.h" #include "net/eathena/mercenaryhandler.h" @@ -94,6 +95,7 @@ GeneralHandler::GeneralHandler() : mTradeHandler(new TradeHandler), mQuestHandler(new QuestHandler), mServerFeatures(new ServerFeatures), + mMail2Handler(new Mail2Handler), mMailHandler(new MailHandler), mAuctionHandler(new AuctionHandler), mCashShopHandler(new CashShopHandler), @@ -136,6 +138,7 @@ GeneralHandler::~GeneralHandler() delete2(mTradeHandler); delete2(mQuestHandler); delete2(mServerFeatures); + delete2(mMail2Handler); delete2(mMailHandler); delete2(mAuctionHandler); delete2(mCashShopHandler); diff --git a/src/net/eathena/generalhandler.h b/src/net/eathena/generalhandler.h index 032127bb4..c4ff43402 100644 --- a/src/net/eathena/generalhandler.h +++ b/src/net/eathena/generalhandler.h @@ -56,6 +56,7 @@ class FamilyHandler; class FriendsHandler; class HomunculusHandler; class MailHandler; +class Mail2Handler; class MapHandler; class MarketHandler; class MercenaryHandler; @@ -109,6 +110,7 @@ class GeneralHandler final : public Net::GeneralHandler TradeHandler *mTradeHandler; QuestHandler *mQuestHandler; ServerFeatures *mServerFeatures; + Mail2Handler *mMail2Handler; MailHandler *mMailHandler; AuctionHandler *mAuctionHandler; CashShopHandler *mCashShopHandler; diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp new file mode 100644 index 000000000..f6a3c88ca --- /dev/null +++ b/src/net/eathena/mail2handler.cpp @@ -0,0 +1,38 @@ +/* + * The ManaPlus Client + * Copyright (C) 2011-2017 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "net/eathena/mail2handler.h" + +#include "debug.h" + +namespace EAthena +{ + +Mail2Handler::Mail2Handler() +{ + mail2Handler = this; +} + +Mail2Handler::~Mail2Handler() +{ + mail2Handler = nullptr; +} + +} // namespace EAthena diff --git a/src/net/eathena/mail2handler.h b/src/net/eathena/mail2handler.h new file mode 100644 index 000000000..41004c72c --- /dev/null +++ b/src/net/eathena/mail2handler.h @@ -0,0 +1,41 @@ +/* + * The ManaPlus Client + * Copyright (C) 2011-2017 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef NET_EATHENA_MAIL2HANDLER_H +#define NET_EATHENA_MAIL2HANDLER_H + +#include "net/mail2handler.h" + +namespace EAthena +{ + +class Mail2Handler final : public Net::Mail2Handler +{ + public: + Mail2Handler(); + + A_DELETE_COPY(Mail2Handler) + + ~Mail2Handler(); +}; + +} // namespace EAthena + +#endif // NET_EATHENA_MAIL2HANDLER_H |