1 /* |
|
2 * Copyright (c) 2010 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 * Common definitions for FlexTimerServerMonitor client/server |
|
16 * communication. |
|
17 */ |
|
18 /* |
|
19 * %version: 1 % |
|
20 */ |
|
21 #ifndef FLEXTIMERSERVERMONITORCOMMON_H |
|
22 #define FLEXTIMERSERVERMONITORCOMMON_H |
|
23 |
|
24 /** |
|
25 * Function codes used in message passing between client and server. |
|
26 */ |
|
27 enum TFlexTimerServerMonitorRequests |
|
28 { |
|
29 EFlexTimerServerMonitorStartMonitoring = 1, ///< Start monitoring |
|
30 EFlexTimerServerMonitorHasServerCrashed, ///< Has monitored server crashed |
|
31 EFlexTimerServerMonitorStopMonitoring ///< Stop monitoring |
|
32 }; |
|
33 |
|
34 /** |
|
35 * Panic category for FlexTimerServerMonitor server panics |
|
36 */ |
|
37 _LIT( KFlexTimerServerMonitorPanicCategory, "TestFlexTimer-Monitor" ); |
|
38 |
|
39 /** |
|
40 * Panic codes for panic category TestFlexTimer-Monitor |
|
41 */ |
|
42 enum TFlexTimerServerMonitorPanicCode |
|
43 { |
|
44 EActiveSchedulerCreationFailed = 1, |
|
45 EServerCreationFailed, |
|
46 EStartingServerFailed, |
|
47 ECleanupStackCreationFailed |
|
48 }; |
|
49 |
|
50 |
|
51 const TUint KFlexTimerServerMonitorMajorVersionNumber = 0; ///< Major version |
|
52 const TUint KFlexTimerServerMonitorMinorVersionNumber = 1; ///< Minor version |
|
53 const TUint KFlexTimerServerMonitorBuildVersionNumber = 1; ///< Build version |
|
54 |
|
55 /** |
|
56 * Name of the FlexTimer server monitor process |
|
57 */ |
|
58 _LIT( KFlexTimerServerMonitorServerName, "FlexTimerServerMonitorServer" ); |
|
59 |
|
60 /** |
|
61 * Name of the FlexTimer server monitor process executable |
|
62 */ |
|
63 _LIT( KFlexTimerServerMonitorServerExe, "flextimerservermonitorserver.exe" ); |
|
64 |
|
65 /** |
|
66 * Number of the message slots for FlexTimer server monitor process. |
|
67 * |
|
68 * Due there are no asynchronous messaging, the number of slots can be one. |
|
69 */ |
|
70 const TInt KFlexTimerServerMonitorServerMessageSlots = 1; |
|
71 |
|
72 #endif // FLEXTIMERSERVERMONITORCOMMON_H |
|