summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/libiris/iris/xmpp-im
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/jabber/libiris/iris/xmpp-im')
-rw-r--r--kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp16
-rw-r--r--kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp18
-rw-r--r--kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp8
3 files changed, 21 insertions, 21 deletions
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp
index 86a01e60..7b425696 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp
@@ -790,7 +790,7 @@ void Client::ppPresence(const Jid &j, const tqStatus &s)
void Client::updateSelfPresence(const Jid &j, const tqStatus &s)
{
- ResourceList::Iterator rit = d->resourceList.tqfind(j.resource());
+ ResourceList::Iterator rit = d->resourceList.find(j.resource());
bool found = (rit == d->resourceList.end()) ? false: true;
// unavailable? remove the resource
@@ -822,7 +822,7 @@ void Client::updateSelfPresence(const Jid &j, const tqStatus &s)
void Client::updatePresence(LiveRosterItem *i, const Jid &j, const tqStatus &s)
{
- ResourceList::Iterator rit = i->resourceList().tqfind(j.resource());
+ ResourceList::Iterator rit = i->resourceList().find(j.resource());
bool found = (rit == i->resourceList().end()) ? false: true;
// unavailable? remove the resource
@@ -950,7 +950,7 @@ void Client::importRosterItem(const RosterItem &item)
// Remove
if(item.subscription().type() == Subscription::Remove) {
- LiveRoster::Iterator it = d->roster.tqfind(item.jid());
+ LiveRoster::Iterator it = d->roster.find(item.jid());
if(it != d->roster.end()) {
rosterItemRemoved(*it);
d->roster.remove(it);
@@ -959,7 +959,7 @@ void Client::importRosterItem(const RosterItem &item)
}
// Add/Update
else {
- LiveRoster::Iterator it = d->roster.tqfind(item.jid());
+ LiveRoster::Iterator it = d->roster.find(item.jid());
if(it != d->roster.end()) {
LiveRosterItem &i = *it;
i.setFlagForDelete(false);
@@ -1001,7 +1001,7 @@ void Client::setPresence(const tqStatus &s)
// update our resourceList
ppPresence(jid(), s);
- //ResourceList::Iterator rit = d->resourceList.tqfind(resource());
+ //ResourceList::Iterator rit = d->resourceList.find(resource());
//Resource &r = *rit;
//r.settqStatus(s);
}
@@ -1097,7 +1097,7 @@ void Client::addExtension(const TQString& ext, const Features& features)
void Client::removeExtension(const TQString& ext)
{
- if (d->extension_features.tqcontains(ext)) {
+ if (d->extension_features.contains(ext)) {
d->extension_features.remove(ext);
d->capsExt = extensions().join(" ");
}
@@ -1499,7 +1499,7 @@ void LiveRoster::flagAllForDelete()
(*it).setFlagForDelete(true);
}
-LiveRoster::Iterator LiveRoster::tqfind(const Jid &j, bool compareRes)
+LiveRoster::Iterator LiveRoster::find(const Jid &j, bool compareRes)
{
Iterator it;
for(it = begin(); it != end(); ++it) {
@@ -1509,7 +1509,7 @@ LiveRoster::Iterator LiveRoster::tqfind(const Jid &j, bool compareRes)
return it;
}
-LiveRoster::ConstIterator LiveRoster::tqfind(const Jid &j, bool compareRes) const
+LiveRoster::ConstIterator LiveRoster::find(const Jid &j, bool compareRes) const
{
ConstIterator it;
for(it = begin(); it != end(); ++it) {
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp
index fb9de2e8..522e52f9 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp
@@ -421,12 +421,12 @@ bool Message::containsEvents() const
bool Message::containsEvent(MsgEvent e) const
{
- return d->eventList.tqcontains(e);
+ return d->eventList.contains(e);
}
void Message::addEvent(MsgEvent e)
{
- if (!d->eventList.tqcontains(e)) {
+ if (!d->eventList.contains(e)) {
if (e == CancelEvent || containsEvent(CancelEvent))
d->eventList.clear(); // Reset list
d->eventList += e;
@@ -1018,10 +1018,10 @@ ResourceList::~ResourceList()
{
}
-ResourceList::Iterator ResourceList::tqfind(const TQString & _tqfind)
+ResourceList::Iterator ResourceList::find(const TQString & _find)
{
for(ResourceList::Iterator it = begin(); it != end(); ++it) {
- if((*it).name() == _tqfind)
+ if((*it).name() == _find)
return it;
}
@@ -1040,10 +1040,10 @@ ResourceList::Iterator ResourceList::priority()
return highest;
}
-ResourceList::ConstIterator ResourceList::tqfind(const TQString & _tqfind) const
+ResourceList::ConstIterator ResourceList::find(const TQString & _find) const
{
for(ResourceList::ConstIterator it = begin(); it != end(); ++it) {
- if((*it).name() == _tqfind)
+ if((*it).name() == _find)
return it;
}
@@ -1222,7 +1222,7 @@ Roster::~Roster()
{
}
-Roster::Iterator Roster::tqfind(const Jid &j)
+Roster::Iterator Roster::find(const Jid &j)
{
for(Roster::Iterator it = begin(); it != end(); ++it) {
if((*it).jid().compare(j))
@@ -1232,7 +1232,7 @@ Roster::Iterator Roster::tqfind(const Jid &j)
return end();
}
-Roster::ConstIterator Roster::tqfind(const Jid &j) const
+Roster::ConstIterator Roster::find(const Jid &j) const
{
for(Roster::ConstIterator it = begin(); it != end(); ++it) {
if((*it).jid().compare(j))
@@ -1512,7 +1512,7 @@ bool Features::test(const TQStringList &ns) const
{
TQStringList::ConstIterator it = ns.begin();
for ( ; it != ns.end(); ++it)
- if ( _list.tqfind( *it ) != _list.end() )
+ if ( _list.find( *it ) != _list.end() )
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 bab5665b..45ef7a04 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp
@@ -35,9 +35,9 @@ using namespace XMPP;
static TQString lineEncode(TQString str)
{
- str.tqreplace(TQRegExp("\\\\"), "\\\\"); // backslash to double-backslash
- str.tqreplace(TQRegExp("\\|"), "\\p"); // pipe to \p
- str.tqreplace(TQRegExp("\n"), "\\n"); // newline to \n
+ str.replace(TQRegExp("\\\\"), "\\\\"); // backslash to double-backslash
+ str.replace(TQRegExp("\\|"), "\\p"); // pipe to \p
+ str.replace(TQRegExp("\n"), "\\n"); // newline to \n
return str;
}
@@ -1417,7 +1417,7 @@ bool JT_ServInfo::take(const TQDomElement &e)
}
else if (node.startsWith(client()->capsNode() + "#")) {
TQString ext = node.right(node.length()-client()->capsNode().length()-1);
- if (client()->extensions().tqcontains(ext)) {
+ if (client()->extensions().contains(ext)) {
const TQStringList& l = client()->extension(ext).list();
for ( TQStringList::ConstIterator it = l.begin(); it != l.end(); ++it ) {
feature = doc()->createElement("feature");