aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppClient.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-09 12:29:02 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-09 12:29:02 +0000
commit40a1729840135675fd6cb5f7748e9f42baa49324 (patch)
treec43a31c10c9c95c6d992666d177827c99dfa1d29 /source/QXmppClient.cpp
parenta32c6d9c59792bd9b4d9e3f3bcedffed883ac738 (diff)
downloadqxmpp-40a1729840135675fd6cb5f7748e9f42baa49324.tar.gz
rename RPC IQ accessors starting with "get"
Diffstat (limited to 'source/QXmppClient.cpp')
-rw-r--r--source/QXmppClient.cpp11
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());