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
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...
ctkEventDispatcherRemote()
object constructor.
~ctkEventDispatcherRemote()
object destructor.
ctkNetworkConnector * networkConnectorClient()
return the current instantiated client side network connector.
void setNetworkConnectorServer(ctkNetworkConnector *connector)
Set the active server side network connector type.
void initializeGlobalEvents()
Register MAF global events.
ctkNetworkConnector * networkConnectorServer()
return the current instantiated server side network connector.
void setNetworkConnectorClient(ctkNetworkConnector *connector)
Set the active client side network connector type.
#define ctkGenericReturnArgument
Q_DECLARE_METATYPE(QVariantList)