calendarui/controller/inc/calenasynccallback.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:32:31 +0100
branchRCL_3
changeset 66 bd7edf625bdd
parent 65 12af337248b1
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* 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