From af0ae4d0b7c56d540639bb1f4ba7cc458ec718c1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 27 Apr 2014 15:30:00 +0300 Subject: Simplify AttributeListener. --- src/listeners/attributelistener.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/listeners/attributelistener.h') 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 +#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 mListeners; + defineListenerHeader(AttributeListener) }; #endif // LISTENERS_ATTRIBUTELISTENER_H -- cgit v1.2.3-70-g09d2