--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/uiservicetab/vimpstcmdprocess/src/cvimpstcmdlogout.cpp Tue Feb 02 10:12:18 2010 +0200
@@ -0,0 +1,132 @@
+/*
+* 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: command process for logout
+*
+*/
+
+
+// INCLUDE FILES
+
+#include "cvimpstcmdlogout.h"
+
+#include "vimpstcmd.hrh"
+#include "mvimpstcmdobserver.h"
+#include "vimpstdebugprint.h"
+
+#include <e32def.h>
+
+#include "mvimpstengine.h"
+
+
+// Constants
+
+// --------------------------------------------------------------------------
+// CVIMPSTCmdLogout::CVIMPSTCmdLogout
+// --------------------------------------------------------------------------
+//
+CVIMPSTCmdLogout::CVIMPSTCmdLogout(
+ const TInt aCommandId ,TUint32 aServiceID,
+ MVIMPSTEngine& aEngine) :
+ iCommandId( aCommandId ),
+ iServiceId( aServiceID ),
+ iEngine(aEngine)
+ {
+ }
+
+// --------------------------------------------------------------------------
+// CVIMPSTCmdLogout::~CVIMPSTCmdLogout
+// --------------------------------------------------------------------------
+//
+CVIMPSTCmdLogout::~CVIMPSTCmdLogout()
+ {
+
+ }
+
+// --------------------------------------------------------------------------
+// CVIMPSTCmdLogout::NewL
+// --------------------------------------------------------------------------
+//
+CVIMPSTCmdLogout* CVIMPSTCmdLogout::NewL(
+ const TInt aCommandId,TUint32 aServiceID,
+ MVIMPSTEngine& aEngine)
+ {
+ CVIMPSTCmdLogout* self = new (ELeave ) CVIMPSTCmdLogout( aCommandId ,aServiceID, aEngine);
+ self->ConstructL(); //use contsurctL if necessary
+ return self;
+ }
+// --------------------------------------------------------------------------
+// CVIMPSTCmdLogout::ConstructL
+// --------------------------------------------------------------------------
+//
+void CVIMPSTCmdLogout::ConstructL()
+ {
+
+ }
+
+// --------------------------------------------------------------------------
+// CVIMPSTCmdLogout::ExecuteLD
+// --------------------------------------------------------------------------
+//
+void CVIMPSTCmdLogout::ExecuteLD()
+ {
+ CHAT_DP_FUNC_ENTER("CVIMPSTDisableServiceCmd::ExecuteLD");
+ //push to the cleanupstack
+ CleanupStack::PushL( this );
+
+ //call logout
+ iEngine.LogoutL();
+
+ CHAT_DP_FUNC_ENTER("CVIMPSTDisableServiceCmd:: CommandFinished");
+
+ if(iObserver)
+ {
+ iObserver->CommandFinishedL(*this);
+ }
+ CHAT_DP_FUNC_ENTER("CVIMPSTDisableServiceCmd:: CommandFinished");
+ CleanupStack::PopAndDestroy();
+ CHAT_DP_FUNC_DONE("CVIMPSTDisableServiceCmd::ExecuteLD");
+ }
+
+
+// --------------------------------------------------------------------------
+// CVIMPSTCmdLogout::AddObserver
+// --------------------------------------------------------------------------
+//
+void CVIMPSTCmdLogout::AddObserver( MVIMPSTCmdObserver& aObserver )
+ {
+ // store the observer to notify the command completion
+ iObserver = &aObserver;
+ }
+
+
+// --------------------------------------------------------------------------
+// CVIMPSTCmdLogout::CommandId
+// --------------------------------------------------------------------------
+//
+TInt CVIMPSTCmdLogout::CommandId() const
+ {
+ return iCommandId;
+ }
+
+// --------------------------------------------------------------------------
+// CVIMPSTCmdLogout::Result
+// --------------------------------------------------------------------------
+//
+TInt CVIMPSTCmdLogout::Result() const
+ {
+ //return valid data regd the command operation
+ return 0;
+ }
+
+// End of File