summaryrefslogtreecommitdiff
path: root/src/listeners
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-02 22:15:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-02 22:15:12 +0300
commit82644cd319e46e35a7b4e3b4a61fac2465a2ea66 (patch)
treed737e04b71ea583abe1e835ece785b147a6abfb9 /src/listeners
parent37343e2b49466bb6cab33f8d1ca362a25f77a660 (diff)
downloadplus-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.tar.gz
plus-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.tar.bz2
plus-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.tar.xz
plus-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.zip
Add missing final/notfinal to classes.
Diffstat (limited to 'src/listeners')
-rw-r--r--src/listeners/actionlistener.h2
-rw-r--r--src/listeners/actorspritelistener.h2
-rw-r--r--src/listeners/arrowslistener.h2
-rw-r--r--src/listeners/attributelistener.h2
-rw-r--r--src/listeners/configlistener.h4
-rw-r--r--src/listeners/deathlistener.h2
-rw-r--r--src/listeners/focuslistener.h2
-rw-r--r--src/listeners/inventorylistener.h2
-rw-r--r--src/listeners/keylistener.h2
-rw-r--r--src/listeners/mouselistener.h2
-rw-r--r--src/listeners/playerrelationslistener.h2
-rw-r--r--src/listeners/selectionlistener.h2
-rw-r--r--src/listeners/statlistener.h2
-rw-r--r--src/listeners/tablemodellistener.h52
-rw-r--r--src/listeners/updatestatuslistener.h2
-rw-r--r--src/listeners/widgetlistener.h2
16 files changed, 69 insertions, 15 deletions
diff --git a/src/listeners/actionlistener.h b/src/listeners/actionlistener.h
index 895cc985d..f23030d4b 100644
--- a/src/listeners/actionlistener.h
+++ b/src/listeners/actionlistener.h
@@ -76,7 +76,7 @@
* @author Olof Naessén
* @author Per Larsson
*/
-class ActionListener
+class ActionListener notfinal
{
public:
/**
diff --git a/src/listeners/actorspritelistener.h b/src/listeners/actorspritelistener.h
index 7b4d89b44..0b898d2f4 100644
--- a/src/listeners/actorspritelistener.h
+++ b/src/listeners/actorspritelistener.h
@@ -24,7 +24,7 @@
class ActorSprite;
-class ActorSpriteListener
+class ActorSpriteListener notfinal
{
public:
/**
diff --git a/src/listeners/arrowslistener.h b/src/listeners/arrowslistener.h
index 92811331b..a34d1e690 100644
--- a/src/listeners/arrowslistener.h
+++ b/src/listeners/arrowslistener.h
@@ -25,7 +25,7 @@
#include "localconsts.h"
-class ArrowsListener
+class ArrowsListener notfinal
{
public:
virtual void arrowsChanged() = 0;
diff --git a/src/listeners/attributelistener.h b/src/listeners/attributelistener.h
index f30dfa26f..609c3de32 100644
--- a/src/listeners/attributelistener.h
+++ b/src/listeners/attributelistener.h
@@ -25,7 +25,7 @@
#include "localconsts.h"
-class AttributeListener
+class AttributeListener notfinal
{
public:
virtual void attributeChanged(const int id,
diff --git a/src/listeners/configlistener.h b/src/listeners/configlistener.h
index 757d24bfc..fc56cf37a 100644
--- a/src/listeners/configlistener.h
+++ b/src/listeners/configlistener.h
@@ -25,13 +25,15 @@
#include <string>
+#include "localconsts.h"
+
/**
* The listener interface for receiving notifications about changes to
* configuration options.
*
* \ingroup CORE
*/
-class ConfigListener
+class ConfigListener notfinal
{
public:
/**
diff --git a/src/listeners/deathlistener.h b/src/listeners/deathlistener.h
index ddd7db910..940a623b1 100644
--- a/src/listeners/deathlistener.h
+++ b/src/listeners/deathlistener.h
@@ -75,7 +75,7 @@
* @author Olof Naessén
* @since 0.6.0
*/
-class DeathListener
+class DeathListener notfinal
{
public:
/**
diff --git a/src/listeners/focuslistener.h b/src/listeners/focuslistener.h
index 10e4a2af0..d1acc0460 100644
--- a/src/listeners/focuslistener.h
+++ b/src/listeners/focuslistener.h
@@ -77,7 +77,7 @@
* @author Olof Naessén
* @since 0.7.0
*/
-class FocusListener
+class FocusListener notfinal
{
public:
/**
diff --git a/src/listeners/inventorylistener.h b/src/listeners/inventorylistener.h
index c064c0aca..49119df9f 100644
--- a/src/listeners/inventorylistener.h
+++ b/src/listeners/inventorylistener.h
@@ -27,7 +27,7 @@
class Inventory;
-class InventoryListener
+class InventoryListener notfinal
{
public:
virtual ~InventoryListener()
diff --git a/src/listeners/keylistener.h b/src/listeners/keylistener.h
index 7a2bdd2c9..d3aa4323b 100644
--- a/src/listeners/keylistener.h
+++ b/src/listeners/keylistener.h
@@ -75,7 +75,7 @@ class Key;
*
* @see Widget::addKeyListener, Widget::removeKeyListener
*/
-class KeyListener
+class KeyListener notfinal
{
public:
/**
diff --git a/src/listeners/mouselistener.h b/src/listeners/mouselistener.h
index e3c7c7ccb..ba7fce38c 100644
--- a/src/listeners/mouselistener.h
+++ b/src/listeners/mouselistener.h
@@ -74,7 +74,7 @@
* @see Widget::addMouseListener, Widget::removeMouseListener
* @since 0.1.0
*/
-class MouseListener
+class MouseListener notfinal
{
public:
/**
diff --git a/src/listeners/playerrelationslistener.h b/src/listeners/playerrelationslistener.h
index 6a8bf3b20..a58cc5b04 100644
--- a/src/listeners/playerrelationslistener.h
+++ b/src/listeners/playerrelationslistener.h
@@ -25,7 +25,7 @@
#include <string>
-class PlayerRelationsListener
+class PlayerRelationsListener notfinal
{
public:
virtual ~PlayerRelationsListener()
diff --git a/src/listeners/selectionlistener.h b/src/listeners/selectionlistener.h
index 2efe0a67e..3c1a62c32 100644
--- a/src/listeners/selectionlistener.h
+++ b/src/listeners/selectionlistener.h
@@ -80,7 +80,7 @@
* @author Olof Naessén
* @since 0.8.0
*/
-class SelectionListener
+class SelectionListener notfinal
{
public:
/**
diff --git a/src/listeners/statlistener.h b/src/listeners/statlistener.h
index 157dd9346..4cb858661 100644
--- a/src/listeners/statlistener.h
+++ b/src/listeners/statlistener.h
@@ -25,7 +25,7 @@
#include "localconsts.h"
-class StatListener
+class StatListener notfinal
{
public:
virtual void statChanged(const int id,
diff --git a/src/listeners/tablemodellistener.h b/src/listeners/tablemodellistener.h
new file mode 100644
index 000000000..c908261a0
--- /dev/null
+++ b/src/listeners/tablemodellistener.h
@@ -0,0 +1,52 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2008-2009 The Mana World Development Team
+ * Copyright (C) 2009-2010 The Mana Developers
+ * Copyright (C) 2011-2014 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 GUI_LISTENERS_TABLEMODELLISTENER_H
+#define GUI_LISTENERS_TABLEMODELLISTENER_H
+
+#include <set>
+#include <vector>
+
+#include "localconsts.h"
+
+class Widget;
+
+class TableModelListener notfinal
+{
+ public:
+ /**
+ * Must be invoked by the TableModel whenever a global change is about
+ * to occur or has occurred (e.g., when a row or column is being
+ * removed or added).
+ *
+ * This method is triggered twice, once before and once after
+ * the update.
+ *
+ * \param completed whether we are signalling the end of the update
+ */
+ virtual void modelUpdated(const bool completed) = 0;
+
+ virtual ~TableModelListener()
+ { }
+};
+
+#endif // GUI_LISTENERS_TABLEMODELLISTENER_H
diff --git a/src/listeners/updatestatuslistener.h b/src/listeners/updatestatuslistener.h
index 8671687c6..a09542cca 100644
--- a/src/listeners/updatestatuslistener.h
+++ b/src/listeners/updatestatuslistener.h
@@ -25,7 +25,7 @@
#include "localconsts.h"
-class UpdateStatusListener
+class UpdateStatusListener notfinal
{
public:
virtual void updateStatus() = 0;
diff --git a/src/listeners/widgetlistener.h b/src/listeners/widgetlistener.h
index 48641cbaa..3d178ad25 100644
--- a/src/listeners/widgetlistener.h
+++ b/src/listeners/widgetlistener.h
@@ -79,7 +79,7 @@
* @author Olof Naessén
* @since 0.8.0
*/
-class WidgetListener
+class WidgetListener notfinal
{
public:
/**