From a7d8c5aa21a1470dbab6f4d8c31292e402d8bdf0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 6 Sep 2011 19:10:00 +0000 Subject: Fix kdenetwork FTBFS git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1251871 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../jabber/libiris/iris/xmpp-im/client.cpp | 32 ---------------------- .../jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp | 31 +++++++++++++++++++++ 2 files changed, 31 insertions(+), 32 deletions(-) (limited to 'kopete/protocols') diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp index fcd73029..973b6c73 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp +++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp @@ -1521,35 +1521,3 @@ LiveRoster::ConstIterator LiveRoster::find(const Jid &j, bool compareRes) const } } - -//---------------------------------------------------------------------------- -// PongServer -//---------------------------------------------------------------------------- -/** - * \class PongServer - * \brief Answers XMPP Pings - */ - -PongServer::PongServer(Task *parent) -:Task(parent) -{ -} - -PongServer::~PongServer() -{ -} - -bool PongServer::take(const TQDomElement &e) -{ - if (e.tagName() != "iq" || e.attribute("type") != "get") - return false; - - bool found = false; - TQDomElement ping = findSubTag(e, "ping", &found); - if (found && ping.attribute("xmlns") == "urn:xmpp:ping") { - TQDomElement iq = createIQ(doc(), "result", e.attribute("from"), e.attribute("id")); - send(iq); - return true; - } - return false; -} diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp index 4e4c96d1..89d66796 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp +++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp @@ -2118,3 +2118,34 @@ TQDomElement JT_PrivateStorage::element( ) return d->elem; } +//---------------------------------------------------------------------------- +// PongServer +//---------------------------------------------------------------------------- +/** + * \class PongServer + * \brief Answers XMPP Pings + */ + +PongServer::PongServer(Task *parent) +:Task(parent) +{ +} + +PongServer::~PongServer() +{ +} + +bool PongServer::take(const TQDomElement &e) +{ + if (e.tagName() != "iq" || e.attribute("type") != "get") + return false; + + bool found = false; + TQDomElement ping = findSubTag(e, "ping", &found); + if (found && ping.attribute("xmlns") == "urn:xmpp:ping") { + TQDomElement iq = createIQ(doc(), "result", e.attribute("from"), e.attribute("id")); + send(iq); + return true; + } + return false; +} -- cgit v1.2.1