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 );
void registerMethodsServer(mafRegisterMethodsMap registerMethodsList)
signal for the registration of the functions with parameters
xmlrpc::Client * m_Client
xml-rpc client provided by qxmlrpc library
void startListen()
Start 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.
void createClient(const QString hostName, const unsigned int port)
create the unique instance of the client.
~ctkNetworkConnectorQXMLRPC()
object destructor.
ctkNetworkConnectorQXMLRPC()
object constructor.
xmlrpc::Server * m_Server
xml-rpc server provided by qxmlrpc library
void createServer(const unsigned int port)
create the unique instance of the server.
void initializeForEventBus()
register all the signals and slots
Q_DECLARE_METATYPE(xmlrpc::Variant)
QMap< QString, QList< QVariant::Type > > mafRegisterMethodsMap
map which represent list of function to be registered in the server, with parameters