 |
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 ctkNetworkConnectorQXMLRPC_H
13 #define ctkNetworkConnectorQXMLRPC_H
19 #include <xmlrpc/client.h>
20 #include <xmlrpc/server.h>
43 void createClient(
const QString hostName,
const unsigned int port);
71 virtual void processReturnValue(
int requestId, QVariant value );
74 void processFault(
int requestId,
int errorCode, QString errorString );
98 #endif // ctkNetworkConnectorQXMLRPC_H
void initializeForEventBus()
register all the signals and slots
void registerMethodsServer(mafRegisterMethodsMap registerMethodsList)
signal for the registration of the functions with parameters
ctkNetworkConnectorQXMLRPC()
object constructor.
void createClient(const QString hostName, const unsigned int port)
create the unique instance of the client.
void createServer(const unsigned int port)
create the unique instance of the server.
void registerServerMethod(mafRegisterMethodsMap registerMethodsList)
register methods on the server
ctkNetworkConnector * clone()
retrieve an instance of the object
void send(const QString event_id, ctkEventArgumentsList *argList)
Allow to send a network request.
xmlrpc::Client * m_Client
xml-rpc client provided by qxmlrpc library
QMap< QString, QList< QVariant::Type > > mafRegisterMethodsMap
map which represent list of function to be registered in the server, with parameters
void startListen()
Start the server.
Q_DECLARE_METATYPE(xmlrpc::Variant)
xmlrpc::Server * m_Server
xml-rpc server provided by qxmlrpc library
~ctkNetworkConnectorQXMLRPC()
object destructor.