The QXmppRpcManager class make it possible to invoke remote methods and to expose local interfaces for remote procedure calls, as specified by XEP-0009: Jabber-RPC. More...
#include <QXmppRpcManager.h>
Public Member Functions | |
| QXmppRpcManager () | |
| Constructs a QXmppRpcManager. | |
| void | addInvokableInterface (QXmppInvokable *interface) |
| QXmppRemoteMethodResult | callRemoteMethod (const QString &jid, const QString &interface, const QVariant &arg1=QVariant(), const QVariant &arg2=QVariant(), const QVariant &arg3=QVariant(), const QVariant &arg4=QVariant(), const QVariant &arg5=QVariant(), const QVariant &arg6=QVariant(), const QVariant &arg7=QVariant(), const QVariant &arg8=QVariant(), const QVariant &arg9=QVariant(), const QVariant &arg10=QVariant()) |
The QXmppRpcManager class make it possible to invoke remote methods and to expose local interfaces for remote procedure calls, as specified by XEP-0009: Jabber-RPC.
To make use of this manager, you need to instantiate it and load it into the QXmppClient instance as follows:
QXmppRpcManager *manager = new QXmppRpcManager; client->addExtension(manager);
| void QXmppRpcManager::addInvokableInterface | ( | QXmppInvokable * | interface | ) |
Adds a local interface which can be queried using RPC.
| interface |
| QXmppRemoteMethodResult QXmppRpcManager::callRemoteMethod | ( | const QString & | jid, | |
| const QString & | interface, | |||
| const QVariant & | arg1 = QVariant(), |
|||
| const QVariant & | arg2 = QVariant(), |
|||
| const QVariant & | arg3 = QVariant(), |
|||
| const QVariant & | arg4 = QVariant(), |
|||
| const QVariant & | arg5 = QVariant(), |
|||
| const QVariant & | arg6 = QVariant(), |
|||
| const QVariant & | arg7 = QVariant(), |
|||
| const QVariant & | arg8 = QVariant(), |
|||
| const QVariant & | arg9 = QVariant(), |
|||
| const QVariant & | arg10 = QVariant() | |||
| ) |
Calls a remote method using RPC with the specified arguments.
1.7.1