24 #ifndef __BACKCALLER_H_
25 #define __BACKCALLER_H_
97 struct CallbackableTypeHash
102 typedef std::vector<Callbackable*> callbackableListType;
103 typedef HashMap<CallbackableType, callbackableListType*, CallbackableTypeHash> callbackableMapType;
107 callbackableMapType callbackableMap;
Interface class for a class which wants to be callback on a certain action.
Definition: callbackable.h:39
virtual void addCallbackable(Callbackable *callbackableInstance, CallbackableType type=BackCaller::DEFAULT_CALLBACKABLE_TYPE)
Adds a Callbackable instance to this caller instance.
Definition: backcaller.cpp:43
virtual void callBack(CallbackableType type=BackCaller::DEFAULT_CALLBACKABLE_TYPE)
Calls all registered callbackable classes of the determined type.
Definition: backcaller.cpp:86
static const CallbackableType DEFAULT_CALLBACKABLE_TYPE
This is the default Callbackable type.
Definition: backcaller.h:51
unsigned long CallbackableType
Definition: backcaller.h:45
virtual void removeCallbackable(Callbackable *callbackableInstance, CallbackableType type=BackCaller::DEFAULT_CALLBACKABLE_TYPE)
Removes a Callbackable instance from this caller instance.
Definition: backcaller.cpp:61
virtual void removeAllCallbackables(CallbackableType type)
Removes all Callbackable instances from this caller instance.
Definition: backcaller.cpp:74
virtual void callBackQMP(CallbackableType type=BackCaller::DEFAULT_CALLBACKABLE_TYPE)
Calls all registered callbackable classes of the determined type.
Definition: backcaller.cpp:101
BackCaller()
Definition: backcaller.cpp:31
Class prototype which provides functions to handle callbackable classes.
Definition: backcaller.h:42
virtual ~BackCaller()
Definition: backcaller.cpp:33