|
1 /* |
|
2 * Copyright (c) 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 "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: |
|
15 * Constant definitions for Email shutdown |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef EMAILSHUTDOWNCONST_H |
|
20 #define EMAILSHUTDOWNCONST_H |
|
21 |
|
22 #include <e32cmn.h> // TUid |
|
23 #include "emailshutdownconst.hrh" // KEmailShutdownUidAsTInt |
|
24 |
|
25 |
|
26 // Publish & Subscribe category for Email shutdown events |
|
27 const TUid KEmailShutdownPsCategory = { KEmailShutdownUidAsTInt }; |
|
28 |
|
29 // Publish & Subscribe keys |
|
30 enum TEmailShutdownPsKeys |
|
31 { |
|
32 // Publish & Subscribe key used in communication between Shutter |
|
33 // application and installation initiators |
|
34 EEmailPsKeyInstallationStatus = 1, |
|
35 |
|
36 // Publish & Subscribe keys for Email shutdown events |
|
37 EEmailPsKeyShutdownClients, |
|
38 EEmailPsKeyShutdownPlugins, |
|
39 EEmailPsKeyShutdownMsgStore |
|
40 }; |
|
41 |
|
42 // Publish & Subscribe values to be used with key EEmailPsKeyInstallationStatus |
|
43 enum TEmailShutdownPsInstallationValues |
|
44 { |
|
45 // Value to be set by installation initiators when installation is starting |
|
46 EEmailPsValueInstallationStarting = 1, |
|
47 // Value to be set by Shutter when all services are shutdown |
|
48 EEmailPsValueInstallationOkToStart, |
|
49 // Value to be set by installation initiators when installation is started |
|
50 // after EEmailPsValueInstallationOkToStart event received |
|
51 EEmailPsValueInstallationStarted, |
|
52 // Value to be set by Starter when installation has finished |
|
53 EEmailPsValueInstallationFinished |
|
54 }; |
|
55 |
|
56 // Executable name of the process that implements the shutdown functionality |
|
57 _LIT( KEmailShutdownHandlerExe, "emailservermonitor.exe" ); |
|
58 |
|
59 // Command line arguments that can be given to shutdown handler process when |
|
60 // starting it |
|
61 |
|
62 // KEmailShutdownHandlerArgOnlyShutter should be used when starting the process |
|
63 // just before starting installation (if it wasn't already running) |
|
64 _LIT( KEmailShutdownHandlerArgOnlyShutter, "OnlyShutter" ); |
|
65 |
|
66 // KEmailShutdownHandlerArgRestart should be given when restarting |
|
67 // the process after installation |
|
68 _LIT( KEmailShutdownHandlerArgRestart, "RestartAfterInstallation" ); |
|
69 |
|
70 |
|
71 #endif // EMAILSHUTDOWNCONST_H |