|
1 /* |
|
2 * Copyright (c) 2002-2009 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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CT_LBS_CLIENT_OBSERVER_H__ |
|
21 #define __CT_LBS_CLIENT_OBSERVER_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * ?one_line_short_description. |
|
34 * ?other_description_lines |
|
35 */ |
|
36 class CT_LbsClientObserver : public CBase |
|
37 { |
|
38 public: // New functions |
|
39 |
|
40 /** |
|
41 * Waits for EPos server to shut down. If it is |
|
42 * not running this method will return instantaneously. |
|
43 */ |
|
44 static void WaitForEPosShutdown(); |
|
45 |
|
46 /** |
|
47 * Pushes WaitForEPosShutdown to the cleanup stack. It is useful when |
|
48 * other cleanup items are dependent on EPos having released all its |
|
49 * resources |
|
50 */ |
|
51 static void EPosShutdownWaitPushL(); |
|
52 |
|
53 /** |
|
54 * Checks if EPos server is alive. |
|
55 */ |
|
56 static TBool EPosAliveL(); |
|
57 |
|
58 /** |
|
59 * Waits for privacy server to shut down. If it is |
|
60 * not running this method will return instantaneously. |
|
61 */ |
|
62 static void WaitForPrivacyServerShutdown(); |
|
63 |
|
64 /** |
|
65 * Pushes WaitForPrivacyServerShutdown to the cleanup stack. It is useful |
|
66 * when other cleanup items are dependent on EPos having released all its |
|
67 * resources |
|
68 */ |
|
69 static void PrivacyServerShutdownWaitPushL(); |
|
70 |
|
71 /** |
|
72 * Checks if privacy server is alive. |
|
73 */ |
|
74 static TBool PrivacyServerAliveL(); |
|
75 |
|
76 private: // New functions |
|
77 |
|
78 /** |
|
79 * Waits for a process to die. If the process is |
|
80 * not running this method will return instantaneously. |
|
81 * @param aProcessName The name of the process. |
|
82 */ |
|
83 static void WaitForProcessDeath( |
|
84 /* IN */ const TDesC& aProcessName |
|
85 ); |
|
86 |
|
87 /** |
|
88 * Checks if a process is alive. |
|
89 * @param aProcessName The name of the process. |
|
90 */ |
|
91 static TBool ProcessAliveL( |
|
92 /* IN */ const TDesC& aProcessName |
|
93 ); |
|
94 |
|
95 }; |
|
96 |
|
97 #endif // __CT_LBS_CLIENT_OBSERVER_H__ |
|
98 |
|
99 // End of File |