diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-12-13 08:39:19 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-12-13 08:39:19 +0000 |
| commit | fc0dd32f430a5fb7f6bcba638663cdf845a363d0 (patch) | |
| tree | 0e53f0df5ad2c302ccb9ad08bb9045c1e1ec2790 /src/QXmppRpcManager.cpp | |
| parent | a2b083b9fc42c562281201e4bd786b1057f57584 (diff) | |
| download | qxmpp-fc0dd32f430a5fb7f6bcba638663cdf845a363d0.tar.gz | |
add some code documentation to QXmppRpcManager
Diffstat (limited to 'src/QXmppRpcManager.cpp')
| -rw-r--r-- | src/QXmppRpcManager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/QXmppRpcManager.cpp b/src/QXmppRpcManager.cpp index 06c58451..63885556 100644 --- a/src/QXmppRpcManager.cpp +++ b/src/QXmppRpcManager.cpp @@ -34,11 +34,19 @@ QXmppRpcManager::QXmppRpcManager() { } +/// Adds a local interface which can be queried using RPC. +/// +/// \param interface + void QXmppRpcManager::addInvokableInterface( QXmppInvokable *interface ) { m_interfaces[ interface->metaObject()->className() ] = interface; } +/// Invokes a remote interface using RPC. +/// +/// \param iq + void QXmppRpcManager::invokeInterfaceMethod( const QXmppRpcInvokeIq &iq ) { QXmppStanza::Error error; @@ -90,6 +98,8 @@ void QXmppRpcManager::invokeInterfaceMethod( const QXmppRpcInvokeIq &iq ) client()->sendPacket(errorIq); } +/// Call a remote method using RPC with the specified arguments. + QXmppRemoteMethodResult QXmppRpcManager::callRemoteMethod( const QString &jid, const QString &interface, const QVariant &arg1, |
