summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/liboscar/aimlogintask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/oscar/liboscar/aimlogintask.cpp')
-rw-r--r--kopete/protocols/oscar/liboscar/aimlogintask.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kopete/protocols/oscar/liboscar/aimlogintask.cpp b/kopete/protocols/oscar/liboscar/aimlogintask.cpp
index 69a9c770..da066333 100644
--- a/kopete/protocols/oscar/liboscar/aimlogintask.cpp
+++ b/kopete/protocols/oscar/liboscar/aimlogintask.cpp
@@ -43,7 +43,7 @@ void AimLoginTask::onGo()
//send Snac 17,06
sendAuthStringRequest();
//when we have the authKey, login
- connect( this, SIGNAL( haveAuthKey() ), this, SLOT( sendLoginRequest() ) );
+ connect( this, TQT_SIGNAL( haveAuthKey() ), this, TQT_SLOT( sendLoginRequest() ) );
}
bool AimLoginTask::forMe( Transfer* transfer ) const
@@ -72,17 +72,17 @@ bool AimLoginTask::forMe( Transfer* transfer ) const
return false;
}
-const QByteArray& AimLoginTask::cookie() const
+const TQByteArray& AimLoginTask::cookie() const
{
return m_cookie;
}
-const QString& AimLoginTask::bosHost() const
+const TQString& AimLoginTask::bosHost() const
{
return m_bosHost;
}
-const QString& AimLoginTask::bosPort() const
+const TQString& AimLoginTask::bosPort() const
{
return m_bosPort;
}
@@ -158,7 +158,7 @@ void AimLoginTask::sendLoginRequest()
outbuf->addTLV(0x0001, client()->userId().length(), client()->userId().latin1());
- QByteArray digest( 17 ); //apparently MD5 digests are 16 bytes long
+ TQByteArray digest( 17 ); //apparently MD5 digests are 16 bytes long
encodePassword( digest );
digest[16] = '\0'; //do this so that addTLV sees a NULL-terminator
@@ -189,16 +189,16 @@ void AimLoginTask::handleLoginResponse()
if ( !st )
{
- setError( -1 , QString::null );
+ setError( -1 , TQString::null );
return;
}
- QValueList<TLV> tlvList = st->buffer()->getTLVList();
+ TQValueList<TLV> tlvList = st->buffer()->getTLVList();
TLV uin = findTLV( tlvList, 0x0001 );
if ( uin )
{
- kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "found TLV(1) [SN], SN=" << QString( uin.data ) << endl;
+ kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "found TLV(1) [SN], SN=" << TQString( uin.data ) << endl;
}
TLV err = findTLV( tlvList, 0x0008 );
@@ -211,14 +211,14 @@ void AimLoginTask::handleLoginResponse()
errorNum << endl;
Oscar::SNAC s = { 0, 0, 0, 0 };
client()->fatalTaskError( s, errorNum );
- setError( errorNum, QString::null );
+ setError( errorNum, TQString::null );
return; //if there's an error, we'll need to disconnect anyways
}
TLV server = findTLV( tlvList, 0x0005 );
if ( server )
{
- QString ip = QString( server.data );
+ TQString ip = TQString( server.data );
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "found TLV(5) [SERVER] " << ip << endl;
int index = ip.find( ':' );
m_bosHost = ip.left( index );
@@ -233,12 +233,12 @@ void AimLoginTask::handleLoginResponse()
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "found TLV(6) [COOKIE]" << endl;
m_cookie.duplicate( cookie.data );
- setSuccess( 0, QString::null );
+ setSuccess( 0, TQString::null );
}
tlvList.clear();
}
-void AimLoginTask::encodePassword( QByteArray& digest ) const
+void AimLoginTask::encodePassword( TQByteArray& digest ) const
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << endl;
md5_state_t state;