summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/liboscar/chatnavservicetask.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/chatnavservicetask.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/chatnavservicetask.cpp')
-rw-r--r--kopete/protocols/oscar/liboscar/chatnavservicetask.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp b/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp
index f661d1f4..914de496 100644
--- a/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp
+++ b/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp
@@ -45,7 +45,7 @@ ChatNavServiceTask::RequestType ChatNavServiceTask::requestType()
return m_type;
}
-QValueList<int> ChatNavServiceTask::exchangeList() const
+TQValueList<int> ChatNavServiceTask::exchangeList() const
{
return m_exchanges;
}
@@ -97,7 +97,7 @@ bool ChatNavServiceTask::take( Transfer* transfer )
}
- setSuccess( 0, QString::null );
+ setSuccess( 0, TQString::null );
setTransfer( 0 );
return true;
@@ -113,12 +113,12 @@ void ChatNavServiceTask::onGo()
send( t );
}
-void ChatNavServiceTask::createRoom( WORD exchange, const QString& name )
+void ChatNavServiceTask::createRoom( WORD exchange, const TQString& name )
{
//most of this comes from gaim. thanks to them for figuring it out
- QString cookie = "create"; //hardcoded, seems to be ignored by AOL
- QString lang = "en";
- QString charset = "us-ascii";
+ TQString cookie = "create"; //hardcoded, seems to be ignored by AOL
+ TQString lang = "en";
+ TQString charset = "us-ascii";
FLAP f = { 0x02, 0, 0 };
SNAC s = { 0x000D, 0x0008, 0x0000, client()->snacSequence() };
@@ -202,7 +202,7 @@ void ChatNavServiceTask::handleExchangeInfo( const TLV& t )
break;
case 0xD3:
{
- QString eName( t.data );
+ TQString eName( t.data );
kdDebug(OSCAR_RAW_DEBUG) << "exchange name: " << eName << endl;
exchangeInfo.description = eName;
break;
@@ -227,16 +227,16 @@ void ChatNavServiceTask::handleBasicRoomInfo( const TLV& t )
kdDebug(OSCAR_RAW_DEBUG) << "Parsing room info TLV" << t.length << endl;
Buffer b(t.data);
WORD exchange = b.getWord();
- QByteArray cookie( b.getBlock( b.getByte() ) );
+ TQByteArray cookie( b.getBlock( b.getByte() ) );
WORD instance = b.getWord();
b.getByte(); //detail level, which i'm not sure we need
WORD tlvCount = b.getWord();
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "e: " << exchange
<< " c: " << cookie << " i: " << instance << endl;
- QValueList<Oscar::TLV> tlvList = b.getTLVList();
- QValueList<Oscar::TLV>::iterator it, itEnd = tlvList.end();
- QString roomName;
+ TQValueList<Oscar::TLV> tlvList = b.getTLVList();
+ TQValueList<Oscar::TLV>::iterator it, itEnd = tlvList.end();
+ TQString roomName;
for ( it = tlvList.begin(); it != itEnd; ++it )
{
TLV t = ( *it );
@@ -255,7 +255,7 @@ void ChatNavServiceTask::handleBasicRoomInfo( const TLV& t )
kdDebug(OSCAR_RAW_DEBUG) << "evil generated array" << endl;
break;
case 0x6A:
- roomName = QString( t.data );
+ roomName = TQString( t.data );
kdDebug(OSCAR_RAW_DEBUG) << "fully qualified name" << roomName << endl;
break;
case 0x6B:
@@ -305,7 +305,7 @@ void ChatNavServiceTask::handleCreateRoomInfo( const TLV& t )
Buffer b( t.data );
WORD exchange = b.getWord();
WORD cookieLength = b.getByte();
- QByteArray cookie( b.getBlock( cookieLength ) );
+ TQByteArray cookie( b.getBlock( cookieLength ) );
WORD instance = b.getWord();
BYTE detailLevel = b.getByte();
@@ -316,16 +316,16 @@ void ChatNavServiceTask::handleCreateRoomInfo( const TLV& t )
}
WORD numberTlvs = b.getWord();
- QValueList<Oscar::TLV> roomTLVList = b.getTLVList();
- QValueList<Oscar::TLV>::iterator itEnd = roomTLVList.end();
- for ( QValueList<Oscar::TLV>::iterator it = roomTLVList.begin();
+ TQValueList<Oscar::TLV> roomTLVList = b.getTLVList();
+ TQValueList<Oscar::TLV>::iterator itEnd = roomTLVList.end();
+ for ( TQValueList<Oscar::TLV>::iterator it = roomTLVList.begin();
it != itEnd; ++ it )
{
switch( ( *it ).type )
{
case 0x006A:
{
- QString fqcn = QString( ( *it ).data );
+ TQString fqcn = TQString( ( *it ).data );
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "fqcn: " << fqcn << endl;
break;
}
@@ -342,7 +342,7 @@ void ChatNavServiceTask::handleCreateRoomInfo( const TLV& t )
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "max occupancy: " << t.data << endl;
break;
case 0x00D3:
- kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "name: " << QString( t.data ) << endl;
+ kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "name: " << TQString( t.data ) << endl;
break;
case 0x00D5:
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "create perms: " << t.data << endl;