|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef HWRMPOWERCLIENTSERVER_H |
|
22 #define HWRMPOWERCLIENTSERVER_H |
|
23 |
|
24 // INCLUDES |
|
25 // None |
|
26 #include <hwrmpower.h> |
|
27 |
|
28 // CONSTANTS |
|
29 // Maximum number of possible power targets |
|
30 const TInt KHWRMPowerMaxTargets(1); |
|
31 |
|
32 // MACROS |
|
33 // None |
|
34 |
|
35 // DATA TYPES |
|
36 // None |
|
37 |
|
38 // Opcodes used in message passing between client and server |
|
39 // Power opcodes start at 3000 |
|
40 enum THWRMPowerServRequest |
|
41 { |
|
42 // Services for Power |
|
43 |
|
44 /** |
|
45 * Gets the Battery consumption info |
|
46 * |
|
47 * parameters: |
|
48 * 0: TPckg<TBatteryConsumptionData> On return, the consumption info |
|
49 */ |
|
50 EHWRMGetBatteryInfo = 3000, |
|
51 |
|
52 /** |
|
53 * Gets the Baterry voltage info |
|
54 * |
|
55 * parameters: |
|
56 * 0: TPckg<TBatteryVoltageData> On return, the voltage info |
|
57 */ |
|
58 EHWRMGetBatteryVoltageInfo, |
|
59 |
|
60 |
|
61 /** |
|
62 * Starts the periodic reporting of avegage battery Power value |
|
63 * |
|
64 * parameters: |
|
65 * 0: TUint intervalMultiple |
|
66 */ |
|
67 EHWRMStartAverageBatteryPowerReporting, |
|
68 |
|
69 /** |
|
70 * Get a batch of average battery power measurements from the server |
|
71 * |
|
72 * parameters: |
|
73 * None |
|
74 * |
|
75 * return: |
|
76 * 0: TMeasurementsArray |
|
77 */ |
|
78 |
|
79 |
|
80 EHWRMGetPowerMeasurements, |
|
81 |
|
82 /** |
|
83 * Stops the periodic reporting of avegage battery Power value |
|
84 * |
|
85 * parameters: |
|
86 * None |
|
87 */ |
|
88 EHWRMStopAverageBatteryPowerReporting, |
|
89 |
|
90 |
|
91 /** |
|
92 * Cancel an average battery power measurements request |
|
93 * |
|
94 * parameters: |
|
95 * None |
|
96 */ |
|
97 |
|
98 EHWRMCancelAveragePowerReporting, |
|
99 |
|
100 |
|
101 /** |
|
102 * Cleans up the powewr service so that session can be closed. |
|
103 * |
|
104 * parameters: |
|
105 * None |
|
106 */ |
|
107 EHWRMCleanupBattery, |
|
108 |
|
109 #ifdef SYMBIAN_HWRM_EXTPOWERINFO |
|
110 |
|
111 /** |
|
112 * Get Battery Charger Type |
|
113 * |
|
114 */ |
|
115 |
|
116 EHWRMGetBatteryChargerType, |
|
117 |
|
118 /** |
|
119 * Starts the periodic reporting of average charging current value(period = TIntervalMultiple * BaseTimeInterval) |
|
120 * |
|
121 * parameters: |
|
122 * 0: TIntervalMultiple |
|
123 */ |
|
124 EHWRMStartAverageChargingCurrentReporting, |
|
125 |
|
126 /** |
|
127 * Get a batch of average charging current measurements from the server |
|
128 */ |
|
129 EHWRMGetAverageChargingCurrentMeasurements, |
|
130 |
|
131 /** |
|
132 * Stops the periodic reporting of avegage charging current value |
|
133 * |
|
134 * parameters: |
|
135 * None |
|
136 */ |
|
137 EHWRMStopAverageChargingCurrentReporting, |
|
138 |
|
139 /** |
|
140 * Cancel an average battery voltage measurements request |
|
141 * |
|
142 * parameters: |
|
143 * None |
|
144 */ |
|
145 EHWRMCancelAverageChargingCurrentReporting, |
|
146 |
|
147 /** |
|
148 * Starts the reporting of Battery Full charging time. |
|
149 */ |
|
150 EHWRMStartBatteryFullChargingTimeReporting, |
|
151 |
|
152 /** |
|
153 * Get a batch of remaing charging time measurements. |
|
154 */ |
|
155 EHWRMGetBatteryFullChargingTimeMeasurements, |
|
156 |
|
157 /** |
|
158 * Stops the reporting of Battery Full charging time. |
|
159 * |
|
160 * parameters: |
|
161 * None |
|
162 */ |
|
163 EHWRMStopBatteryFullChargingTimeReporting, |
|
164 |
|
165 /** |
|
166 * Cancel remaining charging time measurements request |
|
167 * |
|
168 * parameters: |
|
169 * None |
|
170 */ |
|
171 EHWRMCancelBatteryFullChargingTimeReporting, |
|
172 |
|
173 #endif //SYMBIAN_HWRM_EXTPOWERINFO |
|
174 |
|
175 EHWRMEndOfPowerOpCodes |
|
176 }; |
|
177 |
|
178 |
|
179 // FUNCTION PROTOTYPES |
|
180 // None |
|
181 |
|
182 // FORWARD DECLARATIONS |
|
183 // None |
|
184 |
|
185 // CLASS DECLARATION |
|
186 // None |
|
187 |
|
188 #endif // HWRMPOWERCLIENTSERVER_H |
|
189 |
|
190 // End of File |