summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/liboscar/buddyicontask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/oscar/liboscar/buddyicontask.cpp')
-rw-r--r--kopete/protocols/oscar/liboscar/buddyicontask.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kopete/protocols/oscar/liboscar/buddyicontask.cpp b/kopete/protocols/oscar/liboscar/buddyicontask.cpp
index 1828b7b9..facaae1a 100644
--- a/kopete/protocols/oscar/liboscar/buddyicontask.cpp
+++ b/kopete/protocols/oscar/liboscar/buddyicontask.cpp
@@ -19,7 +19,7 @@
#include "buddyicontask.h"
-#include <qstring.h>
+#include <tqstring.h>
#include <kdebug.h>
#include "buffer.h"
#include "connection.h"
@@ -36,20 +36,20 @@ BuddyIconTask::BuddyIconTask( Task* parent )
m_hashType = 0;
}
-void BuddyIconTask::uploadIcon( WORD length, const QByteArray& data )
+void BuddyIconTask::uploadIcon( WORD length, const TQByteArray& data )
{
m_iconLength = length;
m_icon = data;
m_action = Send;
}
-void BuddyIconTask::requestIconFor( const QString& user )
+void BuddyIconTask::requestIconFor( const TQString& user )
{
m_user = user;
m_action = Receive;
}
-void BuddyIconTask::setHash( const QByteArray& md5Hash )
+void BuddyIconTask::setHash( const TQByteArray& md5Hash )
{
m_hash = md5Hash;
}
@@ -125,7 +125,7 @@ bool BuddyIconTask::take( Transfer* transfer )
else
handleICQBuddyIconResponse();
- setSuccess( 0, QString::null );
+ setSuccess( 0, TQString::null );
setTransfer( 0 );
return true;
}
@@ -150,10 +150,10 @@ void BuddyIconTask::handleUploadResponse()
Buffer* b = transfer()->buffer();
b->skipBytes( 4 );
BYTE iconHashSize = b->getByte();
- QByteArray hash( b->getBlock( iconHashSize ) );
+ TQByteArray hash( b->getBlock( iconHashSize ) );
//check the hash
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "hash " << hash << endl;
- setSuccess( 0, QString::null );
+ setSuccess( 0, TQString::null );
}
@@ -178,16 +178,16 @@ void BuddyIconTask::sendAIMBuddyIconRequest()
void BuddyIconTask::handleAIMBuddyIconResponse()
{
Buffer* b = transfer()->buffer();
- QString user = b->getBUIN();
+ TQString user = b->getBUIN();
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Receiving buddy icon for " << user << endl;
b->skipBytes(2); //unknown field. not used
BYTE iconType = b->getByte();
Q_UNUSED( iconType );
BYTE hashSize = b->getByte();
- QByteArray iconHash;
+ TQByteArray iconHash;
iconHash.duplicate( b->getBlock(hashSize) );
WORD iconSize = b->getWord();
- QByteArray icon;
+ TQByteArray icon;
icon.duplicate( b->getBlock(iconSize) );
emit haveIcon( user, icon );
}
@@ -213,7 +213,7 @@ void BuddyIconTask::sendICQBuddyIconRequest()
void BuddyIconTask::handleICQBuddyIconResponse()
{
Buffer* b = transfer()->buffer();
- QString user = b->getBUIN();
+ TQString user = b->getBUIN();
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Receiving buddy icon for " << user << endl;
b->skipBytes(2); //not used
@@ -221,7 +221,7 @@ void BuddyIconTask::handleICQBuddyIconResponse()
Q_UNUSED( iconType );
BYTE hashSize = b->getByte();
- QByteArray iconHash;
+ TQByteArray iconHash;
iconHash.duplicate( b->getBlock(hashSize) );
b->skipBytes(1); //not used
@@ -230,11 +230,11 @@ void BuddyIconTask::handleICQBuddyIconResponse()
Q_UNUSED( iconType2 );
BYTE hashSize2 = b->getByte();
- QByteArray iconHash2;
+ TQByteArray iconHash2;
iconHash2.duplicate( b->getBlock(hashSize2) );
WORD iconSize = b->getWord();
- QByteArray icon;
+ TQByteArray icon;
icon.duplicate( b->getBlock(iconSize) );
emit haveIcon( user, icon );