summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/jingle/jinglevoicesession.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/jabber/jingle/jinglevoicesession.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/jabber/jingle/jinglevoicesession.cpp')
-rw-r--r--kopete/protocols/jabber/jingle/jinglevoicesession.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kopete/protocols/jabber/jingle/jinglevoicesession.cpp b/kopete/protocols/jabber/jingle/jinglevoicesession.cpp
index 09019ce4..91fa1a77 100644
--- a/kopete/protocols/jabber/jingle/jinglevoicesession.cpp
+++ b/kopete/protocols/jabber/jingle/jinglevoicesession.cpp
@@ -39,7 +39,7 @@
#include "jinglesessionmanager.h"
// Qt includes
-#include <qdom.h>
+#include <tqdom.h>
// KDE includes
#include <kdebug.h>
@@ -115,7 +115,7 @@ public:
{}
else if (state == cricket::Session::STATE_RECEIVEDMODIFY)
{
- //qWarning(QString("jinglevoicecaller.cpp: RECEIVEDMODIFY not implemented yet (was from %1)").arg(jid.full()));
+ //qWarning(TQString("jinglevoicecaller.cpp: RECEIVEDMODIFY not implemented yet (was from %1)").arg(jid.full()));
}
else if (state == cricket::Session::STATE_SENTREJECT)
{}
@@ -141,7 +141,7 @@ public:
void OnSendingStanza(cricket::SessionClient*, const buzz::XmlElement *buzzStanza)
{
- QString irisStanza(buzzStanza->Str().c_str());
+ TQString irisStanza(buzzStanza->Str().c_str());
irisStanza.replace("cli:iq","iq");
irisStanza.replace(":cli=","=");
@@ -159,7 +159,7 @@ public:
JingleIQResponder(XMPP::Task *);
~JingleIQResponder();
- bool take(const QDomElement &);
+ bool take(const TQDomElement &);
};
/**
@@ -175,14 +175,14 @@ JingleVoiceSession::JingleIQResponder::~JingleIQResponder()
{
}
-bool JingleVoiceSession::JingleIQResponder::take(const QDomElement &e)
+bool JingleVoiceSession::JingleIQResponder::take(const TQDomElement &e)
{
if(e.tagName() != "iq")
return false;
- QDomElement first = e.firstChild().toElement();
+ TQDomElement first = e.firstChild().toElement();
if (!first.isNull() && first.attribute("xmlns") == JINGLE_NS) {
- QDomElement iq = createIQ(doc(), "result", e.attribute("from"), e.attribute("id"));
+ TQDomElement iq = createIQ(doc(), "result", e.attribute("from"), e.attribute("id"));
send(iq);
return true;
}
@@ -224,7 +224,7 @@ JingleVoiceSession::JingleVoiceSession(JabberAccount *account, const JidList &pe
d->phoneSessionClient->SignalCallCreate.connect(slotsProxy, &JingleVoiceSession::SlotsProxy::OnCallCreated);
// Listen to incoming packets
- connect(account->client()->client(), SIGNAL(xmlIncoming(const QString&)), this, SLOT(receiveStanza(const QString&)));
+ connect(account->client()->client(), TQT_SIGNAL(xmlIncoming(const TQString&)), this, TQT_SLOT(receiveStanza(const TQString&)));
new JingleIQResponder(account->client()->rootTask());
}
@@ -236,9 +236,9 @@ JingleVoiceSession::~JingleVoiceSession()
delete d;
}
-QString JingleVoiceSession::sessionType()
+TQString JingleVoiceSession::sessionType()
{
- return QString(JINGLE_VOICE_SESSION_NS);
+ return TQString(JINGLE_VOICE_SESSION_NS);
}
void JingleVoiceSession::start()
@@ -246,7 +246,7 @@ void JingleVoiceSession::start()
kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << "Starting a voice session..." << endl;
d->currentCall = d->phoneSessionClient->CreateCall();
- QString firstPeerJid = ((XMPP::Jid)peers().first()).full();
+ TQString firstPeerJid = ((XMPP::Jid)peers().first()).full();
kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << "With peer: " << firstPeerJid << endl;
d->currentCall->InitiateSession( buzz::Jid(firstPeerJid.ascii()) );
@@ -287,16 +287,16 @@ void JingleVoiceSession::setCall(cricket::Call *call)
d->phoneSessionClient->SetFocus(d->currentCall);
}
-void JingleVoiceSession::receiveStanza(const QString &stanza)
+void JingleVoiceSession::receiveStanza(const TQString &stanza)
{
- QDomDocument doc;
+ TQDomDocument doc;
doc.setContent(stanza);
// Check if it is offline presence from an open chat
if( doc.documentElement().tagName() == "presence" )
{
XMPP::Jid from = XMPP::Jid(doc.documentElement().attribute("from"));
- QString type = doc.documentElement().attribute("type");
+ TQString type = doc.documentElement().attribute("type");
if( type == "unavailable" && hasPeer(peers(), from) )
{
//qDebug("JingleVoiceCaller: User went offline without closing a call.");
@@ -309,11 +309,11 @@ void JingleVoiceSession::receiveStanza(const QString &stanza)
// Check if the packet is destined for libjingle.
// We could use Session::IsClientStanza to check this, but this one crashes
// for some reason.
- QDomNode node = doc.documentElement().firstChild();
+ TQDomNode node = doc.documentElement().firstChild();
bool ok = false;
while( !node.isNull() && !ok )
{
- QDomElement element = node.toElement();
+ TQDomElement element = node.toElement();
if( !element.isNull() && element.attribute("xmlns") == JINGLE_NS)
{
ok = true;