summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-07 17:32:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-07 17:32:13 +0300
commit0255911fce07d79d29684f9837f96a4c824f4040 (patch)
tree39a4422f86d8075bd0507119cdcccb1b35fc1234
parent3b96653ddb43f1d02979ebb92fb3b08f39a5aa68 (diff)
downloadmv-0255911fce07d79d29684f9837f96a4c824f4040.tar.gz
mv-0255911fce07d79d29684f9837f96a4c824f4040.tar.bz2
mv-0255911fce07d79d29684f9837f96a4c824f4040.tar.xz
mv-0255911fce07d79d29684f9837f96a4c824f4040.zip
Add empty searchstorehandler.
-rw-r--r--src/CMakeLists.txt4
-rw-r--r--src/Makefile.am5
-rw-r--r--src/net/eathena/generalhandler.cpp5
-rw-r--r--src/net/eathena/generalhandler.h1
-rw-r--r--src/net/eathena/searchstorehandler.cpp52
-rw-r--r--src/net/eathena/searchstorehandler.h43
-rw-r--r--src/net/net.cpp2
-rw-r--r--src/net/searchstorehandler.h42
-rw-r--r--src/net/tmwa/generalhandler.cpp5
-rw-r--r--src/net/tmwa/generalhandler.h1
-rw-r--r--src/net/tmwa/searchstorehandler.cpp50
-rw-r--r--src/net/tmwa/searchstorehandler.h43
12 files changed, 251 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a0fa78e31..d805ff267 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1385,6 +1385,8 @@ SET(SRCS_TMWA
net/tmwa/protocol.h
net/tmwa/questhandler.cpp
net/tmwa/questhandler.h
+ net/tmwa/searchstorehandler.cpp
+ net/tmwa/searchstorehandler.h
net/tmwa/serverfeatures.cpp
net/tmwa/serverfeatures.h
net/tmwa/skillhandler.cpp
@@ -1466,6 +1468,8 @@ SET(SRCS_EATHENA
net/eathena/protocol.h
net/eathena/questhandler.cpp
net/eathena/questhandler.h
+ net/eathena/searchstorehandler.cpp
+ net/eathena/searchstorehandler.h
net/eathena/serverfeatures.cpp
net/eathena/serverfeatures.h
net/eathena/skillhandler.cpp
diff --git a/src/Makefile.am b/src/Makefile.am
index f0bcb6686..0d0d84594 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -702,6 +702,7 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \
net/registrationoptions.h \
net/sdltcpnet.cpp \
net/sdltcpnet.h \
+ net/searchstorehandler.h \
net/serverfeatures.h \
net/serverinfo.h \
net/skillhandler.h \
@@ -1319,6 +1320,8 @@ manaplus_SOURCES += \
net/tmwa/protocol.h \
net/tmwa/questhandler.cpp \
net/tmwa/questhandler.h \
+ net/tmwa/searchstorehandler.cpp \
+ net/tmwa/searchstorehandler.h \
net/tmwa/serverfeatures.cpp \
net/tmwa/serverfeatures.h \
net/tmwa/skillhandler.cpp \
@@ -1401,6 +1404,8 @@ manaplus_SOURCES += net/eathena/adminhandler.cpp \
net/eathena/protocol.h \
net/eathena/questhandler.cpp \
net/eathena/questhandler.h \
+ net/eathena/searchstorehandler.cpp \
+ net/eathena/searchstorehandler.h \
net/eathena/serverfeatures.cpp \
net/eathena/serverfeatures.h \
net/eathena/skillhandler.cpp \
diff --git a/src/net/eathena/generalhandler.cpp b/src/net/eathena/generalhandler.cpp
index 570d79136..7ded3aa35 100644
--- a/src/net/eathena/generalhandler.cpp
+++ b/src/net/eathena/generalhandler.cpp
@@ -65,6 +65,7 @@
#include "net/eathena/pethandler.h"
#include "net/eathena/playerhandler.h"
#include "net/eathena/protocol.h"
+#include "net/eathena/searchstorehandler.h"
#include "net/eathena/serverfeatures.h"
#include "net/eathena/tradehandler.h"
#include "net/eathena/skillhandler.h"
@@ -117,7 +118,8 @@ GeneralHandler::GeneralHandler() :
mFriendsHandler(new FriendsHandler),
mElementalHandler(new ElementalHandler),
mMarketHandler(new MarketHandler),
- mVendingHandler(new VendingHandler)
+ mVendingHandler(new VendingHandler),
+ mSearchStoreHandler(new SearchStoreHandler)
{
static const uint16_t _messages[] =
{
@@ -307,6 +309,7 @@ void GeneralHandler::load()
mNetwork->registerHandler(mElementalHandler);
mNetwork->registerHandler(mMarketHandler);
mNetwork->registerHandler(mVendingHandler);
+ mNetwork->registerHandler(mSearchStoreHandler);
}
void GeneralHandler::reload()
diff --git a/src/net/eathena/generalhandler.h b/src/net/eathena/generalhandler.h
index fcd22265e..892653739 100644
--- a/src/net/eathena/generalhandler.h
+++ b/src/net/eathena/generalhandler.h
@@ -95,6 +95,7 @@ class GeneralHandler final : public MessageHandler,
MessageHandlerPtr mElementalHandler;
MessageHandlerPtr mMarketHandler;
MessageHandlerPtr mVendingHandler;
+ MessageHandlerPtr mSearchStoreHandler;
};
} // namespace EAthena
diff --git a/src/net/eathena/searchstorehandler.cpp b/src/net/eathena/searchstorehandler.cpp
new file mode 100644
index 000000000..602a8dce1
--- /dev/null
+++ b/src/net/eathena/searchstorehandler.cpp
@@ -0,0 +1,52 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2015 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/searchstorehandler.h"
+
+#include "net/eathena/protocol.h"
+
+#include "debug.h"
+
+extern Net::SearchStoreHandler *searchStoreHandler;
+
+namespace EAthena
+{
+
+SearchStoreHandler::SearchStoreHandler() :
+ MessageHandler()
+{
+ static const uint16_t _messages[] =
+ {
+ 0
+ };
+ handledMessages = _messages;
+ searchStoreHandler = this;
+}
+
+void SearchStoreHandler::handleMessage(Net::MessageIn &msg)
+{
+ switch (msg.getId())
+ {
+ default:
+ break;
+ }
+}
+
+} // namespace EAthena
diff --git a/src/net/eathena/searchstorehandler.h b/src/net/eathena/searchstorehandler.h
new file mode 100644
index 000000000..f9c486faf
--- /dev/null
+++ b/src/net/eathena/searchstorehandler.h
@@ -0,0 +1,43 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2015 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_SEARCHSTOREHANDLER_H
+#define NET_EATHENA_SEARCHSTOREHANDLER_H
+
+#include "net/searchstorehandler.h"
+
+#include "net/eathena/messagehandler.h"
+
+namespace EAthena
+{
+class SearchStoreHandler final : public MessageHandler,
+ public Net::SearchStoreHandler
+{
+ public:
+ SearchStoreHandler();
+
+ A_DELETE_COPY(SearchStoreHandler)
+
+ void handleMessage(Net::MessageIn &msg) override final;
+};
+
+} // namespace EAthena
+
+#endif // NET_EATHENA_SEARCHSTOREHANDLER_H
diff --git a/src/net/net.cpp b/src/net/net.cpp
index d9b32dc29..3dc095cef 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -65,6 +65,7 @@ namespace Net
class PetHandler;
class PlayerHandler;
class QuestHandler;
+ class SearchStoreHandler;
class ServerFeatures;
class SkillHandler;
class TradeHandler;
@@ -101,6 +102,7 @@ Net::FriendsHandler *friendsHandler = nullptr;
Net::ElementalHandler *elementalHandler = nullptr;
Net::MarketHandler *marketHandler = nullptr;
Net::VendingHandler *vendingHandler = nullptr;
+Net::SearchStoreHandler *searchStoreHandler = nullptr;
namespace Net
{
diff --git a/src/net/searchstorehandler.h b/src/net/searchstorehandler.h
new file mode 100644
index 000000000..30b5d0e88
--- /dev/null
+++ b/src/net/searchstorehandler.h
@@ -0,0 +1,42 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2015 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_SEARCHSTOREHANDLER_H
+#define NET_SEARCHSTOREHANDLER_H
+
+#include <string>
+
+#include "localconsts.h"
+
+namespace Net
+{
+
+class SearchStoreHandler notfinal
+{
+ public:
+ virtual ~SearchStoreHandler()
+ { }
+};
+
+} // namespace Net
+
+extern Net::SearchStoreHandler *searchStoreHandler;
+
+#endif // NET_SEARCHSTOREHANDLER_H
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index a34da33dc..359cc5492 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -63,6 +63,7 @@
#include "net/tmwa/pethandler.h"
#include "net/tmwa/playerhandler.h"
#include "net/tmwa/protocol.h"
+#include "net/tmwa/searchstorehandler.h"
#include "net/tmwa/serverfeatures.h"
#include "net/tmwa/tradehandler.h"
#include "net/tmwa/skillhandler.h"
@@ -115,7 +116,8 @@ GeneralHandler::GeneralHandler() :
mFriendsHandler(new FriendsHandler),
mElementalHandler(new ElementalHandler),
mMarketHandler(new MarketHandler),
- mVendingHandler(new VendingHandler)
+ mVendingHandler(new VendingHandler),
+ mSearchStoreHandler(new SearchStoreHandler)
{
static const uint16_t _messages[] =
{
@@ -243,6 +245,7 @@ void GeneralHandler::load()
mNetwork->registerHandler(mElementalHandler);
mNetwork->registerHandler(mMarketHandler);
mNetwork->registerHandler(mVendingHandler);
+ mNetwork->registerHandler(mSearchStoreHandler);
}
void GeneralHandler::reload()
diff --git a/src/net/tmwa/generalhandler.h b/src/net/tmwa/generalhandler.h
index ed1bc983c..01eda4145 100644
--- a/src/net/tmwa/generalhandler.h
+++ b/src/net/tmwa/generalhandler.h
@@ -93,6 +93,7 @@ class GeneralHandler final : public MessageHandler,
MessageHandlerPtr mElementalHandler;
MessageHandlerPtr mMarketHandler;
MessageHandlerPtr mVendingHandler;
+ MessageHandlerPtr mSearchStoreHandler;
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/searchstorehandler.cpp b/src/net/tmwa/searchstorehandler.cpp
new file mode 100644
index 000000000..26e35725f
--- /dev/null
+++ b/src/net/tmwa/searchstorehandler.cpp
@@ -0,0 +1,50 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2015 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/tmwa/searchstorehandler.h"
+
+#include "debug.h"
+
+extern Net::SearchStoreHandler *searchStoreHandler;
+
+namespace TmwAthena
+{
+
+SearchStoreHandler::SearchStoreHandler() :
+ MessageHandler()
+{
+ static const uint16_t _messages[] =
+ {
+ 0
+ };
+ handledMessages = _messages;
+ searchStoreHandler = this;
+}
+
+void SearchStoreHandler::handleMessage(Net::MessageIn &msg)
+{
+ switch (msg.getId())
+ {
+ default:
+ break;
+ }
+}
+
+} // namespace TmwAthena
diff --git a/src/net/tmwa/searchstorehandler.h b/src/net/tmwa/searchstorehandler.h
new file mode 100644
index 000000000..f5c00a6c1
--- /dev/null
+++ b/src/net/tmwa/searchstorehandler.h
@@ -0,0 +1,43 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2015 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_TMWA_SEARCHSTOREHANDLER_H
+#define NET_TMWA_SEARCHSTOREHANDLER_H
+
+#include "net/searchstorehandler.h"
+
+#include "net/tmwa/messagehandler.h"
+
+namespace TmwAthena
+{
+class SearchStoreHandler final : public MessageHandler,
+ public Net::SearchStoreHandler
+{
+ public:
+ SearchStoreHandler();
+
+ A_DELETE_COPY(SearchStoreHandler)
+
+ void handleMessage(Net::MessageIn &msg) override final;
+};
+
+} // namespace TmwAthena
+
+#endif // NET_TMWA_SEARCHSTOREHANDLER_H