diff -r 2b7283837edb -r 3104fc151679 uiservicetab/vimpstcmdprocess/src/cvimpstcmdcancellogin.cpp --- a/uiservicetab/vimpstcmdprocess/src/cvimpstcmdcancellogin.cpp Thu Aug 19 09:41:53 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,121 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: cancel login command implementation -* -*/ - - -// INCLUDE FILES - -#include "cvimpstcmdcancellogin.h" - -#include "vimpstcmd.hrh" -#include "mvimpstcmdobserver.h" - -#include "uiservicetabtracer.h" - -#include -#include "mvimpstengine.h" - - -// -------------------------------------------------------------------------- -// CVIMPSTCmdLogout::CVIMPSTCmdLogout -// -------------------------------------------------------------------------- -// -CVIMPSTCmdCancelLogin::CVIMPSTCmdCancelLogin( const TInt aCommandId, - MVIMPSTEngine& aEngine) : - iCommandId( aCommandId ), - iEngine(aEngine) - { - } - -// -------------------------------------------------------------------------- -// CVIMPSTCmdCancelLogin::~CVIMPSTCmdCancelLogin -// -------------------------------------------------------------------------- -// -CVIMPSTCmdCancelLogin::~CVIMPSTCmdCancelLogin() - { - } - -// -------------------------------------------------------------------------- -// CVIMPSTCmdCancelLogin::NewL -// -------------------------------------------------------------------------- -// -CVIMPSTCmdCancelLogin* CVIMPSTCmdCancelLogin::NewL( - const TInt aCommandId, - MVIMPSTEngine& aEngine) - { - // return the object created - - TRACER_AUTO; - return new (ELeave ) CVIMPSTCmdCancelLogin( aCommandId , aEngine); - } - -// -------------------------------------------------------------------------- -// CVIMPSTCmdCancelLogin::ExecuteLD -// -------------------------------------------------------------------------- -// -void CVIMPSTCmdCancelLogin::ExecuteLD() - { - - TRACER_AUTO; - //push to the cleanupstack - CleanupStack::PushL( this ); - - // now call logout for cancel login - // protocol adaptation has to take care of this - iEngine.LogoutL(); - - - if(iObserver) - { - iObserver->CommandFinishedL(*this); - } - - CleanupStack::PopAndDestroy(); - - } - - -// -------------------------------------------------------------------------- -// CVIMPSTCmdCancelLogin::AddObserver -// -------------------------------------------------------------------------- -// -void CVIMPSTCmdCancelLogin::AddObserver( MVIMPSTCmdObserver& aObserver ) - { - // store the observer to notify the command completion - iObserver = &aObserver; - } - - -// -------------------------------------------------------------------------- -// CVIMPSTCmdCancelLogin::CommandId -// -------------------------------------------------------------------------- -// -TInt CVIMPSTCmdCancelLogin::CommandId() const - { - return iCommandId; - } - -// -------------------------------------------------------------------------- -// CVIMPSTCmdCancelLogin::Result -// -------------------------------------------------------------------------- -// -TInt CVIMPSTCmdCancelLogin::Result() const - { - // return KErrNone since iEngine.Logout() doesnot return any error value - return KErrNone; - } - -// End of File