diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-27 15:30:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-27 15:36:23 +0300 |
commit | af0ae4d0b7c56d540639bb1f4ba7cc458ec718c1 (patch) | |
tree | f95b356e4b201acb146c3aaed777d4cecd6b23eb /src/listeners/attributelistener.h | |
parent | d5586e6b6d5c7b1b83b3ec681e9da62840b5adaf (diff) | |
download | plus-af0ae4d0b7c56d540639bb1f4ba7cc458ec718c1.tar.gz plus-af0ae4d0b7c56d540639bb1f4ba7cc458ec718c1.tar.bz2 plus-af0ae4d0b7c56d540639bb1f4ba7cc458ec718c1.tar.xz plus-af0ae4d0b7c56d540639bb1f4ba7cc458ec718c1.zip |
Simplify AttributeListener.
Diffstat (limited to 'src/listeners/attributelistener.h')
-rw-r--r-- | src/listeners/attributelistener.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/listeners/attributelistener.h b/src/listeners/attributelistener.h index 83605ffe9..f30dfa26f 100644 --- a/src/listeners/attributelistener.h +++ b/src/listeners/attributelistener.h @@ -21,31 +21,22 @@ #ifndef LISTENERS_ATTRIBUTELISTENER_H #define LISTENERS_ATTRIBUTELISTENER_H -#include <vector> +#include "listeners/baselistener.hpp" #include "localconsts.h" class AttributeListener { public: - AttributeListener(); - - virtual ~AttributeListener(); - virtual void attributeChanged(const int id, const int oldVal, const int newVal) = 0; - static void addListener(AttributeListener *const listener); - - static void removeListener(AttributeListener *const listener); - static void distributeEvent(const int id, const int oldVal, const int newVal); - private: - static std::vector<AttributeListener*> mListeners; + defineListenerHeader(AttributeListener) }; #endif // LISTENERS_ATTRIBUTELISTENER_H |