williamr@2: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // Started by DWW, March 1997 williamr@2: // BAFL specialization of CActiveScheduler williamr@2: // williamr@2: // williamr@2: williamr@2: #if !defined(__BASCHED_H__) williamr@2: #define __BASCHED_H__ williamr@2: williamr@2: #if !defined(__e32std_h__) williamr@2: #include williamr@2: #endif williamr@2: williamr@2: #if !defined(__e32base_h__) williamr@2: #include williamr@2: #endif williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KErrExtended=(-1000); williamr@2: const TInt KErrExtendedWithText=(-1001); williamr@2: const TInt KLeaveWithoutAlert=(-1002); williamr@2: const TInt KLeaveExit=(-1003); williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: struct SExtendedError williamr@2: { williamr@2: TUid iComponent; williamr@2: TInt iErrorNumber; williamr@2: TBool iInformation; williamr@2: }; williamr@2: williamr@2: class CBaErrorHandler; williamr@2: williamr@2: class CBaActiveScheduler : public CActiveScheduler williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: { williamr@2: public: williamr@2: IMPORT_C static void LeaveNoAlert(); williamr@2: public: // Internal to Symbian williamr@2: IMPORT_C static void Exit(); williamr@2: IMPORT_C static void LeaveForAlert(TUid aComponent,TInt aErrorNumber); williamr@2: IMPORT_C static void LeaveForInfoPrint(TUid aComponent,TInt aErrorNumber); williamr@2: IMPORT_C static void LeaveForErrorHandler(const CBaErrorHandler *aHandler); williamr@2: IMPORT_C static const SExtendedError& ExtendedError(); williamr@2: IMPORT_C static void DisplayExtendedError(TUid aComponent,TInt aErrorNumber); williamr@2: IMPORT_C virtual void DisplayError(TInt aError) const; williamr@2: public:// from CActiveScheduler williamr@2: IMPORT_C void Error(TInt aError) const; williamr@2: private: williamr@2: // reserved virtual function space williamr@2: IMPORT_C virtual void Reserved_1(); williamr@2: IMPORT_C virtual void Reserved_2(); williamr@2: // internal williamr@2: static void ExtendedLeave(TUid aComponent,TInt aErrorNumber,TBool aLeaveForInfoPrint); williamr@2: protected: williamr@2: SExtendedError iExtendedError; williamr@2: }; williamr@2: williamr@2: #endif