|
1 /* |
|
2 * Copyright (c) 2005 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: this class defines some panic functions |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PENGWVSEARCHPANICS_H__ |
|
19 #define PENGWVSEARCHPANICS_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32std.h> |
|
23 #include <ImpsServices.h> |
|
24 #include "CPEngSessionSlotId.h" |
|
25 |
|
26 |
|
27 // CONSTANTS |
|
28 /** |
|
29 * |
|
30 * |
|
31 * @since 3.0 |
|
32 */ |
|
33 _LIT( KPEngSearchPanicCategory, "PEngPMSearch" ); |
|
34 |
|
35 |
|
36 /** |
|
37 * |
|
38 * |
|
39 * @since 3.0 |
|
40 */ |
|
41 enum TPEngSearchPanics |
|
42 { |
|
43 EPEngSearchElementUnknown = 1, |
|
44 EPEngNoSapContainerLoaded = 2, |
|
45 EPEngSearchSessionDestructionReqPending = 3, |
|
46 EPEngSearchHandlerDestructionReqPending = 4, |
|
47 EPEngSearchControlRunStateMismatch = 4 |
|
48 }; |
|
49 |
|
50 |
|
51 |
|
52 /** |
|
53 * |
|
54 * |
|
55 * @param aReason The reason for panic. |
|
56 * @param aLeaveCode The leave code. |
|
57 */ |
|
58 GLREF_C void SearchPanicOrLeaveL( TPEngSearchPanics aReason, |
|
59 TInt aLeaveCode ); |
|
60 |
|
61 |
|
62 /** |
|
63 * |
|
64 * |
|
65 * @param aReason The reason for panic. |
|
66 */ |
|
67 GLREF_C void SearchPanic( TPEngSearchPanics aReason ); |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 #endif //PENGWVSEARCHPANICS_H__ |
|
74 |
|
75 // End of File |
|
76 |