 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
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);
113 #endif // CTKEVENTDISPATCHER_H
bool removeObserver(const QObject *obj, const QString topic, bool qt_disconnect=true)
remove the callback from the observer's hash.
void remoteCommunicationDone()
Signal used to notify to observers that the remote communication has been terminated with success.
virtual ~ctkEventDispatcher()
object destructor.
void notifyDefaultEvent()
Default notification signals for default events.
bool removeSignal(ctkBusEvent &props)
Remove the signal from the signal's hash.
#define ctkGenericReturnArgument
bool removeEventItem(ctkBusEvent &props)
Interanl method used to remove the given event property.
bool addObserver(ctkBusEvent &props)
Add the observer to the events.
virtual void initializeGlobalEvents()
Register MAF global events.
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.
ctkEventDispatcher()
object constructor.
void remoteCommunicationFailed()
Signal used to notify to observers that the remote communication failed.
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 isLocalSignalPresent(const QString topic) const
method used to check if the given signal has been already registered for the given id.
bool removeSignal(const QObject *obj, const QString topic="", bool qt_disconnect=true)
Remove the signal from the signal's hash.
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...