sapi_calendar/inc/calendarcallback.h
changeset 0 14df0fbfcc4e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sapi_calendar/inc/calendarcallback.h	Mon Mar 30 12:51:10 2009 +0300
@@ -0,0 +1,160 @@
+/*
+* Copyright (c) 2007 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:  Defination of class CCalendarInterface
+*
+*/
+
+
+#ifndef __CALENDARCALLBACK_H
+#define __CALENDARCALLBACK_H
+
+#include <LiwCommon.h>
+#include <LiwServiceIfBase.h>
+#include <LiwBufferExtension.h>
+
+#include <calchangecallback.h>
+
+#include "calendarheader.h"
+/**
+* Implemenation of abstract MCalCallbackBase interface for Buffer output
+* Used in Async Export operation
+*
+* @see MCalCallbackBase
+*
+*/
+class CCalCallbackBaseBuffer: public CBase, public MCalCallbackBase //USED IN CASE OF EXPORT ASYNC
+	{
+	public:
+
+	  	/**
+	     * Two-phase Constructor
+	     * @return   CMsgCallbackBase* 
+	    */		
+		static CCalCallbackBaseBuffer* NewL( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId );
+
+	  	/**
+	     * Gives the result of asynchronous SAPI
+	     * @param aErrCode errcode
+	     * @param aResult Result
+	     * @return   void
+	    */		
+		void NotifyResultL(TInt aErrCode, TAny* aResult);
+		
+	private:
+
+	  	/**
+	     * Constructor
+	    */		
+		CCalCallbackBaseBuffer( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId );
+
+	};
+	
+/**
+* Implemenation of abstract MCalCallbackBase interface for TUIDSet output
+* Used in Async Import operation
+*
+* @see MCalCallbackBase
+*
+*/
+class CCalCallbackBaseUIDSet: public CBase, public MCalCallbackBase 
+	{
+	public:
+
+	  	/**
+	     * Two-phase Constructor
+	     * @return   CMsgCallbackBase* 
+	    */		
+		static CCalCallbackBaseUIDSet* NewL( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId );
+
+	  	/**
+	     * Gives the result of asynchronous SAPI
+	     * @param aErrCode errcode
+	     * @param aResult Result
+	     * @return   void
+	    */		
+		void NotifyResultL(TInt aErrCode, TAny* aResult);
+		
+	private:
+
+	  	/**
+	     * Constructor
+	    */		
+		CCalCallbackBaseUIDSet( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId );
+	};
+
+/**
+* Implemenation of abstract MCalCallbackBase interface for Error code as output
+* Used in Async Delete operation
+*
+* @see MCalCallbackBase
+*
+*/
+class CCalCallbackInt: public CBase, public MCalCallbackBase 
+	{
+	public:
+
+	  	/**
+	     * Two-phase Constructor
+	     * @return   CMsgCallbackBase* 
+	    */		
+		static CCalCallbackInt* NewL( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId );
+
+	  	/**
+	     * Gives the result of asynchronous SAPI
+	     * @param aErrCode errcode
+	     * @param aResult Result
+	     * @return   void
+	    */		
+		void NotifyResultL(TInt aErrCode, TAny* aResult);
+		
+	private:
+
+	  	/**
+	     * Constructor
+	    */		
+		CCalCallbackInt( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId );
+	};
+
+/**
+* Implemenation of abstract MCalCallbackBase interface for Change Notifications
+*
+* @see MCalCallbackBase
+*
+*/
+class CCalCallbackChangeNotify : public CBase, public MCalCallbackBase 
+	{
+	public:
+
+	  	/**
+	     * Two-phase Constructor
+	     * @return   CMsgCallbackBase* 
+	    */		
+		static CCalCallbackChangeNotify* NewL( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId );
+
+	  	/**
+	     * Gives the result of asynchronous SAPI
+	     * @param aErrCode errcode
+	     * @param aResult Result
+	     * @return   void
+	    */		
+		void NotifyResultL(TInt aErrCode, TAny* aResult);
+		
+	private:
+
+	  	/**
+	     * Constructor
+	    */		
+		CCalCallbackChangeNotify( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId );
+	};
+#endif __CALENDARCALLBACK_H
\ No newline at end of file