summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/liboscar/closeconnectiontask.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/closeconnectiontask.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/closeconnectiontask.cpp')
-rw-r--r--kopete/protocols/oscar/liboscar/closeconnectiontask.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kopete/protocols/oscar/liboscar/closeconnectiontask.cpp b/kopete/protocols/oscar/liboscar/closeconnectiontask.cpp
index 54926949..3b062b2a 100644
--- a/kopete/protocols/oscar/liboscar/closeconnectiontask.cpp
+++ b/kopete/protocols/oscar/liboscar/closeconnectiontask.cpp
@@ -18,8 +18,8 @@
#include "closeconnectiontask.h"
-#include <qstring.h>
-#include <qvaluelist.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
#include <kdebug.h>
#include <klocale.h>
#include "connection.h"
@@ -38,24 +38,24 @@ CloseConnectionTask::~CloseConnectionTask()
{
}
-const QByteArray& CloseConnectionTask::cookie() const
+const TQByteArray& CloseConnectionTask::cookie() const
{
return m_cookie;
}
-const QString& CloseConnectionTask::bosHost() const
+const TQString& CloseConnectionTask::bosHost() const
{
return m_bosHost;
}
-const QString& CloseConnectionTask::bosPort() const
+const TQString& CloseConnectionTask::bosPort() const
{
return m_bosPort;
}
bool CloseConnectionTask::take( Transfer* transfer )
{
- QString errorReason;
+ TQString errorReason;
WORD errorNum = 0;
if ( forMe( transfer ) )
{
@@ -70,12 +70,12 @@ bool CloseConnectionTask::take( Transfer* transfer )
return false;
}
- QValueList<TLV> tlvList = ft->buffer()->getTLVList();
+ TQValueList<TLV> tlvList = ft->buffer()->getTLVList();
TLV uin = findTLV( tlvList, 0x0001 );
if ( uin )
{
- kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "found TLV(1) [UIN], uin=" << QString( uin.data ) << endl;
+ kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "found TLV(1) [UIN], uin=" << TQString( uin.data ) << endl;
}
TLV err = findTLV( tlvList, 0x0008 );
@@ -96,8 +96,8 @@ bool CloseConnectionTask::take( Transfer* transfer )
TLV server = findTLV( tlvList, 0x0005 );
if ( server )
{
- kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "found TLV(5) [SERVER] " << QString( server.data ) << endl;
- QString ip = server.data;
+ kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "found TLV(5) [SERVER] " << TQString( server.data ) << endl;
+ TQString ip = server.data;
int index = ip.find( ':' );
m_bosHost = ip.left( index );
ip.remove( 0 , index+1 ); //get rid of the colon and everything before it