|
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 // Started by DWW, March 1997 |
|
15 // BAFL specialization of CActiveScheduler |
|
16 // |
|
17 // |
|
18 |
|
19 #if !defined(__BASCHED_H__) |
|
20 #define __BASCHED_H__ |
|
21 |
|
22 #if !defined(__e32std_h__) |
|
23 #include <e32std.h> |
|
24 #endif |
|
25 |
|
26 #if !defined(__e32base_h__) |
|
27 #include <e32base.h> |
|
28 #endif |
|
29 |
|
30 /** |
|
31 @publishedAll |
|
32 @released |
|
33 */ |
|
34 const TInt KErrExtended=(-1000); |
|
35 const TInt KErrExtendedWithText=(-1001); |
|
36 const TInt KLeaveWithoutAlert=(-1002); |
|
37 const TInt KLeaveExit=(-1003); |
|
38 |
|
39 /** |
|
40 @publishedAll |
|
41 */ |
|
42 struct SExtendedError |
|
43 { |
|
44 TUid iComponent; |
|
45 TInt iErrorNumber; |
|
46 TBool iInformation; |
|
47 }; |
|
48 |
|
49 class CBaErrorHandler; |
|
50 |
|
51 class CBaActiveScheduler : public CActiveScheduler |
|
52 /** |
|
53 @publishedAll |
|
54 @released |
|
55 */ |
|
56 { |
|
57 public: |
|
58 IMPORT_C static void LeaveNoAlert(); |
|
59 public: // Internal to Symbian |
|
60 IMPORT_C CBaActiveScheduler(); |
|
61 IMPORT_C ~CBaActiveScheduler(); |
|
62 IMPORT_C static void Exit(); |
|
63 IMPORT_C static void LeaveForAlert(TUid aComponent,TInt aErrorNumber); |
|
64 IMPORT_C static void LeaveForInfoPrint(TUid aComponent,TInt aErrorNumber); |
|
65 IMPORT_C static void LeaveForErrorHandler(const CBaErrorHandler *aHandler); |
|
66 IMPORT_C static const SExtendedError& ExtendedError(); |
|
67 IMPORT_C static void DisplayExtendedError(TUid aComponent,TInt aErrorNumber); |
|
68 IMPORT_C virtual void DisplayError(TInt aError) const; |
|
69 public:// from CActiveScheduler |
|
70 IMPORT_C void Error(TInt aError) const; |
|
71 private: |
|
72 // reserved virtual function space |
|
73 IMPORT_C virtual void Reserved_1(); |
|
74 IMPORT_C virtual void Reserved_2(); |
|
75 // internal |
|
76 static void ExtendedLeave(TUid aComponent,TInt aErrorNumber,TBool aLeaveForInfoPrint); |
|
77 protected: |
|
78 SExtendedError iExtendedError; |
|
79 }; |
|
80 |
|
81 #endif |