CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Member Functions | Protected Member Functions | List of all members
ctkEventBus::ctkEventDispatcherRemote Class Reference

#include <Plugins/org.commontk.eventbus/ctkEventDispatcherRemote.h>

Inheritance diagram for ctkEventBus::ctkEventDispatcherRemote:
Inheritance graph
[legend]
Collaboration diagram for ctkEventBus::ctkEventDispatcherRemote:
Collaboration graph
[legend]

Public Member Functions

 ctkEventDispatcherRemote ()
 object constructor. More...
 
ctkNetworkConnectornetworkConnectorClient ()
 return the current instantiated client side network connector. More...
 
ctkNetworkConnectornetworkConnectorServer ()
 return the current instantiated server side network connector. More...
 
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 application. More...
 
void setNetworkConnectorClient (ctkNetworkConnector *connector)
 Set the active client side network connector type. More...
 
void setNetworkConnectorServer (ctkNetworkConnector *connector)
 Set the active server side network connector type. More...
 
 ~ctkEventDispatcherRemote ()
 object destructor. More...
 
- Public Member Functions inherited from ctkEventBus::ctkEventDispatcher
bool addObserver (ctkBusEvent &props)
 Add the observer to the events. More...
 
 ctkEventDispatcher ()
 object constructor. More...
 
bool isLocalSignalPresent (const QString topic) const
 method used to check if the given signal has been already registered for the given id. More...
 
bool registerSignal (ctkBusEvent &props)
 register custom signals use by objects to raise them events. More...
 
bool removeObserver (const QObject *obj, const QString topic, bool qt_disconnect=true)
 remove the callback from the observer's hash. More...
 
bool removeObserver (ctkBusEvent &props)
 remove the callback from the observer's hash. More...
 
bool removeSignal (const QObject *obj, const QString topic="", bool qt_disconnect=true)
 Remove the signal from the signal's hash. More...
 
bool removeSignal (ctkBusEvent &props)
 Remove the signal from the signal's hash. More...
 
void resetHashes ()
 clean the signal and callback hashes. More...
 
virtual ~ctkEventDispatcher ()
 object destructor. More...
 

Protected Member Functions

void initializeGlobalEvents ()
 Register MAF global events. More...
 
- Protected Member Functions inherited from ctkEventBus::ctkEventDispatcher
bool removeEventItem (ctkBusEvent &props)
 Interanl method used to remove the given event property. More...
 
ctkEventItemListType signalItemProperty (const QString topic) const
 Return the signal item property associated to the given ID. More...
 

Additional Inherited Members

- Signals inherited from ctkEventBus::ctkEventDispatcher
void notifyDefaultEvent ()
 Default notification signals for default events. More...
 
void remoteCommunicationDone ()
 Signal used to notify to observers that the remote communication has been terminated with success. More...
 
void remoteCommunicationFailed ()
 Signal used to notify to observers that the remote communication failed. More...
 

Detailed Description

Class name: ctkEventDispatcherRemote This allows dispatching events coming from local application to attached observers.

Definition at line 27 of file ctkEventDispatcherRemote.h.

Constructor & Destructor Documentation

◆ ctkEventDispatcherRemote()

ctkEventBus::ctkEventDispatcherRemote::ctkEventDispatcherRemote ( )

object constructor.

◆ ~ctkEventDispatcherRemote()

ctkEventBus::ctkEventDispatcherRemote::~ctkEventDispatcherRemote ( )

object destructor.

Member Function Documentation

◆ initializeGlobalEvents()

void ctkEventBus::ctkEventDispatcherRemote::initializeGlobalEvents ( )
protectedvirtual

Register MAF global events.

Reimplemented from ctkEventBus::ctkEventDispatcher.

◆ networkConnectorClient()

ctkNetworkConnector* ctkEventBus::ctkEventDispatcherRemote::networkConnectorClient ( )

return the current instantiated client side network connector.

◆ networkConnectorServer()

ctkNetworkConnector* ctkEventBus::ctkEventDispatcherRemote::networkConnectorServer ( )

return the current instantiated server side network connector.

◆ notifyEvent()

void ctkEventBus::ctkEventDispatcherRemote::notifyEvent ( ctkBusEvent event_dictionary,
ctkEventArgumentsList argList = NULL,
QGenericReturnArgument *  returnArg = NULL 
) const
virtual

Emit event corresponding to the given id (present into the event_dictionary) locally to the application.

Reimplemented from ctkEventBus::ctkEventDispatcher.

◆ setNetworkConnectorClient()

void ctkEventBus::ctkEventDispatcherRemote::setNetworkConnectorClient ( ctkNetworkConnector connector)

Set the active client side network connector type.

◆ setNetworkConnectorServer()

void ctkEventBus::ctkEventDispatcherRemote::setNetworkConnectorServer ( ctkNetworkConnector connector)

Set the active server side network connector type.


The documentation for this class was generated from the following file: