summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/libkyahoo/messagereceivertask.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/yahoo/libkyahoo/messagereceivertask.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/yahoo/libkyahoo/messagereceivertask.cpp')
-rw-r--r--kopete/protocols/yahoo/libkyahoo/messagereceivertask.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/protocols/yahoo/libkyahoo/messagereceivertask.cpp b/kopete/protocols/yahoo/libkyahoo/messagereceivertask.cpp
index 698552a3..769b4abe 100644
--- a/kopete/protocols/yahoo/libkyahoo/messagereceivertask.cpp
+++ b/kopete/protocols/yahoo/libkyahoo/messagereceivertask.cpp
@@ -14,7 +14,7 @@
*************************************************************************
*/
-#include <qstring.h>
+#include <tqstring.h>
#include "messagereceivertask.h"
#include "transfer.h"
@@ -73,12 +73,12 @@ void MessageReceiverTask::parseMessage( YMSGTransfer *t )
int cnt = t->paramCount( 5 );
for( int i = 0; i < cnt; ++i )
{
- QString to = t->nthParam( 5, i );
- QString timestamp = t->nthParamSeparated( 15, i, 4 );
- QString utf8 = t->nthParamSeparated( 97, i, 4 );
- QString from = t->nthParamSeparated( 1, i, 4 ).isEmpty() ? t->nthParam( 4, i ) : t->nthParamSeparated( 1, i, 4 );
- QString msg = t->nthParamSeparated( 14, i, 4 );
- QString sysmsg = t->nthParamSeparated( 16, i, 4 );
+ TQString to = t->nthParam( 5, i );
+ TQString timestamp = t->nthParamSeparated( 15, i, 4 );
+ TQString utf8 = t->nthParamSeparated( 97, i, 4 );
+ TQString from = t->nthParamSeparated( 1, i, 4 ).isEmpty() ? t->nthParam( 4, i ) : t->nthParamSeparated( 1, i, 4 );
+ TQString msg = t->nthParamSeparated( 14, i, 4 );
+ TQString sysmsg = t->nthParamSeparated( 16, i, 4 );
// The arrangement of the key->value pairs is different when there is only one message in the packet.
// Separating by key "5" (sender) doesn't work in that case, because the "1" and "4" keys are sent before the "5" key
@@ -98,7 +98,7 @@ void MessageReceiverTask::parseMessage( YMSGTransfer *t )
}
if( utf8.startsWith( "1" ) )
- msg = QString::fromUtf8( msg.latin1() );
+ msg = TQString::fromUtf8( msg.latin1() );
if( t->service() == Yahoo::ServiceSysMessage )
emit systemMessage( sysmsg );
@@ -116,11 +116,11 @@ void MessageReceiverTask::parseNotify( YMSGTransfer *t )
{
kdDebug(YAHOO_RAW_DEBUG) ;
- QString from = t->firstParam( 4 );
- //QString to = t->firstParam( 5 );
- QString type = t->firstParam( 49 );
- QString stat = t->firstParam( 13 );
- QString ind = t->firstParam( 14 );
+ TQString from = t->firstParam( 4 );
+ //TQString to = t->firstParam( 5 );
+ TQString type = t->firstParam( 49 );
+ TQString stat = t->firstParam( 13 );
+ TQString ind = t->firstParam( 14 );
if( type.startsWith( "TYPING" ) )
emit gotTypingNotify( from, stat.toInt() );