12 #ifndef CTKEVENTDISPATCHER_H
13 #define CTKEVENTDISPATCHER_H
42 bool removeObserver(
const QObject *obj,
const QString topic,
bool qt_disconnect =
true);
45 bool removeSignal(
const QObject *obj,
const QString topic =
"",
bool qt_disconnect =
true);
97 bool removeFromHash(
ctkEventsHashType *hash,
const QObject *obj,
const QString topic,
bool qt_disconnect =
true);
108 return m_SignalsHash.values(topic);
void remoteCommunicationDone()
Signal used to notify to observers that the remote communication has been terminated with success.
ctkEventDispatcher()
object constructor.
bool removeObserver(ctkBusEvent &props)
remove the callback from the observer's hash.
bool registerSignal(ctkBusEvent &props)
register custom signals use by objects to raise them events.
virtual void initializeGlobalEvents()
Register MAF global events.
bool removeObserver(const QObject *obj, const QString topic, bool qt_disconnect=true)
remove the callback from the observer's hash.
bool removeSignal(const QObject *obj, const QString topic="", bool qt_disconnect=true)
Remove the signal from the signal's hash.
bool isLocalSignalPresent(const QString topic) const
method used to check if the given signal has been already registered for the given id.
bool addObserver(ctkBusEvent &props)
Add the observer to the events.
virtual void notifyEvent(ctkBusEvent &event_dictionary, ctkEventArgumentsList *argList=NULL, QGenericReturnArgument *returnArg=NULL) const
Emit event corresponding to the given id (present into the event_dictionary) locally to the applicati...
void resetHashes()
clean the signal and callback hashes.
ctkEventItemListType signalItemProperty(const QString topic) const
Return the signal item property associated to the given ID.
bool removeSignal(ctkBusEvent &props)
Remove the signal from the signal's hash.
bool removeEventItem(ctkBusEvent &props)
Interanl method used to remove the given event property.
void notifyDefaultEvent()
Default notification signals for default events.
virtual ~ctkEventDispatcher()
object destructor.
void remoteCommunicationFailed()
Signal used to notify to observers that the remote communication failed.
#define ctkGenericReturnArgument