calendarui/controller/inc/calenasynccallback.h
changeset 0 f979ecb2b13e
child 18 c198609911f9
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Calendar's async callback
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CALENASYNCCALLBACK_H
       
    21 #define CALENASYNCCALLBACK_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "calencontroller.h"
       
    26 
       
    27 // CLASS DEFINITIONS
       
    28 /**
       
    29  * Calendar async Callback
       
    30  */	
       
    31 NONSHARABLE_CLASS(CCalenAsyncCallBack) : public CAsyncCallBack
       
    32 	{
       
    33 	public: 
       
    34 		static CCalenAsyncCallBack* NewL(TCallBack& aCallBack, CActive::TPriority aPriority,
       
    35                                              CCalenController& aController);
       
    36 		void BaseConstructL();
       
    37 
       
    38 		virtual ~CCalenAsyncCallBack();
       
    39 	
       
    40 	private:    
       
    41       CCalenAsyncCallBack(TCallBack& aCallBack, CActive::TPriority  aPriority,
       
    42                           CCalenController& aController);
       
    43       
       
    44 	public: // Function from base class
       
    45 	
       
    46 		/**
       
    47 		 * Handle Completion 
       
    48 		 */
       
    49 		void RunL();
       
    50 		
       
    51         /**
       
    52         * Return reference to TRequestStatus member.
       
    53         */
       
    54         TRequestStatus& Status();
       
    55 		
       
    56 		//void Set(TCallBack& aCallBack);
       
    57 	private:
       
    58 		CCalenController& iController;
       
    59 	};
       
    60 
       
    61 
       
    62 
       
    63 #endif //CALENASYNCCALLBACK_H