serviceproviders/sapi_calendar/tsrc/dev/tcalendarprovidertest/tcalendardeleteiter3/inc/deleteguid.h
author Pat Downey <patrick.downey@nokia.com>
Fri, 03 Jul 2009 15:51:24 +0100
changeset 5 989d2f495d90
child 23 50974a8b132e
permissions -rw-r--r--
Revision: 200923 Kit: 200925

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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:  
*
*/

#include <e32base.h>
#include <BADESCA.H>
#include<LiwCommon.h>
#include <f32file.h>

class CLiwServiceHandler;

/**
 * Callback class for asynchronous SAPI message header
*/	
class CCalCallbackGuid : public MLiwNotifyCallback
	{
	public:
		
		static CCalCallbackGuid* NewL(CActiveSchedulerWait* aWaitSchedular, MLiwInterface* aInterface, TInt& aResult, TInt& aFlag);
		
		virtual ~CCalCallbackGuid(){}
		
		TInt HandleNotifyL(TInt aCmdId,
        TInt aEventId,
        CLiwGenericParamList& aEventParamList,
        const CLiwGenericParamList& aInParamList);
		
	private:
	
 		CCalCallbackGuid(CActiveSchedulerWait* aWaitSchedular, MLiwInterface* aInterface, TInt& aResult, TInt& aFlag):iWaitSchedular(aWaitSchedular), iInterface(aInterface), iResult(aResult), iOption(aFlag){ }

		CActiveSchedulerWait* 	iWaitSchedular;
		MLiwInterface* 			iInterface ;
		TInt& iResult;	
		TInt& iOption;	
	};


class CTestAsyncGuid : public CActive
{
public:
	static CTestAsyncGuid* NewL();
	~CTestAsyncGuid();
	int Start(int, TBool);
	void CancelNotification();
	
	
private:
	void ConstructL();
	CTestAsyncGuid();
	
	virtual void DoCancel();
	virtual void RunL();
	
	
	void TestFunc();

	
	
private:	
	CLiwServiceHandler* 	iServiceHandler;
	CActiveSchedulerWait* 	iWaitSchedular;
	TInt 					iResult;
	MLiwInterface* 			interface ;	
	CCalCallbackGuid*			iCallback;
	TInt iError;
	TInt iFlag;
	TBool iAsync;
};