3#include "IceSignalQXmppManager.h"
4#include "IceSignalQXmppIq.h"
5#include "IceSignalQxmpp.h"
6#include "QXmppClient.h"
8#include <QLoggingCategory>
10Q_DECLARE_LOGGING_CATEGORY(ChannelICE)
19 if(this->client()->sendPacket(iq))
21 qCritical(ChannelICE) <<
"QXmppCallWebrtcManager::sendPacket";
25QStringList CIceSignalQXmppManager::discoveryFeatures()
const
27 return QStringList() << CIceSignalQXmppIq::ns();
30bool CIceSignalQXmppManager::handleStanza(
const QDomElement &element)
32 if (element.tagName() !=
"iq")
34 if (!CIceSignalQXmppIq::isIceSignalIq(element))
39 if(iq.type() != QXmppIq::Set)
41 qWarning(ChannelICE) <<
"The package is error:type:" << iq.type();
45 ack.setType(QXmppIq::Error);
50 if(!m_pSignal->proecssIq(iq))
55 ack.setType(QXmppIq::Error);
62 ack.setType(QXmppIq::Result);
63 return client()->sendPacket(ack);
QXMPP implements ICE signaling class.