equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002-2007 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: Contains the panic function and codes for this component |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef PBK2USIMUIERROR_H |
|
21 #define PBK2USIMUIERROR_H |
|
22 |
|
23 #ifdef _DEBUG |
|
24 |
|
25 // INCLUDES |
|
26 #include <e32std.h> |
|
27 |
|
28 /** |
|
29 * VPbkSimStore internal error codes and functions for |
|
30 * debug code |
|
31 */ |
|
32 namespace Pbk2USimUI |
|
33 { |
|
34 /// Panic category for Virtual Phonebook engine |
|
35 _LIT( KPanicCategory, "Pbk2USimUI" ); |
|
36 |
|
37 /** |
|
38 * Panic codes for the VPbkSimStore |
|
39 */ |
|
40 enum TPanicCode |
|
41 { |
|
42 EPostCond_CPsu2ViewManager_StoreL = 1, |
|
43 EPostCond_OpenAndActivateViewL = 2 |
|
44 }; |
|
45 |
|
46 /** |
|
47 * Called if an unrecoverable error is detected. |
|
48 * Stops the thread with User::Panic. |
|
49 */ |
|
50 inline void Panic(TPanicCode aPanicCode); |
|
51 } |
|
52 |
|
53 inline void Pbk2USimUI::Panic(TPanicCode aPanicCode) |
|
54 { |
|
55 User::Panic( KPanicCategory, aPanicCode ); |
|
56 } |
|
57 |
|
58 #endif // _DEBUG |
|
59 |
|
60 #endif // PBK2USIMUIERROR_H |
|
61 |
|
62 // End of File |