|
1 /* |
|
2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Declares the CbsServerPanic() function which panics the server. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CBSSERVERPANIC_H |
|
20 #define CBSSERVERPANIC_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // DATA TYPES |
|
26 |
|
27 /** |
|
28 * Different reasons for panics in CbsServer. |
|
29 * |
|
30 * Enumeration defined manually because of convience |
|
31 * => Release build panic dialog shows only the panic |
|
32 * number. |
|
33 */ |
|
34 enum TCbsServerPanic |
|
35 { |
|
36 ECbsSchedulerCreationFailed = 0, |
|
37 ECbsServerCreationFailed = 1, |
|
38 ECbsCollectorArrayEmpty = 2, |
|
39 ECbsServerStartFailed = 3, |
|
40 ECbsMsgRepUnprepared = 4, |
|
41 ECbsInvalidMessage = 5, |
|
42 ECbsDatabaseNull = 6, |
|
43 ECbsReceiverNull = 7, |
|
44 ECbsCbmiListNull = 8, |
|
45 ECbsCbmiListNotEmpty = 9, |
|
46 ECbsCbmiListMismatch = 10, |
|
47 ECbsErrorFromNonClientObject = 11, |
|
48 ECbsSettingsInitFailed = 12, |
|
49 ECbsObserverNull = 13, |
|
50 ECbsUnrecognizedFactoryDefaultsTag = 14, |
|
51 ECbsFactoryDefaultsFileCorrupt = 15, |
|
52 ECbsFactoryDefaultsTopicsCorrupt = 16, |
|
53 ECbsTopicListProcessPanic = 17, |
|
54 ECbsMessagesSubsessionInitFailed = 18, |
|
55 ECbsMessageAlreadyPermanent = 19, |
|
56 ECbsMcnSessionInitFailed = 20, |
|
57 ECbsObserverNotFound = 21, |
|
58 ECbsTopicMessagesNull = 22, |
|
59 EMcnProviderNull = 23, |
|
60 EMcnSubscriptionsExceedTotalSubscriptions = 24, |
|
61 ESubscriptionTableCorrupt = 25, |
|
62 EMcnProviderNotFound = 26, |
|
63 ECbsRecShouldBeOn = 27, |
|
64 ECbsMessageNullAtCopyConstructor = 28, |
|
65 ECbsRetrievedNullMessageContent = 29, |
|
66 ECbsFSSOpenFailed = 30, |
|
67 ECbsInvalidSharedDataEvent = 31, |
|
68 ECbsGeneratorInvalidMsgHeader = 32, |
|
69 ECbsStoreNull = 33, |
|
70 ECbsNullTopic = 34, |
|
71 ECbsCacheNotValid = 35, |
|
72 EInvalidSessionObject = 36, |
|
73 ECbsCollectorMergeFailed = 37, |
|
74 ECbsInvalidLockHandle = 38, |
|
75 ECbsNotIndexMessage = 39, |
|
76 ECbsLanguageNotResolved = 40, |
|
77 ECbsInvalidLanguage = 41, |
|
78 ECbsTopicDuplicate = 42, |
|
79 ECbsGetTopicFailed = 43, |
|
80 ECbsFindTopicUnknownLeave = 44, |
|
81 ECbsInvalidFilenameDescriptor = 45, |
|
82 ECbsTopicListArrayNull = 46 |
|
83 }; |
|
84 |
|
85 // FUNCTION PROTOTYPES |
|
86 |
|
87 /** |
|
88 * Panics the server. |
|
89 * |
|
90 * @param aPanic Reason for the panic. |
|
91 */ |
|
92 GLDEF_C void CbsServerPanic( TCbsServerPanic aPanic ); |
|
93 |
|
94 #endif // CBSSERVERPANIC_H |
|
95 |
|
96 // End of File |
|
97 |
|
98 |