aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppRpcManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/QXmppRpcManager.cpp')
-rw-r--r--src/QXmppRpcManager.cpp10
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,