|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|