diff options
Diffstat (limited to 'examples/example_6_rpcClient/rpcClient.cpp')
| -rw-r--r-- | examples/example_6_rpcClient/rpcClient.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/example_6_rpcClient/rpcClient.cpp b/examples/example_6_rpcClient/rpcClient.cpp index c4868bc3..3b5e4082 100644 --- a/examples/example_6_rpcClient/rpcClient.cpp +++ b/examples/example_6_rpcClient/rpcClient.cpp @@ -39,7 +39,7 @@ rpcClient::rpcClient(QObject *parent) // observe incoming presences connect(this, &QXmppClient::presenceReceived, - this, &rpcClient::slotPresenceReceived); + this, &rpcClient::slotPresenceReceived); } rpcClient::~rpcClient() @@ -49,8 +49,8 @@ rpcClient::~rpcClient() void rpcClient::slotInvokeRemoteMethod() { QXmppRemoteMethodResult methodResult = m_rpcManager->callRemoteMethod( - m_remoteJid, "RemoteInterface.echoString", "This is a test" ); - if( methodResult.hasError ) + m_remoteJid, "RemoteInterface.echoString", "This is a test"); + if (methodResult.hasError) qDebug() << "Error:" << methodResult.code << methodResult.errorMessage; else qDebug() << "Result:" << methodResult.result; @@ -73,4 +73,3 @@ void rpcClient::slotPresenceReceived(const QXmppPresence &presence) m_remoteJid = presence.from(); QTimer::singleShot(1000, this, &rpcClient::slotInvokeRemoteMethod); } - |
