calendarui/controller/inc/calenasynccallback.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 15 Jul 2010 18:37:27 +0300
branchRCL_3
changeset 59 aba12c885d83
parent 0 f979ecb2b13e
child 18 c198609911f9
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* 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 "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:   Calendar's async callback
*
*/



#ifndef CALENASYNCCALLBACK_H
#define CALENASYNCCALLBACK_H

// INCLUDES
#include <e32base.h>
#include "calencontroller.h"

// CLASS DEFINITIONS
/**
 * Calendar async Callback
 */	
NONSHARABLE_CLASS(CCalenAsyncCallBack) : public CAsyncCallBack
	{
	public: 
		static CCalenAsyncCallBack* NewL(TCallBack& aCallBack, CActive::TPriority aPriority,
                                             CCalenController& aController);
		void BaseConstructL();

		virtual ~CCalenAsyncCallBack();
	
	private:    
      CCalenAsyncCallBack(TCallBack& aCallBack, CActive::TPriority  aPriority,
                          CCalenController& aController);
      
	public: // Function from base class
	
		/**
		 * Handle Completion 
		 */
		void RunL();
		
        /**
        * Return reference to TRequestStatus member.
        */
        TRequestStatus& Status();
		
		//void Set(TCallBack& aCallBack);
	private:
		CCalenController& iController;
	};



#endif //CALENASYNCCALLBACK_H