summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.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/ymsgtransfer.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/ymsgtransfer.cpp')
-rw-r--r--kopete/protocols/yahoo/libkyahoo/ymsgtransfer.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.cpp b/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.cpp
index 233b0c85..dcee98d9 100644
--- a/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.cpp
+++ b/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.cpp
@@ -24,10 +24,10 @@
#include "yahootypes.h"
#include "kdebug.h"
-#include <qdatastream.h>
-#include <qmap.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqdatastream.h>
+#include <tqmap.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
using namespace Yahoo;
@@ -143,7 +143,7 @@ int YMSGTransfer::paramCount( int index ) const
}
-QCString YMSGTransfer::nthParam( int index, int occurrence ) const
+TQCString YMSGTransfer::nthParam( int index, int occurrence ) const
{
int cnt = 0;
for (ParamList::ConstIterator it = d->data.constBegin(); it != d->data.constEnd(); ++it)
@@ -151,10 +151,10 @@ QCString YMSGTransfer::nthParam( int index, int occurrence ) const
if( (*it).first == index && cnt++ == occurrence)
return (*it).second;
}
- return QCString();
+ return TQCString();
}
-QCString YMSGTransfer::nthParamSeparated( int index, int occurrence, int separator ) const
+TQCString YMSGTransfer::nthParamSeparated( int index, int occurrence, int separator ) const
{
int cnt = -1;
@@ -165,27 +165,27 @@ QCString YMSGTransfer::nthParamSeparated( int index, int occurrence, int separat
if( (*it).first == index && cnt == occurrence)
return (*it).second;
}
- return QCString();
+ return TQCString();
}
-QCString YMSGTransfer::firstParam( int index ) const
+TQCString YMSGTransfer::firstParam( int index ) const
{
for (ParamList::ConstIterator it = d->data.constBegin(); it != d->data.constEnd(); ++it)
{
if( (*it).first == index )
return (*it).second;
}
- return QCString();
+ return TQCString();
}
-void YMSGTransfer::setParam(int index, const QCString &data)
+void YMSGTransfer::setParam(int index, const TQCString &data)
{
d->data.append( Param( index, data ) );
}
void YMSGTransfer::setParam( int index, int data )
{
- d->data.append( Param( index, QString::number( data ).local8Bit() ) );
+ d->data.append( Param( index, TQString::number( data ).local8Bit() ) );
}
int YMSGTransfer::length() const
@@ -193,7 +193,7 @@ int YMSGTransfer::length() const
int len = 0;
for (ParamList::ConstIterator it = d->data.constBegin(); it != d->data.constEnd(); ++it)
{
- len += QString::number( (*it).first ).length();
+ len += TQString::number( (*it).first ).length();
len += 2;
len += (*it).second.length();
len += 2;
@@ -202,7 +202,7 @@ int YMSGTransfer::length() const
}
-QByteArray YMSGTransfer::serialize() const
+TQByteArray YMSGTransfer::serialize() const
{
/*
<------- 4B -------><------- 4B -------><---2B--->
@@ -218,9 +218,9 @@ QByteArray YMSGTransfer::serialize() const
*/
int pos = 0;
- QStringList::ConstIterator listIt = 0;
- QByteArray buffer;
- QDataStream stream( buffer, IO_WriteOnly );
+ TQStringList::ConstIterator listIt = 0;
+ TQByteArray buffer;
+ TQDataStream stream( buffer, IO_WriteOnly );
stream << (Q_INT8)'Y' << (Q_INT8)'M' << (Q_INT8)'S' << (Q_INT8)'G';
if( d->service == Yahoo::ServicePictureUpload )
@@ -239,7 +239,7 @@ QByteArray YMSGTransfer::serialize() const
for (ParamList::ConstIterator it = d->data.constBegin(); it != d->data.constEnd(); ++it)
{
kdDebug(YAHOO_RAW_DEBUG) << " Serializing key " << (*it).first << " value " << (*it).second << endl;
- stream.writeRawBytes ( QString::number( (*it).first ).local8Bit(), QString::number( (*it).first ).length() );
+ stream.writeRawBytes ( TQString::number( (*it).first ).local8Bit(), TQString::number( (*it).first ).length() );
stream << (Q_INT8)0xc0 << (Q_INT8)0x80;
stream.writeRawBytes( (*it).second, (*it).second.length() );
stream << (Q_INT8)0xc0 << (Q_INT8)0x80;