diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-16 08:53:13 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-16 08:53:13 +0000 |
| commit | 1b596e06fac7e1ec96cc5f9f387b936836f2c601 (patch) | |
| tree | 428311cd012409834d0f7fa0408bf47c68c8a737 /source/QXmppStream.cpp | |
| parent | 71ff1eec1fdc8e102d7b2b9732b5b576f7649f34 (diff) | |
| download | qxmpp-1b596e06fac7e1ec96cc5f9f387b936836f2c601.tar.gz | |
add support for parsing Jingle IQs
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 5be25d5a..fc8f6f4e 100644 --- a/source/QXmppStream.cpp +++ b/source/QXmppStream.cpp @@ -39,6 +39,7 @@ #include "QXmppByteStreamIq.h" #include "QXmppDiscoveryIq.h" #include "QXmppIbbIq.h" +#include "QXmppJingleIq.h" #include "QXmppMucIq.h" #include "QXmppPingIq.h" #include "QXmppRpcIq.h" @@ -674,6 +675,13 @@ void QXmppStream::parser(const QByteArray& data) archiveIq.parse(nodeRecv); emit archivePrefIqReceived(archiveIq); } + // XEP-0166: Jingle + else if(QXmppJingleIq::isJingleIq(nodeRecv)) + { + QXmppJingleIq jingleIq; + jingleIq.parse(nodeRecv); + emit jingleIqReceived(jingleIq); + } // XEP-0199: XMPP Ping else if(QXmppPingIq::isPingIq(nodeRecv)) { @@ -1065,6 +1073,10 @@ QXmppDiscoveryIq QXmppStream::capabilities() const << ns_stream_initiation // XEP-0095: Stream Initiation << ns_stream_initiation_file_transfer // XEP-0096: SI File Transfer << ns_capabilities // XEP-0115 : Entity Capabilities + << ns_jingle // XEP-0166 : Jingle + << ns_jingle_rtp // XEP-0167 : Jingle RTP Sessions + << ns_jingle_rtp_audio + << ns_jingle_ice_udp // XEP-0176 : Jingle ICE-UDP Transport Method << ns_ping; // XEP-0199: XMPP Ping iq.setFeatures(features); |
