author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
parent 2 | 2fe1408b6811 |
permissions | -rw-r--r-- |
williamr@2 | 1 |
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@2 | 2 |
// All rights reserved. |
williamr@2 | 3 |
// This component and the accompanying materials are made available |
williamr@4 | 4 |
// under the terms of "Eclipse Public License v1.0" |
williamr@2 | 5 |
// which accompanies this distribution, and is available |
williamr@4 | 6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@2 | 7 |
// |
williamr@2 | 8 |
// Initial Contributors: |
williamr@2 | 9 |
// Nokia Corporation - initial contribution. |
williamr@2 | 10 |
// |
williamr@2 | 11 |
// Contributors: |
williamr@2 | 12 |
// |
williamr@2 | 13 |
// Description: |
williamr@2 | 14 |
// Started by DWW, March 1997 |
williamr@2 | 15 |
// BAFL specialization of CActiveScheduler |
williamr@2 | 16 |
// |
williamr@2 | 17 |
// |
williamr@2 | 18 |
|
williamr@2 | 19 |
#if !defined(__BASCHED_H__) |
williamr@2 | 20 |
#define __BASCHED_H__ |
williamr@2 | 21 |
|
williamr@2 | 22 |
#if !defined(__e32std_h__) |
williamr@2 | 23 |
#include <e32std.h> |
williamr@2 | 24 |
#endif |
williamr@2 | 25 |
|
williamr@2 | 26 |
#if !defined(__e32base_h__) |
williamr@2 | 27 |
#include <e32base.h> |
williamr@2 | 28 |
#endif |
williamr@2 | 29 |
|
williamr@2 | 30 |
/** |
williamr@2 | 31 |
@publishedAll |
williamr@2 | 32 |
@released |
williamr@2 | 33 |
*/ |
williamr@2 | 34 |
const TInt KErrExtended=(-1000); |
williamr@2 | 35 |
const TInt KErrExtendedWithText=(-1001); |
williamr@2 | 36 |
const TInt KLeaveWithoutAlert=(-1002); |
williamr@2 | 37 |
const TInt KLeaveExit=(-1003); |
williamr@2 | 38 |
|
williamr@2 | 39 |
/** |
williamr@4 | 40 |
@publishedAll |
williamr@2 | 41 |
*/ |
williamr@2 | 42 |
struct SExtendedError |
williamr@2 | 43 |
{ |
williamr@2 | 44 |
TUid iComponent; |
williamr@2 | 45 |
TInt iErrorNumber; |
williamr@2 | 46 |
TBool iInformation; |
williamr@2 | 47 |
}; |
williamr@2 | 48 |
|
williamr@2 | 49 |
class CBaErrorHandler; |
williamr@2 | 50 |
|
williamr@2 | 51 |
class CBaActiveScheduler : public CActiveScheduler |
williamr@2 | 52 |
/** |
williamr@2 | 53 |
@publishedAll |
williamr@2 | 54 |
@released |
williamr@2 | 55 |
*/ |
williamr@2 | 56 |
{ |
williamr@2 | 57 |
public: |
williamr@2 | 58 |
IMPORT_C static void LeaveNoAlert(); |
williamr@2 | 59 |
public: // Internal to Symbian |
williamr@4 | 60 |
IMPORT_C CBaActiveScheduler(); |
williamr@4 | 61 |
IMPORT_C ~CBaActiveScheduler(); |
williamr@2 | 62 |
IMPORT_C static void Exit(); |
williamr@2 | 63 |
IMPORT_C static void LeaveForAlert(TUid aComponent,TInt aErrorNumber); |
williamr@2 | 64 |
IMPORT_C static void LeaveForInfoPrint(TUid aComponent,TInt aErrorNumber); |
williamr@2 | 65 |
IMPORT_C static void LeaveForErrorHandler(const CBaErrorHandler *aHandler); |
williamr@2 | 66 |
IMPORT_C static const SExtendedError& ExtendedError(); |
williamr@2 | 67 |
IMPORT_C static void DisplayExtendedError(TUid aComponent,TInt aErrorNumber); |
williamr@2 | 68 |
IMPORT_C virtual void DisplayError(TInt aError) const; |
williamr@2 | 69 |
public:// from CActiveScheduler |
williamr@2 | 70 |
IMPORT_C void Error(TInt aError) const; |
williamr@2 | 71 |
private: |
williamr@2 | 72 |
// reserved virtual function space |
williamr@2 | 73 |
IMPORT_C virtual void Reserved_1(); |
williamr@2 | 74 |
IMPORT_C virtual void Reserved_2(); |
williamr@2 | 75 |
// internal |
williamr@2 | 76 |
static void ExtendedLeave(TUid aComponent,TInt aErrorNumber,TBool aLeaveForInfoPrint); |
williamr@2 | 77 |
protected: |
williamr@2 | 78 |
SExtendedError iExtendedError; |
williamr@2 | 79 |
}; |
williamr@2 | 80 |
|
williamr@2 | 81 |
#endif |