lafagnosticuifoundation/cone/inc/coescheduler.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Header containing the CoeScheduler.
       
    15 
       
    16 #ifndef COESCHEDULER_H 
       
    17 #define COESCHEDULER_H 
       
    18 
       
    19 /** Implements the active scheduler presupposed by the control environment.
       
    20 
       
    21 @publishedPartner
       
    22 @deprecated
       
    23 */
       
    24 class CCoeScheduler : public CBaActiveScheduler
       
    25 	{
       
    26 public:
       
    27 	IMPORT_C CCoeScheduler(CCoeEnv* aCoeEnv);
       
    28 	IMPORT_C virtual void WaitForAnyRequest();
       
    29 	IMPORT_C virtual void DisplayError(TInt aError) const;
       
    30 	/** Gets the control environment.
       
    31 	
       
    32 	@return A pointer to the control environment. */
       
    33 	inline CCoeEnv* CoeEnv() {return iCoeEnv;}
       
    34 	TBool Flush() const; // not to be called from outside CONE
       
    35 	void SetFlush(TBool aFlush); // not to be called from outside CONE
       
    36 private:
       
    37 	// from CBaActiveScheduler
       
    38 	IMPORT_C virtual void Reserved_1();
       
    39 	IMPORT_C virtual void Reserved_2();
       
    40 private:
       
    41 	CCoeEnv* iCoeEnv;
       
    42 	TBool iFlush;
       
    43 	};
       
    44 
       
    45 
       
    46 
       
    47 #endif /* COESCHEDULER_H */