|
1 // amastartpaniccodes.h |
|
2 |
|
3 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 // All rights reserved. |
|
5 // This component and the accompanying materials are made available |
|
6 // under the terms of "Eclipse Public License v1.0" |
|
7 // which accompanies this distribution, and is available |
|
8 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 // |
|
10 // Initial Contributors: |
|
11 // Nokia Corporation - initial contribution. |
|
12 // |
|
13 // Contributors: |
|
14 // |
|
15 // Description: |
|
16 // This header file defines all the possible panic categories and codes within the After Market Application Starter component. |
|
17 // When adding panic codes to the After Market Application Starter component and related modules, |
|
18 // identify the module concerned and create a category if necessary. |
|
19 // The category should contain the name of the class where the panic is occuring. |
|
20 // Try to reuse an existing panic code otherwise add the new panic code |
|
21 // to the end of the enum list. |
|
22 // |
|
23 // |
|
24 |
|
25 #if !defined (__AMASTARTPANICCODES_H__) |
|
26 #define __AMASTARTPANICCODES_H__ |
|
27 |
|
28 #include <e32std.h> |
|
29 |
|
30 /** |
|
31 Defines all the modules (categories) within After Market Application Starter which can throw panics |
|
32 Strings must not be longer than 16 characters or they will be truncated by User::Panic() |
|
33 @internalComponent |
|
34 @released |
|
35 */ |
|
36 _LIT(KPanicDsc, "CDscStore"); |
|
37 |
|
38 /** Defines all possible panic codes within After Market Application Starter |
|
39 @internalComponent |
|
40 @released |
|
41 */ |
|
42 enum TAmaStartPanicCodes |
|
43 { |
|
44 EIdCannotChange = 25 // To maintain the compability for sysstart for v9.5 |
|
45 }; |
|
46 |
|
47 /** Global panic function for use within After Market Application Starter |
|
48 @internalComponent |
|
49 @released |
|
50 */ |
|
51 extern void PanicNow(const TDesC &aCategory, TInt aReason); |
|
52 |
|
53 #endif // __AMASTARTPANICCODES_H__ |