summaryrefslogtreecommitdiff
path: root/src/listeners/buyingstoreslotslistener.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-14 23:28:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-14 23:28:02 +0300
commitc7f54151ba693e7f57378b77cc567d5aa26cf4cf (patch)
tree653165d368da9fc58c9dbb5a8161e4e420a0b37c /src/listeners/buyingstoreslotslistener.h
parentc26624e72bb8d60bc1fa13cd5a178e06579e49a4 (diff)
downloadplus-c7f54151ba693e7f57378b77cc567d5aa26cf4cf.tar.gz
plus-c7f54151ba693e7f57378b77cc567d5aa26cf4cf.tar.bz2
plus-c7f54151ba693e7f57378b77cc567d5aa26cf4cf.tar.xz
plus-c7f54151ba693e7f57378b77cc567d5aa26cf4cf.zip
Enable publish button in personal buy shop only if it allowed by server.
Diffstat (limited to 'src/listeners/buyingstoreslotslistener.h')
-rw-r--r--src/listeners/buyingstoreslotslistener.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/listeners/buyingstoreslotslistener.h b/src/listeners/buyingstoreslotslistener.h
new file mode 100644
index 000000000..dc180a9cc
--- /dev/null
+++ b/src/listeners/buyingstoreslotslistener.h
@@ -0,0 +1,38 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2014-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 LISTENERS_BUYINGSTORESLOTSLISTENER_H
+#define LISTENERS_BUYINGSTORESLOTSLISTENER_H
+
+#include "listeners/baselistener.hpp"
+
+#include "localconsts.h"
+
+class BuyingStoreSlotsListener notfinal
+{
+ public:
+ virtual void buyingStoreSlotsChanged(const int slots) = 0;
+
+ static void distributeEvent(const int slots);
+
+ defineListenerHeader(BuyingStoreSlotsListener)
+};
+
+#endif // LISTENERS_BUYINGSTORESLOTSLISTENER_H