diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2017-12-30 16:04:07 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-12-30 16:04:19 +0100 |
commit | 70e337eaa8e523d74e3b3757ac6972a72b8e44cc (patch) | |
tree | ebeda7804a9c81f4a1c2097b7ecf19bca85229f5 /kopete/protocols/oscar/liboscar/logintask.cpp | |
parent | f59b2e28c7ab8707750e56a140023af08d42390e (diff) | |
download | tdenetwork-70e337eaa8e523d74e3b3757ac6972a72b8e44cc.tar.gz tdenetwork-70e337eaa8e523d74e3b3757ac6972a72b8e44cc.zip |
kopete: Remove the AIM specific code from liboscar
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 036b0229dba794cf6267b522ac1f6449b6708d51)
Diffstat (limited to 'kopete/protocols/oscar/liboscar/logintask.cpp')
-rw-r--r-- | kopete/protocols/oscar/liboscar/logintask.cpp | 52 |
1 files changed, 9 insertions, 43 deletions
diff --git a/kopete/protocols/oscar/liboscar/logintask.cpp b/kopete/protocols/oscar/liboscar/logintask.cpp index 73379e40..c3d568f9 100644 --- a/kopete/protocols/oscar/liboscar/logintask.cpp +++ b/kopete/protocols/oscar/liboscar/logintask.cpp @@ -1,6 +1,6 @@ /* Kopete Oscar Protocol - logintask.cpp - Handles logging into to the AIM or ICQ service + logintask.cpp - Handles logging into to the ICQ service Copyright (c) 2004 Matt Rogers <mattr@kde.org> @@ -22,7 +22,6 @@ #include <kdebug.h> #include <tdelocale.h> -#include "aimlogintask.h" #include "connection.h" #include "closeconnectiontask.h" #include "icqlogintask.h" @@ -40,49 +39,26 @@ StageOneLoginTask::StageOneLoginTask( Task* parent ) : Task ( parent ) { - m_aimTask = 0L; m_icqTask = 0L; m_closeTask = 0L; } StageOneLoginTask::~StageOneLoginTask() { - delete m_aimTask; delete m_icqTask; delete m_closeTask; } bool StageOneLoginTask::take( Transfer* transfer ) { - if ( forMe( transfer ) ) - { - if ( client()->isIcq() ) - { - kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Starting ICQ login" << endl; - m_icqTask = new IcqLoginTask( client()->rootTask() ); - m_closeTask = new CloseConnectionTask( client()->rootTask() ); - - //connect finished signal - connect( m_closeTask, TQT_SIGNAL( finished() ), this, TQT_SLOT( closeTaskFinished() ) ); - m_icqTask->go( true ); - } - else - { - kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Starting AIM login" << endl; - kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Sending the FLAP version back" << endl; - - //send the flap version response - FLAP f = { 0x01, 0 , 0 }; - Buffer *outbuf = new Buffer; - outbuf->addDWord(0x00000001); //flap version - f.length = outbuf->length(); - Transfer* ft = createTransfer( f, outbuf ); - send( ft ); - - m_aimTask = new AimLoginTask( client()->rootTask() ); - connect( m_aimTask, TQT_SIGNAL( finished() ), this, TQT_SLOT( aimTaskFinished() ) ); - m_aimTask->go( true ); - } + if ( forMe( transfer ) ) { + kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Starting ICQ login" << endl; + m_icqTask = new IcqLoginTask( client()->rootTask() ); + m_closeTask = new CloseConnectionTask( client()->rootTask() ); + + //connect finished signal + connect( m_closeTask, TQT_SIGNAL( finished() ), this, TQT_SLOT( closeTaskFinished() ) ); + m_icqTask->go( true ); return true; } return false; @@ -98,16 +74,6 @@ void StageOneLoginTask::closeTaskFinished() setSuccess( m_closeTask->statusCode(), m_closeTask->statusString() ); } -void StageOneLoginTask::aimTaskFinished() -{ - kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << endl; - m_cookie = m_aimTask->cookie(); - m_bosPort = m_aimTask->bosPort(); - m_bosServer = m_aimTask->bosHost(); - - setSuccess( m_aimTask->statusCode(), m_aimTask->statusString() ); -} - bool StageOneLoginTask::forMe( Transfer* transfer ) const { FlapTransfer* ft = dynamic_cast<FlapTransfer*> ( transfer ); |