diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-09 12:29:02 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-09 12:29:02 +0000 |
| commit | 40a1729840135675fd6cb5f7748e9f42baa49324 (patch) | |
| tree | c43a31c10c9c95c6d992666d177827c99dfa1d29 /source/QXmppClient.cpp | |
| parent | a32c6d9c59792bd9b4d9e3f3bcedffed883ac738 (diff) | |
| download | qxmpp-40a1729840135675fd6cb5f7748e9f42baa49324.tar.gz | |
rename RPC IQ accessors starting with "get"
Diffstat (limited to 'source/QXmppClient.cpp')
| -rw-r--r-- | source/QXmppClient.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source/QXmppClient.cpp b/source/QXmppClient.cpp index 1a3a1b89..00c6dc2a 100644 --- a/source/QXmppClient.cpp +++ b/source/QXmppClient.cpp @@ -477,17 +477,16 @@ void QXmppClient::addInvokableInterface( QXmppInvokable *interface ) void QXmppClient::invokeInterfaceMethod( const QXmppRpcInvokeIq &iq ) { QXmppStanza::Error error; - QString interface = iq.getInterface(); - QXmppInvokable *iface = m_interfaces[ interface ]; - if( iface ) + QXmppInvokable *iface = m_interfaces.value(iq.interface()); + if (iface) { if ( iface->isAuthorized( iq.from() ) ) { - if ( iface->interfaces().contains( iq.getMethod() ) ) + if ( iface->interfaces().contains( iq.method() ) ) { - QVariant result = iface->dispatch(iq.getMethod().toLatin1(), - iq.getPayload() ); + QVariant result = iface->dispatch(iq.method().toLatin1(), + iq.payload() ); QXmppRpcResponseIq resultIq; resultIq.setId(iq.id()); resultIq.setTo(iq.from()); |
