|
1 // shmapaniccodes.h |
|
2 |
|
3 // Copyright (c) 2007-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 System Health Monitor component. |
|
17 // When adding panic codes to the System Health Monitor 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 (__SHMAPANICCODES_H__) |
|
26 #define __SHMAPANICCODES_H__ |
|
27 |
|
28 #include <e32std.h> |
|
29 |
|
30 /** |
|
31 Defines all the modules (categories) within System Health Monitor 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(KPanicRestartSys, "RestartSys"); |
|
37 _LIT(KPanicStartSafe, "CStartSafe"); |
|
38 _LIT(KPanicStartupProperties, "CStartupProperties"); |
|
39 _LIT(KPanicMonitor, "CMonitor"); |
|
40 |
|
41 /** Defines all possible panic codes within System Health Monitor component |
|
42 @internalComponent |
|
43 @released |
|
44 */ |
|
45 enum TShmaPanicCodes |
|
46 { |
|
47 ERestartNotSupportedOnEmulator = 1, |
|
48 EInvalidCommandType = 2, |
|
49 EInvalidStartMethod = 3, |
|
50 EInvalidTimeout = 5, // To maintain the compability for sysstart tests for v9.5 |
|
51 EInvalidNoOfRetries = 6, // To maintain the compability for sysstart tests for v9.5 |
|
52 EInvalidRecoveryMethod = 7, |
|
53 ERestartSystemCallFailed = 8, |
|
54 ETimerValueInvalid = 9, |
|
55 ERestartSystemCallWithMode = 10 |
|
56 #ifdef SYMBIAN_SSM_GRACEFUL_SHUTDOWN |
|
57 , |
|
58 ERestartSysLibNotPresent = 11 |
|
59 #endif |
|
60 }; |
|
61 |
|
62 /** Global panic function for use within System Health Monitor component |
|
63 @internalComponent |
|
64 @released |
|
65 */ |
|
66 extern void PanicNow(const TDesC &aCategory, TInt aReason); |
|
67 |
|
68 #endif // __SHMAPANICCODES_H__ |