|
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 EmailShutter |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef EMAILSERVERMONITORCONST_H |
|
20 #define EMAILSERVERMONITORCONST_H |
|
21 |
|
22 #include <e32cmn.h> // TUid |
|
23 #include "emailservermonitor.hrh" |
|
24 |
|
25 |
|
26 /** |
|
27 * Maximum number of retries to try to start the Email Server |
|
28 */ |
|
29 const TInt KEsmMaxRestarts = 5; |
|
30 |
|
31 /** |
|
32 * How long uptime (in minutes) is required to reset the restart counter. |
|
33 */ |
|
34 const TInt KEsmUptimeToResetRestartCounter = 10; |
|
35 |
|
36 /** |
|
37 * Delay before restarting the server after it has been closed |
|
38 */ |
|
39 const TInt KEsmRestartDelayInSeconds = 10; |
|
40 |
|
41 /** |
|
42 * Executable startup mode |
|
43 */ |
|
44 enum TEmailServerMonitorMode |
|
45 { |
|
46 EEsmModeNormal, |
|
47 EEsmModeOnlyShutter, |
|
48 EEsmModeRestartAfterInstallation |
|
49 }; |
|
50 |
|
51 /** |
|
52 * Name of the Email Server Monitor process/thread |
|
53 */ |
|
54 _LIT( KEmailServerMonitorName, "EmailServerMonitor" ); |
|
55 |
|
56 /** Name of the EmailServer executable |
|
57 */ |
|
58 _LIT( KEmailServerExe, "fsmailserver.exe" ); |
|
59 |
|
60 /** |
|
61 * Always Online email plugin and Email Server UIDs |
|
62 */ |
|
63 const TUid KAlwaysOnlineEmailPluginUid = { KAlwaysOnlineEmailPluginUidAsTInt }; |
|
64 const TUid KEmailServerUid = { FSMailServerUidAsTInt }; |
|
65 |
|
66 |
|
67 #endif // EMAILSERVERMONITORCONST_H |