diff options
| author | Ian Geiser <ian.geiser@gmail.com> | 2009-11-11 11:09:28 +0000 |
|---|---|---|
| committer | Ian Geiser <ian.geiser@gmail.com> | 2009-11-11 11:09:28 +0000 |
| commit | d9745efcd24e547ba0185732bfc9b0c9f931162e (patch) | |
| tree | c66bc1c52329ea1a21771b74845009a9a0addd70 /source/QXmppStream.cpp | |
| parent | 5b0870ddaac421af2639058648a218c7061cdd6f (diff) | |
| download | qxmpp-d9745efcd24e547ba0185732bfc9b0c9f931162e.tar.gz | |
This is the rest of XEP-009. This needs some cleanup and testing still. I am not happy with the implementation, but I am happy with the interface on QXmppClient.
Diffstat (limited to 'source/QXmppStream.cpp')
| -rw-r--r-- | source/QXmppStream.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/QXmppStream.cpp b/source/QXmppStream.cpp index 307ad543..0e18b404 100644 --- a/source/QXmppStream.cpp +++ b/source/QXmppStream.cpp @@ -431,6 +431,18 @@ void QXmppStream::parser(const QByteArray& data) rpcIqPacket.parse(nodeRecv); m_client->invokeInterfaceMethod(rpcIqPacket); } + else if ( QXmppRpcResponseIq::isRpcResponseIq( nodeRecv ) ) + { + QXmppRpcResponseIq rpcResponseIq; + rpcResponseIq.parse(nodeRecv); + emit rpcCallResponse( rpcResponseIq ); + } + else if ( QXmppRpcErrorIq::isRpcErrorIq( nodeRecv ) ) + { + QXmppRpcErrorIq rpcErrorIq; + rpcErrorIq.parse(nodeRecv); + emit rpcCallError( rpcErrorIq ); + } else if(id == m_sessionId) { // get back add configuration whether to send |
