summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/jabberresourcepool.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/jabber/jabberresourcepool.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/jabber/jabberresourcepool.cpp')
-rw-r--r--kopete/protocols/jabber/jabberresourcepool.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kopete/protocols/jabber/jabberresourcepool.cpp b/kopete/protocols/jabber/jabberresourcepool.cpp
index 9d953ce6..19492790 100644
--- a/kopete/protocols/jabber/jabberresourcepool.cpp
+++ b/kopete/protocols/jabber/jabberresourcepool.cpp
@@ -16,7 +16,7 @@
* *************************************************************************
*/
-#include <qptrlist.h>
+#include <tqptrlist.h>
#include <kdebug.h>
#include "jabberresourcepool.h"
@@ -44,8 +44,8 @@ public:
pool.setAutoDelete(true);
}
- QPtrList<JabberResource> pool;
- QPtrList<JabberResource> lockList;
+ TQPtrList<JabberResource> pool;
+ TQPtrList<JabberResource> lockList;
/**
* Pointer to the JabberAccount instance.
@@ -62,7 +62,7 @@ JabberResourcePool::~JabberResourcePool ()
delete d;
}
-void JabberResourcePool::slotResourceDestroyed (QObject *sender)
+void JabberResourcePool::slotResourceDestroyed (TQObject *sender)
{
kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << "Resource has been destroyed, collecting the pieces." << endl;
@@ -74,7 +74,7 @@ void JabberResourcePool::slotResourceDestroyed (QObject *sender)
void JabberResourcePool::slotResourceUpdated ( JabberResource *resource )
{
- QPtrList<JabberBaseContact> list = d->account->contactPool()->findRelevantSources ( resource->jid () );
+ TQPtrList<JabberBaseContact> list = d->account->contactPool()->findRelevantSources ( resource->jid () );
for(JabberBaseContact *mContact = list.first (); mContact; mContact = list.next ())
{
@@ -91,7 +91,7 @@ void JabberResourcePool::slotResourceUpdated ( JabberResource *resource )
void JabberResourcePool::notifyRelevantContacts ( const XMPP::Jid &jid )
{
- QPtrList<JabberBaseContact> list = d->account->contactPool()->findRelevantSources ( jid );
+ TQPtrList<JabberBaseContact> list = d->account->contactPool()->findRelevantSources ( jid );
for(JabberBaseContact *mContact = list.first (); mContact; mContact = list.next ())
{
@@ -133,8 +133,8 @@ void JabberResourcePool::addResource ( const XMPP::Jid &jid, const XMPP::Resourc
// create new resource instance and add it to the dictionary
JabberResource *newResource = new JabberResource(d->account, jid, resource);
- connect ( newResource, SIGNAL ( destroyed (QObject *) ), this, SLOT ( slotResourceDestroyed (QObject *) ) );
- connect ( newResource, SIGNAL ( updated (JabberResource *) ), this, SLOT ( slotResourceUpdated (JabberResource *) ) );
+ connect ( newResource, TQT_SIGNAL ( destroyed (TQObject *) ), this, TQT_SLOT ( slotResourceDestroyed (TQObject *) ) );
+ connect ( newResource, TQT_SIGNAL ( updated (JabberResource *) ), this, TQT_SLOT ( slotResourceUpdated (JabberResource *) ) );
d->pool.append ( newResource );
// send notifications out to the relevant contacts that
@@ -189,7 +189,7 @@ void JabberResourcePool::clear ()
* and then notify all JIDs after the resources have been deleted.
*/
- QStringList jidList;
+ TQStringList jidList;
for ( JabberResource *mResource = d->pool.first (); mResource; mResource = d->pool.next () )
{
@@ -206,7 +206,7 @@ void JabberResourcePool::clear ()
* Now go through the list of JIDs and notify each contact
* of its status change
*/
- for ( QStringList::Iterator it = jidList.begin (); it != jidList.end (); ++it )
+ for ( TQStringList::Iterator it = jidList.begin (); it != jidList.end (); ++it )
{
notifyRelevantContacts ( XMPP::Jid ( *it ) );
}