summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/libkyahoo/ymsgprotocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/yahoo/libkyahoo/ymsgprotocol.cpp')
-rw-r--r--kopete/protocols/yahoo/libkyahoo/ymsgprotocol.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kopete/protocols/yahoo/libkyahoo/ymsgprotocol.cpp b/kopete/protocols/yahoo/libkyahoo/ymsgprotocol.cpp
index ce2c65eb..b1e6e4e3 100644
--- a/kopete/protocols/yahoo/libkyahoo/ymsgprotocol.cpp
+++ b/kopete/protocols/yahoo/libkyahoo/ymsgprotocol.cpp
@@ -16,16 +16,16 @@
*************************************************************************
*/
-//#include <QDataStream>
-//#include <QMap>
-//#include <QObject>
-//#include <QStringList>
+//#include <TQDataStream>
+//#include <TQMap>
+//#include <TQObject>
+//#include <TQStringList>
-//#include <qcstring.h>
-#include <qdatastream.h>
-#include <qmap.h>
-#include <qobject.h>
-#include <qstringlist.h>
+//#include <tqcstring.h>
+#include <tqdatastream.h>
+#include <tqmap.h>
+#include <tqobject.h>
+#include <tqstringlist.h>
#include <kdebug.h>
@@ -36,7 +36,7 @@
using namespace Yahoo;
-YMSGProtocol::YMSGProtocol(QObject *parent, const char *name)
+YMSGProtocol::YMSGProtocol(TQObject *parent, const char *name)
: InputProtocolBase(parent, name)
{
}
@@ -45,7 +45,7 @@ YMSGProtocol::~YMSGProtocol()
{
}
-Transfer* YMSGProtocol::parse( const QByteArray & packet, uint& bytes )
+Transfer* YMSGProtocol::parse( const TQByteArray & packet, uint& bytes )
{
/*
<------- 4B -------><------- 4B -------><---2B--->
@@ -71,7 +71,7 @@ Transfer* YMSGProtocol::parse( const QByteArray & packet, uint& bytes )
int servicenum;
int version1, version2;
- QMap<QString, QString> params;
+ TQMap<TQString, TQString> params;
// Skip the YMSG header
pos += 4;
@@ -381,13 +381,13 @@ Transfer* YMSGProtocol::parse( const QByteArray & packet, uint& bytes )
t->setStatus(status);
t->setPacketLength(len);
- QString d = QString::fromAscii( packet.data() + pos, packet.size() - pos );
- QStringList list = QStringList::split( "\xc0\x80", d );
+ TQString d = TQString::fromAscii( packet.data() + pos, packet.size() - pos );
+ TQStringList list = TQStringList::split( "\xc0\x80", d );
for( int i = 0; i+1 < list.size() && pos+1 < len+20; i += 2 ) {
- QString key = list[i];
- QString value = QString::fromUtf8( list[i+1].ascii() );
+ TQString key = list[i];
+ TQString value = TQString::fromUtf8( list[i+1].ascii() );
pos += key.utf8().length() + value.utf8().length() + 4;
- t->setParam( QString(key).toInt(), value.utf8() );
+ t->setParam( TQString(key).toInt(), value.utf8() );
kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << "Key: " << key << " Value: " << value << endl;
}