4 #ifndef XMLRPC_SERVER_H
5 #define XMLRPC_SERVER_H
13 class IncomingConnection;
22 Server( QObject * parent = 0 );
25 bool listen ( quint16 port,
const QHostAddress & address = QHostAddress::Any );
28 void registerMethod( QString methodName, QVariant::Type returnType,
29 QList<QVariant::Type> parameterTypes );
31 void registerMethod( QString methodName, QVariant::Type returnType );
32 void registerMethod( QString methodName, QVariant::Type returnType,
33 QVariant::Type parameter1Type );
34 void registerMethod( QString methodName, QVariant::Type returnType,
35 QVariant::Type parameter1Type, QVariant::Type parameter2Type );
36 void registerMethod( QString methodName, QVariant::Type returnType,
37 QVariant::Type parameter1Type, QVariant::Type parameter2Type, QVariant::Type parameter3Type );
38 void registerMethod( QString methodName, QVariant::Type returnType,
39 QVariant::Type parameter1Type, QVariant::Type parameter2Type, QVariant::Type parameter3Type, QVariant::Type parameter4Type );
42 void incomingRequest(
int requestId, QString methodName, QList<xmlrpc::Variant> parameters );
46 void sendFault(
int requestId,
int faultCode, QString faultMessage );
60 #endif // XMLRPC_SERVER_H
bool listen(quint16 port, const QHostAddress &address=QHostAddress::Any)
Definition: server.cpp:96
void processRequest(QByteArray data, QTcpSocket *socket)
Definition: server.cpp:214
The xmlrpc::Server class provides an implementation of the XML-RPC server.
Definition: server.h:18
bool isListening() const
Definition: server.cpp:107
Server(QObject *parent=0)
Definition: server.cpp:71
virtual ~Server()
Definition: server.cpp:81
void sendReturnValue(int requestId, const xmlrpc::Variant &value)
Definition: server.cpp:319
void sendFault(int requestId, int faultCode, QString faultMessage)
Definition: server.cpp:342
void registerMethod(QString methodName, QVariant::Type returnType, QList< QVariant::Type > parameterTypes)
Definition: server.cpp:135
Definition: server_private.h:18
Definition: client.cpp:15
The xmlrpc::Variant class acts like a union for XML-RPC variables types.
Definition: variant.h:24