CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
ctkEventDispatcherRemote.h
Go to the documentation of this file.
1 /*
2  * ctkEventDispatcherRemote.h
3  * ctkEventBus
4  *
5  * Created by Daniele Giunchi on 11/04/10.
6  * Copyright 2009 B3C. All rights reserved.
7  *
8  * See Licence at: http://tiny.cc/QXJ4D
9  *
10  */
11 
12 #ifndef CTKEVENTDISPATCHERREMOTE_H
13 #define CTKEVENTDISPATCHERREMOTE_H
14 
15 //include list
16 #include "ctkEventDefinitions.h"
17 #include "ctkEventDispatcher.h"
18 
19 namespace ctkEventBus {
20 
21 class ctkNetworkConnector;
22 
27 class org_commontk_eventbus_EXPORT ctkEventDispatcherRemote : public ctkEventDispatcher {
28  Q_OBJECT
29 
30 public:
33 
36 
38  /*virtual*/ void notifyEvent(ctkBusEvent &event_dictionary, ctkEventArgumentsList *argList = NULL, ctkGenericReturnArgument *returnArg = NULL) const;
39 
42 
45 
48 
51 
52 protected:
54  /*virtual*/ void initializeGlobalEvents();
55 
56 private:
57  ctkNetworkConnector *m_NetworkConnectorServer;
58  ctkNetworkConnector *m_NetworkConnectorClient;
59 };
60 
61 
62 } //namespace ctkEventBus
63 
64 Q_DECLARE_METATYPE(QVariantList);
65 
66 #endif // CTKEVENTDISPATCHERREMOTE_H
ctkEventBus::ctkEventDispatcherRemote::notifyEvent
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...
ctkEventDefinitions.h
ctkEventBus::ctkEventDispatcherRemote::~ctkEventDispatcherRemote
~ctkEventDispatcherRemote()
object destructor.
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(QVariantList)
QList
Definition: ctkCmdLineModuleBackend.h:30
ctkEventBus::ctkEventDispatcherRemote::initializeGlobalEvents
void initializeGlobalEvents()
Register MAF global events.
ctkGenericReturnArgument
#define ctkGenericReturnArgument
Definition: ctkEventDefinitions.h:107
ctkEventBus::ctkEventDispatcherRemote::networkConnectorClient
ctkNetworkConnector * networkConnectorClient()
return the current instantiated client side network connector.
ctkEventBus::ctkEventDispatcherRemote::networkConnectorServer
ctkNetworkConnector * networkConnectorServer()
return the current instantiated server side network connector.
ctkEventBus::ctkEventDispatcherRemote::setNetworkConnectorServer
void setNetworkConnectorServer(ctkNetworkConnector *connector)
Set the active server side network connector type.
ctkEventBus::ctkNetworkConnector
Definition: ctkNetworkConnector.h:24
ctkEventBus::ctkEventDispatcherRemote
Definition: ctkEventDispatcherRemote.h:27
ctkBusEvent
Definition: ctkBusEvent.h:41
ctkEventBus::ctkEventDispatcher
Definition: ctkEventDispatcher.h:23
ctkEventBus::ctkEventDispatcherRemote::ctkEventDispatcherRemote
ctkEventDispatcherRemote()
object constructor.
ctkEventBus::ctkEventDispatcherRemote::setNetworkConnectorClient
void setNetworkConnectorClient(ctkNetworkConnector *connector)
Set the active client side network connector type.
ctkEventDispatcher.h
ctkEventBus
Definition: ctkEventBusManager.h:21