equal
deleted
inserted
replaced
32 // CONSTANT DEFINITIONS |
32 // CONSTANT DEFINITIONS |
33 |
33 |
34 // Security policies used when defining P&S keys |
34 // Security policies used when defining P&S keys |
35 static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy); |
35 static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy); |
36 static _LIT_SECURITY_POLICY_C1(KPowerMgmtPolicy,ECapabilityPowerMgmt); |
36 static _LIT_SECURITY_POLICY_C1(KPowerMgmtPolicy,ECapabilityPowerMgmt); |
|
37 static _LIT_SECURITY_POLICY_C1(KWriteDeviceDataPolicy,ECapabilityWriteDeviceData); |
37 |
38 |
38 // Value to be set in shutdown P&S key. |
39 // Value to be set in shutdown P&S key. |
39 const TInt KEmailShutterPsValue = 1; |
40 const TInt KEmailShutterPsValue = 1; |
40 |
41 |
41 // Maximum waiting times used to wait processes to close themselves gracefully |
42 // Maximum waiting times used to wait processes to close themselves gracefully |
232 * that have not closed themselves. |
233 * that have not closed themselves. |
233 */ |
234 */ |
234 void WaitInCycles( const TInt aMaxWaitTime, |
235 void WaitInCycles( const TInt aMaxWaitTime, |
235 const TEmailShutterKillingMode aMode ); |
236 const TEmailShutterKillingMode aMode ); |
236 |
237 |
|
238 /** |
|
239 * Reads platform API process UIDs from Publish and Subscribe key to |
|
240 * internal array |
|
241 */ |
|
242 void ReadPlatformApiUidsL(); |
|
243 |
237 private: // Member variables |
244 private: // Member variables |
238 |
245 |
239 /** |
246 /** |
240 * Publish & Subscribe property to be observed. |
247 * Publish & Subscribe property to be observed. |
241 */ |
248 */ |
242 RProperty iInstStatusProperty; |
249 RProperty iInstStatusProperty; |
243 |
250 |
|
251 /** |
|
252 * List of UIDs of the processes that are using platform API |
|
253 */ |
|
254 RArray<TUid> iPlatformApiAppsToClose; |
|
255 |
244 /** |
256 /** |
245 * Pointer to Email Server Monitor |
257 * Pointer to Email Server Monitor |
246 * Not owned |
258 * Not owned |
247 */ |
259 */ |
248 CEmailServerMonitor* iMonitor; |
260 CEmailServerMonitor* iMonitor; |