summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/liboscar/connectionhandler.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/oscar/liboscar/connectionhandler.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/oscar/liboscar/connectionhandler.cpp')
-rw-r--r--kopete/protocols/oscar/liboscar/connectionhandler.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kopete/protocols/oscar/liboscar/connectionhandler.cpp b/kopete/protocols/oscar/liboscar/connectionhandler.cpp
index bf5706ee..bd4df3c5 100644
--- a/kopete/protocols/oscar/liboscar/connectionhandler.cpp
+++ b/kopete/protocols/oscar/liboscar/connectionhandler.cpp
@@ -17,7 +17,7 @@
*/
#include "connectionhandler.h"
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <kdebug.h>
#include "connection.h"
#include "oscartypes.h"
@@ -25,8 +25,8 @@
class ConnectionHandler::Private
{
public:
- QValueList<Connection*> connections;
- QMap<Connection*, ConnectionRoomInfo> chatRoomConnections;
+ TQValueList<Connection*> connections;
+ TQMap<Connection*, ConnectionRoomInfo> chatRoomConnections;
};
ConnectionHandler::ConnectionHandler()
@@ -57,8 +57,8 @@ void ConnectionHandler::remove( int family )
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Removing all connections " <<
"supporting family " << family << endl;
- QValueList<Connection*>::iterator it = d->connections.begin();
- QValueList<Connection*>::iterator itEnd = d->connections.end();
+ TQValueList<Connection*>::iterator it = d->connections.begin();
+ TQValueList<Connection*>::iterator itEnd = d->connections.end();
for ( ; it != itEnd; ++it )
{
if ( ( *it )->isSupported( family ) )
@@ -84,8 +84,8 @@ void ConnectionHandler::clear()
Connection* ConnectionHandler::connectionForFamily( int family ) const
{
- QValueList<Connection*>::iterator it = d->connections.begin();
- QValueList<Connection*>::iterator itEnd = d->connections.end();
+ TQValueList<Connection*>::iterator it = d->connections.begin();
+ TQValueList<Connection*>::iterator itEnd = d->connections.end();
int connectionCount = 0;
Connection* lastConnection = 0;
for ( ; it != itEnd; ++it )
@@ -110,7 +110,7 @@ Connection* ConnectionHandler::defaultConnection() const
return d->connections.first();
}
-void ConnectionHandler::addChatInfoForConnection( Connection* c, Oscar::WORD exchange, const QString& room )
+void ConnectionHandler::addChatInfoForConnection( Connection* c, Oscar::WORD exchange, const TQString& room )
{
if ( d->connections.findIndex( c ) == -1 )
d->connections.append( c );
@@ -119,10 +119,10 @@ void ConnectionHandler::addChatInfoForConnection( Connection* c, Oscar::WORD exc
d->chatRoomConnections[c] = info;
}
-Connection* ConnectionHandler::connectionForChatRoom( Oscar::WORD exchange, const QString& room )
+Connection* ConnectionHandler::connectionForChatRoom( Oscar::WORD exchange, const TQString& room )
{
ConnectionRoomInfo infoToFind = qMakePair( exchange, room );
- QMap<Connection*, ConnectionRoomInfo>::iterator it, itEnd = d->chatRoomConnections.end();
+ TQMap<Connection*, ConnectionRoomInfo>::iterator it, itEnd = d->chatRoomConnections.end();
for ( it = d->chatRoomConnections.begin(); it != itEnd; ++it )
{
if ( it.data() == infoToFind )
@@ -135,22 +135,22 @@ Connection* ConnectionHandler::connectionForChatRoom( Oscar::WORD exchange, cons
return 0;
}
-QString ConnectionHandler::chatRoomForConnection( Connection* c )
+TQString ConnectionHandler::chatRoomForConnection( Connection* c )
{
if ( d->connections.findIndex( c ) == -1 )
- return QString::null;
+ return TQString::null;
- QMap<Connection*, ConnectionRoomInfo>::iterator it, itEnd = d->chatRoomConnections.end();
+ TQMap<Connection*, ConnectionRoomInfo>::iterator it, itEnd = d->chatRoomConnections.end();
for ( it = d->chatRoomConnections.begin(); it != itEnd; ++it )
{
if ( it.key() == c )
{
- QString room = it.data().second;
+ TQString room = it.data().second;
return room;
}
}
- return QString::null;
+ return TQString::null;
}
Oscar::WORD ConnectionHandler::exchangeForConnection( Connection* c )
@@ -159,7 +159,7 @@ Oscar::WORD ConnectionHandler::exchangeForConnection( Connection* c )
if ( d->connections.findIndex( c ) == -1 )
return 0xFFFF;
- QMap<Connection*, ConnectionRoomInfo>::iterator it, itEnd = d->chatRoomConnections.end();
+ TQMap<Connection*, ConnectionRoomInfo>::iterator it, itEnd = d->chatRoomConnections.end();
for ( it = d->chatRoomConnections.begin(); it != itEnd; ++it )
{
if ( it.key() == c )