|
1 /* |
|
2 * Copyright (c) 2005-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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 @internalTechnology |
|
24 */ |
|
25 |
|
26 #ifndef HWRMCLIENTSERVER_H |
|
27 #define HWRMCLIENTSERVER_H |
|
28 |
|
29 // INCLUDES |
|
30 #include <e32base.h> |
|
31 |
|
32 |
|
33 // CONSTANTS |
|
34 // None |
|
35 |
|
36 // MACROS |
|
37 // None |
|
38 |
|
39 // DATA TYPES |
|
40 |
|
41 // Opcodes used in message passing between client and server |
|
42 enum THWRMServRequest |
|
43 { |
|
44 /** |
|
45 * Create vibra service |
|
46 * |
|
47 * parameters: |
|
48 * None |
|
49 */ |
|
50 EHWRMCreateVibraService = 0, |
|
51 |
|
52 /** |
|
53 * Create light service |
|
54 * |
|
55 * parameters: |
|
56 * None |
|
57 */ |
|
58 EHWRMCreateLightService, |
|
59 |
|
60 /** |
|
61 * Create power service |
|
62 * |
|
63 * parameters: |
|
64 * None |
|
65 */ |
|
66 EHWRMCreatePowerService, |
|
67 |
|
68 /** |
|
69 * Create FM Tx service |
|
70 * |
|
71 * parameters: |
|
72 * None |
|
73 */ |
|
74 EHWRMCreateFmTxService, |
|
75 |
|
76 EHWRMEndOfCreateServiceOpCodes |
|
77 |
|
78 // The service specific commands are in separate headers. |
|
79 // Light commands start at 1000 |
|
80 // Vibra commands start at 2000 |
|
81 // Power commands start at 3000 |
|
82 // FM Tx commands start at 4000 |
|
83 }; |
|
84 |
|
85 /** |
|
86 * The following enumaration defines the HWRM server panic codes. |
|
87 */ |
|
88 enum THWRMPanic |
|
89 { |
|
90 // Illegal function called via client-server interface |
|
91 EPanicIllegalFunction=0, |
|
92 |
|
93 // Bad handle in client-server interface |
|
94 EPanicBadHandle, |
|
95 |
|
96 // Bad descriptor in client-srever interface |
|
97 EPanicBadDescriptor, |
|
98 |
|
99 // Unable to restart profile observer |
|
100 EPanicProfileObserverPanic |
|
101 }; |
|
102 |
|
103 |
|
104 // FUNCTION PROTOTYPES |
|
105 // None |
|
106 |
|
107 // FORWARD DECLARATIONS |
|
108 // None |
|
109 |
|
110 // CLASS DECLARATION |
|
111 // None |
|
112 |
|
113 #endif // HWRMCLIENTSERVER_H |
|
114 |
|
115 // End of File |