|
1 /* |
|
2 * Copyright (c) 2006 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: PhoneUI panic reason codes |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __PHONEUI_PAN__ |
|
20 #define __PHONEUI_PAN__ |
|
21 |
|
22 |
|
23 enum TPhoneUiUtils |
|
24 { |
|
25 EPhoneUtilsIndexOutOfBounds = 1, |
|
26 EPhoneUtilsResourcePhoneappNotFound = 2, |
|
27 EPhoneUtilsCouldNotCreateSingleton = 3, |
|
28 EPhoneUtilsBufferOverflow = 4, |
|
29 EPhoneUtilsInvariant = 5, |
|
30 EPhoneUtilsParameterNotInitialized = 6, |
|
31 EPhoneUtilsNoCallBack = 7, |
|
32 EPhoneUtilsInvalidArgument = 8 |
|
33 }; |
|
34 |
|
35 enum TPhoneUiView |
|
36 { |
|
37 EPhoneViewCaseNotHandled = 20, |
|
38 EPhoneViewGeneralError = 21, |
|
39 EPhoneViewNoImgConverterObserver = 22, |
|
40 EPhoneViewParameterNotInitialized = 23, |
|
41 EPhoneViewIndexOutOfBounds = 24, |
|
42 EPhoneViewInvariant = 25, |
|
43 EPhoneViewErrorInAddingResourceFile = 26 |
|
44 }; |
|
45 |
|
46 enum TPhoneUiControl |
|
47 { |
|
48 EPhoneCtrlSingletonNotInitialized = 40, |
|
49 EPhoneCtrlFactoryLibraryNotFound = 41, |
|
50 EPhoneCtrlUnknownPanic = 42, |
|
51 EPhoneCtrlInvariant = 43, |
|
52 EPhoneCtrlParameterNotInitialized = 44, |
|
53 EPhoneCtrlCaseNotHandled = 45, |
|
54 EPhoneCtrlIndexOutOfBounds = 46, |
|
55 EPhoneCtrlPSKeyDefineFail = 47, |
|
56 }; |
|
57 |
|
58 enum TPhoneUi |
|
59 { |
|
60 EPhoneUiNoWindowGroup = 60 |
|
61 }; |
|
62 |
|
63 enum TPhoneMediatorCenter |
|
64 { |
|
65 EPhoneMediatorCenterSingletonNotInitialized = 80, |
|
66 EPhoneMediatorCenterCouldNotCreateSingleton, |
|
67 EPhoneMediatorCenterParameterNotInitialized, |
|
68 EPhoneMediatorCenterInvalidCommand, |
|
69 EPhoneMediatorCenterInitializationPanic, |
|
70 EPhoneMediatorCenterRegistrationFailed |
|
71 }; |
|
72 |
|
73 inline void Panic( TInt aReason ) |
|
74 { |
|
75 _LIT( componentName, "Common phone" ); |
|
76 User::Panic( componentName, aReason ); |
|
77 } |
|
78 |
|
79 #endif // __PHONEUI_PAN__ |
|
80 |
|
81 |
|
82 // End of File |