|
1 // Copyright (c) 2008-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 // |
|
15 |
|
16 #ifndef __CLAYERPANIC_H__ |
|
17 #define __CLAYERPANIC_H__ |
|
18 |
|
19 /** |
|
20 * Defines the panic category for the SSM compatibility layer |
|
21 * |
|
22 * @internalComponent |
|
23 */ |
|
24 _LIT(KPanicCLayer, "SsmClayer"); |
|
25 |
|
26 /** |
|
27 * Defines all possible panic codes within SSM compatibility layer |
|
28 * |
|
29 * @internalComponent |
|
30 */ |
|
31 enum TClayerPanicCodes |
|
32 { |
|
33 /** |
|
34 * Inidicates that there is an outstanding request when there was not one expected. |
|
35 */ |
|
36 EClayerOutstandingRequest, |
|
37 /** |
|
38 * Indicates that an attempt was made to complete a null request. |
|
39 */ |
|
40 ECLayerCompletingNull, |
|
41 /** |
|
42 * Indicates that the response for a command was unexpected. |
|
43 */ |
|
44 ECLayerUnexpectedCommandResponse, |
|
45 /** |
|
46 * Indicates that an invalid sub-state was passed to the compatibility layer. |
|
47 */ |
|
48 ECLayerInvalidSubState, |
|
49 /** |
|
50 * Indicates that the dispatch queue tried to grow past the maximum length. |
|
51 */ |
|
52 ECLayerMaximumQueueSize, |
|
53 /** |
|
54 * Inidicates that an unexpect command response was received. |
|
55 */ |
|
56 ECLayerUnexpectedResponse, |
|
57 /** |
|
58 * Inidicates that an unknown command response was received. |
|
59 */ |
|
60 ECLayerUnknownCommandResponse, |
|
61 /** |
|
62 * Indicates that an attempt was made to cancel a command which had not been dispatched. |
|
63 */ |
|
64 ECLayerInCorrectDispatchedCancel, |
|
65 /** |
|
66 * Indicates that an attempt has occured to read the state event buffer, but it is null. |
|
67 */ |
|
68 ECLayerNullStateEventBuffer, |
|
69 /** |
|
70 * Indicates that an attempt has occured to read the SIM event buffer, but it is null. |
|
71 */ |
|
72 ECLayerNullSimEventBuffer, |
|
73 /** |
|
74 * Indicates that the note type is invalid. |
|
75 */ |
|
76 ECLayerInvalidNoteType, |
|
77 /** |
|
78 * Indicates that the resource reader is NULL. |
|
79 */ |
|
80 ECLayerInvalidResourceReader, |
|
81 /** |
|
82 * Indicates that command list has a command with condition info when it is not expected to have any. |
|
83 */ |
|
84 ECLayerConditionalInfoNotImplemented |
|
85 }; |
|
86 |
|
87 #define CLAYER_PANIC(Category) User::Panic(KPanicCLayer, Category) |
|
88 |
|
89 #endif // __CLAYERPANIC_H__ |