From 1b596e06fac7e1ec96cc5f9f387b936836f2c601 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Fri, 16 Jul 2010 08:53:13 +0000 Subject: add support for parsing Jingle IQs --- source/QXmppStream.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source/QXmppStream.cpp') 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); -- cgit v1.2.3