diff options
Diffstat (limited to 'kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp')
-rw-r--r-- | kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
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; -} |