KXmlRpcClient 5.109.0
|
A class that represents a connection to a XML-RPC server. More...
#include <KXmlRpcClient/Client>
Public Slots | |
void | call (const QString &method, bool arg, QObject *msgObj, const char *messageSlot, QObject *faultObj, const char *faultSlot, const QVariant &id=QVariant()) |
Calls the given method on a XML-RPC server, with the given bool as the argument. | |
void | call (const QString &method, const QByteArray &arg, QObject *msgObj, const char *messageSlot, QObject *faultObj, const char *faultSlot, const QVariant &id=QVariant()) |
Calls the given method on a XML-RPC server, with the given byte array as the argument. | |
void | call (const QString &method, const QDateTime &arg, QObject *msgObj, const char *messageSlot, QObject *faultObj, const char *faultSlot, const QVariant &id=QVariant()) |
Calls the given method on a XML-RPC server, with the given date as the argument. | |
void | call (const QString &method, const QList< QVariant > &args, QObject *msgObj, const char *messageSlot, QObject *faultObj, const char *faultSlot, const QVariant &id=QVariant()) |
Calls the given method on a XML-RPC server, with the given argument list. | |
void | call (const QString &method, const QString &arg, QObject *msgObj, const char *messageSlot, QObject *faultObj, const char *faultSlot, const QVariant &id=QVariant()) |
Calls the given method on a XML-RPC server, with the given string as the argument. | |
void | call (const QString &method, const QStringList &arg, QObject *msgObj, const char *messageSlot, QObject *faultObj, const char *faultSlot, const QVariant &id=QVariant()) |
Calls the given method on a XML-RPC server, with the given string list as the argument. | |
void | call (const QString &method, const QVariant &arg, QObject *msgObj, const char *messageSlot, QObject *faultObj, const char *faultSlot, const QVariant &id=QVariant()) |
Calls the given method on a XML-RPC server, with the given argument. | |
void | call (const QString &method, double arg, QObject *msgObj, const char *messageSlot, QObject *faultObj, const char *faultSlot, const QVariant &id=QVariant()) |
Calls the given method on a XML-RPC server, with the given double as the argument. | |
void | call (const QString &method, int arg, QObject *msgObj, const char *messageSlot, QObject *faultObj, const char *faultSlot, const QVariant &id=QVariant()) |
Calls the given method on a XML-RPC server, with the given int as the argument. | |
Public Member Functions | |
Client (const QUrl &url, QObject *parent=nullptr) | |
Constructs a XML-RPC Client, which will connect to url . | |
Client (QObject *parent=nullptr) | |
Constructs a XML-RPC Client. | |
~Client () override | |
Destroys the XML-RPC Client. | |
bool | isDigestAuthEnabled () const |
Returns true if HTTP-Digest authentication is enabled, false if not. | |
void | setDigestAuthEnabled (bool enabled) |
Enables/disables HTTP-Digest authentication. | |
void | setUrl (const QUrl &url) |
Sets the url the Client will connect to. | |
void | setUserAgent (const QString &userAgent) |
Sets the userAgent string the Client will use to identify itself. | |
QUrl | url () const |
Returns the current url the XML-RPC Client will connect to. | |
QString | userAgent () const |
Returns the user agent string currently used by the Client. | |
A class that represents a connection to a XML-RPC server.
This is the main interface to the XML-RPC client library.
|
explicit |
Constructs a XML-RPC Client.
parent | the parent of this object, defaults to NULL. |
|
explicit |
Constructs a XML-RPC Client, which will connect to url
.
url | the url of the xml-rpc server. |
parent | the parent of this object, defaults to NULL. |
|
override |
Destroys the XML-RPC Client.
|
slot |
Calls the given method on a XML-RPC server, with the given bool as the argument.
method | the method on the server we are going to be calling |
arg | the bool to pass to the server |
msgObj | the object containing the data slot |
messageSlot | the data slot itself |
faultObj | the object containing the error slot |
faultSlot | the error slot itself |
id | the id for our Client object, defaults to empty |
|
slot |
Calls the given method on a XML-RPC server, with the given byte array as the argument.
method | the method on the server we are going to be calling |
arg | the array to pass to the server |
msgObj | the object containing the data slot |
messageSlot | the data slot itself |
faultObj | the object containing the error slot |
faultSlot | the error slot itself |
id | the id for our Client object, defaults to empty |
|
slot |
Calls the given method on a XML-RPC server, with the given date as the argument.
method | the method on the server we are going to be calling |
arg | the date and/or time to pass to the server |
msgObj | the object containing the data slot |
messageSlot | the data slot itself |
faultObj | the object containing the error slot |
faultSlot | the error slot itself |
id | the id for our Client object, defaults to empty |
|
slot |
Calls the given method on a XML-RPC server, with the given argument list.
method | the method on the server we are going to be calling |
args | the argument list to pass to the server |
msgObj | the object containing the data slot |
messageSlot | the data slot itself |
faultObj | the object containing the error slot |
faultSlot | the error slot itself |
id | the id for our Client object, defaults to empty |
|
slot |
Calls the given method on a XML-RPC server, with the given string as the argument.
method | the method on the server we are going to be calling |
arg | the string to pass to the server |
msgObj | the object containing the data slot |
messageSlot | the data slot itself |
faultObj | the object containing the error slot |
faultSlot | the error slot itself |
id | the id for our Client object, defaults to empty |
|
slot |
Calls the given method on a XML-RPC server, with the given string list as the argument.
method | the method on the server we are going to be calling |
arg | the list of strings to pass to the server |
msgObj | the object containing the data slot |
messageSlot | the data slot itself |
faultObj | the object containing the error slot |
faultSlot | the error slot itself |
id | the id for our Client object, defaults to empty |
|
slot |
Calls the given method on a XML-RPC server, with the given argument.
method | the method on the server we are going to be calling |
arg | the argument to pass to the server |
msgObj | the object containing the data slot |
messageSlot | the data slot itself |
faultObj | the object containing the error slot |
faultSlot | the error slot itself |
id | the id for our Client object, defaults to empty |
|
slot |
Calls the given method on a XML-RPC server, with the given double as the argument.
method | the method on the server we are going to be calling |
arg | the double to pass to the server |
msgObj | the object containing the data slot |
messageSlot | the data slot itself |
faultObj | the object containing the error slot |
faultSlot | the error slot itself |
id | the id for our Client object, defaults to empty |
|
slot |
Calls the given method on a XML-RPC server, with the given int as the argument.
method | the method on the server we are going to be calling |
arg | the int to pass to the server |
msgObj | the object containing the data slot |
messageSlot | the data slot itself |
faultObj | the object containing the error slot |
faultSlot | the error slot itself |
id | the id for our Client object, defaults to empty |
bool KXmlRpc::Client::isDigestAuthEnabled | ( | ) | const |
Returns true if HTTP-Digest authentication is enabled, false if not.
void KXmlRpc::Client::setDigestAuthEnabled | ( | bool | enabled | ) |
Enables/disables HTTP-Digest authentication.
void KXmlRpc::Client::setUrl | ( | const QUrl & | url | ) |
void KXmlRpc::Client::setUserAgent | ( | const QString & | userAgent | ) |
Sets the userAgent string the Client will use to identify itself.
userAgent | the user agent string to use. |
QUrl KXmlRpc::Client::url | ( | ) | const |
QString KXmlRpc::Client::userAgent | ( | ) | const |
Returns the user agent string currently used by the Client.