uiservicetab/vimpstcmdprocess/src/cvimpstcmdchangeownavtar.cpp
branchRCL_3
changeset 28 3104fc151679
parent 27 2b7283837edb
child 29 9a48e301e94b
--- a/uiservicetab/vimpstcmdprocess/src/cvimpstcmdchangeownavtar.cpp	Thu Aug 19 09:41:53 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,138 +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:  command process for set own avtar
-*
-*/
-
-
-// INCLUDE FILES
-#include "cvimpstcmdchangeownavtar.h"
-
-#include "vimpstcmd.hrh"
-#include "mvimpstcmdobserver.h"
-
-#include "uiservicetabtracer.h"
-
-#include <e32def.h>
-#include "mvimpstengine.h"
-#include "mvimpstenginepresencesubservice.h"
-#include "mvimpstenginesubservice.h"
-
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdChangeOwnAvtar::CVIMPSTCmdChangeOwnAvtar
-// --------------------------------------------------------------------------
-//
-CVIMPSTCmdChangeOwnAvtar::CVIMPSTCmdChangeOwnAvtar( 
-        const TInt aCommandId ,const TAvatarData& aData,
-        MVIMPSTEngine& aEngine) :            
-            iCommandId( aCommandId ),
-            iData(aData),
-            iEngine(aEngine)
-    {
-    }
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdChangeOwnAvtar::~CVIMPSTCmdChangeOwnAvtar
-// --------------------------------------------------------------------------
-//
-CVIMPSTCmdChangeOwnAvtar::~CVIMPSTCmdChangeOwnAvtar()
-    {    
-    
-    }
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdChangeOwnAvtar::NewL
-// --------------------------------------------------------------------------
-//
-CVIMPSTCmdChangeOwnAvtar* CVIMPSTCmdChangeOwnAvtar::NewL( 
-        const TInt aCommandId,const TAvatarData& aData,
-        MVIMPSTEngine& aEngine)
-    {
-    CVIMPSTCmdChangeOwnAvtar* self = new (ELeave ) CVIMPSTCmdChangeOwnAvtar( aCommandId ,aData, aEngine);
-    self->ConstructL(); //use contsurctL if necessary
-    return self;
-    }
-// --------------------------------------------------------------------------
-// CVIMPSTCmdChangeOwnAvtar::ConstructL
-// --------------------------------------------------------------------------
-//
-void CVIMPSTCmdChangeOwnAvtar::ConstructL()
-    {    
-    iError = KErrNone;
-    }
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdChangeOwnAvtar::ExecuteLD
-// --------------------------------------------------------------------------
-//
-void CVIMPSTCmdChangeOwnAvtar::ExecuteLD()
-    {
-    TRACER_AUTO;
-     //push to the cleanupstack
-    CleanupStack::PushL( this );   
-	
-	//Get Presence SubService  			
-   	MVIMPSTEngineSubService* subService =    	   
-   	   			(iEngine.SubService(TVIMPSTEnums::EPresence));
-    if(subService)
-        {
-        MVIMPSTEnginePresenceSubService& presence = 
-        		MVIMPSTEnginePresenceSubService::Cast (*subService);
-        presence.PublishOwnPresenceL(iData.iStatus, iData.iStatusText, iData.iFileName , iData.iMimeType, ETrue );
-        }      
-  
-    
-
-    if(iObserver)
-	    {
-	    iObserver->CommandFinishedL(*this);
-	    }
-		
-	CleanupStack::PopAndDestroy();	
-	
-    }
-
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdChangeOwnAvtar::AddObserver
-// --------------------------------------------------------------------------
-//
-void CVIMPSTCmdChangeOwnAvtar::AddObserver( MVIMPSTCmdObserver& aObserver )
-    {
-    // store the observer to notify the command completion
-    iObserver = &aObserver;
-    }
-
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdChangeOwnAvtar::CommandId
-// --------------------------------------------------------------------------
-//
-TInt CVIMPSTCmdChangeOwnAvtar::CommandId() const
-	{
-	return iCommandId;	
-	}
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdChangeOwnAvtar::Result
-// --------------------------------------------------------------------------
-//
-TInt CVIMPSTCmdChangeOwnAvtar::Result() const
-	{
-	//return valid data regd the command operation
-	return iError;
-	}
-
-// End of File