Fix kdenetwork FTBFS

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1251871 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 6f832f8441
commit a7d8c5aa21

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

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

Loading…
Cancel
Save