uiservicetab/vimpstcmdprocess/src/cvimpstcmdcca.cpp
changeset 15 81eeb8c83ce5
parent 0 5e5d6b214f4f
--- a/uiservicetab/vimpstcmdprocess/src/cvimpstcmdcca.cpp	Tue Feb 02 10:12:18 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,178 +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:  implementation for CVIMPSTCmdCCA
-*
-*/
-
-
-// INCLUDE FILES
-
-
-#include "vimpstcmd.hrh"
-#include "mvimpstcmdobserver.h"
-#include "cvimpstcmdcca.h"
-#include "mvimpstengine.h"
-#include "mvimpstprocessarray.h"
-
-#include <MVPbkContactLink.h> 
-
-#include <e32def.h>
-#include <e32property.h>
-#include <imconnectionproviderconsts.h>
-#include "tvimpstconsts.h"
-#include "vimpstdetailsviewpluginuids.hrh"
-
-// Constants
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdCCA::CVIMPSTCmdCCA
-// --------------------------------------------------------------------------
-//
-CVIMPSTCmdCCA::CVIMPSTCmdCCA( 
-        const TInt aCommandId,
-            TInt& aIndex, 
-            MCCAConnection* aConnection,
-            MVIMPSTProcessArray& mArrayProcess,
-            MVIMPSTEngine& aEngine ) :            
-    iCommandId( aCommandId ),
-    iIndex(aIndex),
-    iConnection(aConnection),
-    iArrayProcess(mArrayProcess),
-    iEngine( aEngine)
-    {
-    }
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdCCA::~CVIMPSTCmdCCA
-// --------------------------------------------------------------------------
-//
-CVIMPSTCmdCCA::~CVIMPSTCmdCCA()
-    {   
-    }
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdCCA::NewL
-// --------------------------------------------------------------------------
-//
-CVIMPSTCmdCCA* CVIMPSTCmdCCA::NewL( 
-        const TInt aCommandId,TInt& aIndex,
-        MCCAConnection* aConnection,
-        	MVIMPSTProcessArray& aArrayProcess,
-        MVIMPSTEngine& aEngine )
-    {
-    CVIMPSTCmdCCA* self = new (ELeave ) CVIMPSTCmdCCA( aCommandId,aIndex,aConnection,aArrayProcess, aEngine );
-    self->ConstructL(); //use contsurctL if necessary
-    return self;
-    }
-// --------------------------------------------------------------------------
-// CVIMPSTCmdCCA::ConstructL
-// --------------------------------------------------------------------------
-//
-void CVIMPSTCmdCCA::ConstructL()
-    {
-    RProperty::Define(KMeCoPropertyUid, KMeCoXSPDetailsServiceIdKey, RProperty::EInt,
-                          ECapabilityReadUserData ,ECapabilityWriteUserData); 
- 
-    }
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdCCA::ExecuteLD
-// --------------------------------------------------------------------------
-//
-void CVIMPSTCmdCCA::ExecuteLD()
-    {
-   	// CHAT_DP_FUNC_ENTER("CVIMPSTSettingsCmd::ExecuteLD");
-    //push to the cleanupstack
-    CleanupStack::PushL( this );    
-  	
-	LaunchCcaL();
-    if(iObserver)
-	    {
-	    iObserver->CommandFinishedL(*this);
-	    }
-	// CHAT_DP_FUNC_ENTER("CVIMPSTSettingsCmd:: CommandFinished");	
-	CleanupStack::PopAndDestroy();	
-	// CHAT_DP_FUNC_DONE("CVIMPSTSettingsCmd::ExecuteLD");	
-    }
-
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdCCA::AddObserver
-// --------------------------------------------------------------------------
-//
-void CVIMPSTCmdCCA::AddObserver( MVIMPSTCmdObserver& aObserver )
-    {
-    // store the observer to notify the command completion
-    iObserver = &aObserver;
-    }
-
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdCCA::CommandId
-// --------------------------------------------------------------------------
-//
-TInt CVIMPSTCmdCCA::CommandId() const
-	{
-	return iCommandId;	
-	}
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdCCA::Result
-// --------------------------------------------------------------------------
-//
-TInt CVIMPSTCmdCCA::Result() const
-	{
-	//return valid data regd the command operation
-	return KErrNone;
-	}
-
-// --------------------------------------------------------------------------
-// CVIMPSTCmdCCA::LaunchCcaL
-// --------------------------------------------------------------------------
-//
-void CVIMPSTCmdCCA::LaunchCcaL()
-	{   
-
-	if ( iParameter )
-		{
-		iParameter->Close();
-		iParameter = NULL;
-		}
-
-	// The lifetime of this cmd object is too short to hold
-	// iParameterRef, caller of this must own it    
-	iParameter = TCCAFactory::NewParameterL();
-	iParameter->SetConnectionFlag(MCCAParameter::ENormal);
-	iParameter->SetContactDataFlag(MCCAParameter::EContactLink);
-	
-	TUid uid( TUid::Null() );
-	uid.iUid = KVIMPSTDetailsViewPluginImplmentationUid + iEngine.ServiceId(); // service details view implementation uid
-	iParameter->SetLaunchedViewUid( uid );
-	
-	RProperty::Set(KMeCoPropertyUid, KMeCoXSPDetailsServiceIdKey, iEngine.ServiceId() ); 
-	 
-	MVPbkContactLink* link = iArrayProcess.ContactLink( iIndex )->CloneLC();  
-	if (link)
-		{
-		HBufC8* link8 = link->PackLC(); 
-		HBufC16* link16 = HBufC16::NewLC( link8->Length() );
-		link16->Des().Copy( *link8);
-		iParameter->SetContactDataL(link16->Des());
-		CleanupStack::PopAndDestroy(3); 
-		}
-	// Sync call
-	iConnection->LaunchApplicationL(*iParameter);            
-	          
-	}
-// End of File