|
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 */ |
|
16 // HTI service functions |
|
17 //gsoap ns1 service name: HtiSysInfo |
|
18 //gsoap ns1 service namespace: urn:hti |
|
19 //gsoap ns1 service style: rpc |
|
20 //gsoap ns1 service encoding: literal |
|
21 //gsoap ns1 service location: http://localhost:2000 |
|
22 |
|
23 typedef char* xsd__string; |
|
24 typedef wchar_t * xsd__string_; |
|
25 typedef unsigned char xsd__unsignedByte; |
|
26 typedef unsigned short xsd__unsignedShort; |
|
27 typedef int xsd__int; |
|
28 typedef unsigned int xsd__unsignedInt; |
|
29 typedef ULONG64 xsd__unsignedLong; |
|
30 typedef bool xsd__boolean; |
|
31 |
|
32 struct ns1__HtiTime |
|
33 { |
|
34 xsd__unsignedShort year; |
|
35 xsd__unsignedByte month; |
|
36 xsd__unsignedByte day; |
|
37 xsd__unsignedByte hour; |
|
38 xsd__unsignedByte minute; |
|
39 xsd__unsignedByte second; |
|
40 }; |
|
41 |
|
42 struct ns1__HtiBatteryStatus |
|
43 { |
|
44 xsd__unsignedByte batteryBars; |
|
45 xsd__unsignedByte chargingStatus; |
|
46 }; |
|
47 |
|
48 enum NetworkMode { |
|
49 NetworkModeGsm = 0x01, |
|
50 NetworkModeUmts = 0x02, |
|
51 NetworkModeDual = 0x04 |
|
52 }; |
|
53 |
|
54 enum DateFormat { |
|
55 DateFormatAmerican = 0x00, |
|
56 DateFormatEuropean = 0x01, |
|
57 DateFormatJapanese = 0x02 |
|
58 }; |
|
59 |
|
60 enum TimeFormat { |
|
61 TimeFormat12h = 0x00, |
|
62 TimeFormat24h = 0x01 |
|
63 }; |
|
64 |
|
65 enum ClockFormat { |
|
66 ClockFormatAnalogue = 0x00, |
|
67 ClockFormatDigital = 0x01 |
|
68 }; |
|
69 |
|
70 enum HsdpaStatus { |
|
71 HsdpaDisabled = 0x00, |
|
72 HsdpaEnabled = 0x01 |
|
73 }; |
|
74 |
|
75 //gsoap ns1 service method-action: getHalAttribute "HtiSysInfo" |
|
76 int ns1__getHalAttribute( |
|
77 xsd__int attribute, |
|
78 xsd__int &halAttribute |
|
79 ); |
|
80 //gsoap ns1 service method-action: getImei "HtiSysInfo" |
|
81 int ns1__getImei( |
|
82 void *_, // no in parameter |
|
83 xsd__string &imei |
|
84 ); |
|
85 //gsoap ns1 service method-action: getSwVersion "HtiSysInfo" |
|
86 int ns1__getSwVersion( |
|
87 void *_, // no in parameter |
|
88 xsd__string_ &swVersion |
|
89 ); |
|
90 //gsoap ns1 service method-action: getLangVersion "HtiSysInfo" |
|
91 int ns1__getLangVersion( |
|
92 void *_, // no in parameter |
|
93 xsd__string_ &langVersion |
|
94 ); |
|
95 //gsoap ns1 service method-action: getSwLangVersion "HtiSysInfo" |
|
96 int ns1__getSwLangVersion( |
|
97 void *_, // no in parameter |
|
98 xsd__string_ &swLangVersion |
|
99 ); |
|
100 //gsoap ns1 service method-action: getUserAgentString "HtiSysInfo" |
|
101 int ns1__getUserAgentString( |
|
102 void *_, // no in parameter |
|
103 xsd__string &userAgentString |
|
104 ); |
|
105 |
|
106 //gsoap ns1 service method-action: setHomeTime "HtiSysInfo" |
|
107 int ns1__setHomeTime( |
|
108 struct ns1__HtiTime* time, |
|
109 struct ns1__setHomeTimeResponse{} *out // empty response |
|
110 ); |
|
111 |
|
112 struct getHomeTimeResponse{struct ns1__HtiTime _returnHtiTime;}; |
|
113 //gsoap ns1 service method-action: getHomeTime "HtiSysInfo" |
|
114 int ns1__getHomeTime( |
|
115 void *_, // no in parameter |
|
116 struct getHomeTimeResponse& r |
|
117 ); |
|
118 |
|
119 //gsoap ns1 service method-action: setDateTimeFormat "HtiSysInfo" |
|
120 int ns1__setDateTimeFormat( |
|
121 enum DateFormat dateFormat, |
|
122 xsd__unsignedByte dateSeparator, |
|
123 enum TimeFormat timeFormat, |
|
124 xsd__unsignedByte timeSeparator, |
|
125 enum ClockFormat clockFormat, |
|
126 struct ns1__setDateTimeFormatResponse{} *out // empty response |
|
127 ); |
|
128 |
|
129 //gsoap ns1 service method-action: getFreeRAM "HtiSysInfo" |
|
130 int ns1__getFreeRAM( |
|
131 void *_, // no in parameter |
|
132 xsd__unsignedInt &freeRAM |
|
133 ); |
|
134 |
|
135 //gsoap ns1 service method-action: getUsedRAM "HtiSysInfo" |
|
136 int ns1__getUsedRAM( |
|
137 void *_, // no in parameter |
|
138 xsd__unsignedInt &usedRAM |
|
139 ); |
|
140 |
|
141 //gsoap ns1 service method-action: getTotalRAM "HtiSysInfo" |
|
142 int ns1__getTotalRAM( |
|
143 void *_, // no in parameter |
|
144 xsd__unsignedInt &totalRAM |
|
145 ); |
|
146 |
|
147 //gsoap ns1 service method-action: eatRAM "HtiSysInfo" |
|
148 int ns1__eatRAM( |
|
149 xsd__unsignedInt RAMToBeLeftOver, |
|
150 xsd__unsignedInt &freeRAM |
|
151 ); |
|
152 |
|
153 //gsoap ns1 service method-action: releaseRAM "HtiSysInfo" |
|
154 int ns1__releaseRAM( |
|
155 void *_, // no in parameter |
|
156 xsd__unsignedInt &freeRAM |
|
157 ); |
|
158 |
|
159 //gsoap ns1 service method-action: getFreeDiskSpace "HtiSysInfo" |
|
160 int ns1__getFreeDiskSpace( |
|
161 xsd__string driveLetter, |
|
162 xsd__unsignedLong &freeDiskSpace |
|
163 ); |
|
164 |
|
165 //gsoap ns1 service method-action: getUsedDiskSpace "HtiSysInfo" |
|
166 int ns1__getUsedDiskSpace( |
|
167 xsd__string driveLetter, |
|
168 xsd__unsignedLong &usedDiskSpace |
|
169 ); |
|
170 |
|
171 //gsoap ns1 service method-action: getTotalDiskSpace "HtiSysInfo" |
|
172 int ns1__getTotalDiskSpace( |
|
173 xsd__string driveLetter, |
|
174 xsd__unsignedLong &totalDiskSpace |
|
175 ); |
|
176 |
|
177 //gsoap ns1 service method-action: eatDiskSpace "HtiSysInfo" |
|
178 int ns1__eatDiskSpace( |
|
179 xsd__string driveLetter, |
|
180 xsd__unsignedLong diskSpaceToBeLeftOver, |
|
181 xsd__unsignedLong &freeDiskSpace |
|
182 ); |
|
183 |
|
184 //gsoap ns1 service method-action: releaseDiskSpace "HtiSysInfo" |
|
185 int ns1__releaseDiskSpace( |
|
186 xsd__string driveLetter, |
|
187 xsd__unsignedLong &freeDiskSpace |
|
188 ); |
|
189 |
|
190 //gsoap ns1 service method-action: lightStatus "HtiSysInfo" |
|
191 int ns1__lightStatus( |
|
192 xsd__unsignedByte lightTarget, |
|
193 xsd__unsignedByte &lightStatus |
|
194 ); |
|
195 |
|
196 //gsoap ns1 service method-action: lightOn "HtiSysInfo" |
|
197 int ns1__lightOn( |
|
198 xsd__unsignedByte lightTarget, |
|
199 xsd__unsignedShort duration, |
|
200 xsd__unsignedByte intensity, |
|
201 xsd__unsignedByte fadeIn, |
|
202 struct ns1__lightOnResponse{} *out // empty response |
|
203 ); |
|
204 |
|
205 //gsoap ns1 service method-action: lightOff "HtiSysInfo" |
|
206 int ns1__lightOff( |
|
207 xsd__unsignedByte lightTarget, |
|
208 xsd__unsignedShort duration, |
|
209 xsd__unsignedByte fadeOut, |
|
210 struct ns1__lightOffResponse{} *out // empty response |
|
211 ); |
|
212 |
|
213 //gsoap ns1 service method-action: lightBlink "HtiSysInfo" |
|
214 int ns1__lightBlink( |
|
215 xsd__unsignedByte lightTarget, |
|
216 xsd__unsignedShort duration, |
|
217 xsd__unsignedShort onDuration, |
|
218 xsd__unsignedShort offDuration, |
|
219 xsd__unsignedByte intensity, |
|
220 struct ns1__lightBlinkResponse{} *out // empty response |
|
221 ); |
|
222 |
|
223 //gsoap ns1 service method-action: lightRelease "HtiSysInfo" |
|
224 int ns1__lightRelease( |
|
225 void *_, // no in parameter |
|
226 struct ns1__lightReleaseResponse{} *out // empty response |
|
227 ); |
|
228 |
|
229 //gsoap ns1 service method-action: screenSaverDisable "HtiSysInfo" |
|
230 int ns1__screenSaverDisable( |
|
231 void *_, // no in parameter |
|
232 struct ns1__screenSaverDisableResponse{} *out // empty response |
|
233 ); |
|
234 |
|
235 //gsoap ns1 service method-action: screenSaverEnable "HtiSysInfo" |
|
236 int ns1__screenSaverEnable( |
|
237 void *_, // no in parameter |
|
238 struct ns1__screenSaverEnableResponse{} *out // empty response |
|
239 ); |
|
240 |
|
241 //gsoap ns1 service method-action: screenSaverTimeout "HtiSysInfo" |
|
242 int ns1__screenSaverTimeout( |
|
243 xsd__unsignedByte timeout, |
|
244 struct ns1__screenSaverTimeoutResponse{} *out // empty response |
|
245 ); |
|
246 |
|
247 //gsoap ns1 service method-action: getNetworkMode "HtiSysInfo" |
|
248 int ns1__getNetworkMode( |
|
249 void *_, // no in parameter |
|
250 enum NetworkMode &mode |
|
251 ); |
|
252 |
|
253 //gsoap ns1 service method-action: setNetworkMode "HtiSysInfo" |
|
254 int ns1__setNetworkMode( |
|
255 enum NetworkMode mode, |
|
256 struct ns1__setNetworkModeResponse{} *out // empty response |
|
257 ); |
|
258 |
|
259 //gsoap ns1 service method-action: setNetworkModeNoReboot "HtiSysInfo" |
|
260 int ns1__setNetworkModeNoReboot( |
|
261 enum NetworkMode mode, |
|
262 struct ns1__setNetworkModeNoRebootResponse{} *out // empty response |
|
263 ); |
|
264 |
|
265 //gsoap ns1 service method-action: setHsdpaStatus "HtiSysInfo" |
|
266 int ns1__setHsdpaStatus( |
|
267 enum HsdpaStatus status, |
|
268 struct ns1__setHsdpaStatusResponse{} *out // empty response |
|
269 ); |
|
270 |
|
271 //gsoap ns1 service method-action: irActivate "HtiSysInfo" |
|
272 int ns1__irActivate( |
|
273 void *_, // no in parameter, |
|
274 struct ns1__irActivateResponse{} *out // empty response |
|
275 ); |
|
276 |
|
277 //gsoap ns1 service method-action: btPowerState "HtiSysInfo" |
|
278 int ns1__btPowerState( |
|
279 xsd__boolean btOn, |
|
280 xsd__boolean force, |
|
281 struct ns1__btPowerStateResponse{} *out // empty response |
|
282 ); |
|
283 |
|
284 //gsoap ns1 service method-action: btSettings "HtiSysInfo" |
|
285 int ns1__btSettings( |
|
286 xsd__boolean discoverable, |
|
287 xsd__boolean enableSAP, |
|
288 xsd__string btName, |
|
289 struct ns1__btSettingsResponse{} *out // empty response |
|
290 ); |
|
291 |
|
292 //gsoap ns1 service method-action: btDeletePairings "HtiSysInfo" |
|
293 int ns1__btDeletePairings( |
|
294 xsd__boolean closeConnections, |
|
295 xsd__string btName, |
|
296 xsd__int &deleteCount |
|
297 ); |
|
298 |
|
299 //gsoap ns1 service method-action: keyLockToggle "HtiSysInfo" |
|
300 int ns1__keyLockToggle( |
|
301 xsd__boolean keyLockOn, |
|
302 xsd__boolean showNote, |
|
303 struct ns1__keyLockToggleResponse{} *out // empty response |
|
304 ); |
|
305 |
|
306 //gsoap ns1 service method-action: autoKeyLockTime "HtiSysInfo" |
|
307 int ns1__autoKeyLockTime( |
|
308 xsd__int seconds, |
|
309 struct ns1__autoKeyLockTimeResponse{} *out // empty response |
|
310 ); |
|
311 |
|
312 //gsoap ns1 service method-action: emptyDrmRightsDb "HtiSysInfo" |
|
313 int ns1__emptyDrmRightsDb( |
|
314 void *_, // no in parameter, |
|
315 struct ns1__emptyDrmRightsDbResponse{} *out // empty response |
|
316 ); |
|
317 |
|
318 struct batteryStatusResponse |
|
319 { |
|
320 struct ns1__HtiBatteryStatus _returnHtiBatteryStatus; |
|
321 }; |
|
322 //gsoap ns1 service method-action: batteryStatus "HtiSysInfo" |
|
323 int ns1__batteryStatus( |
|
324 void *_, // no in parameter |
|
325 struct batteryStatusResponse& r |
|
326 ); |
|
327 |
|
328 //gsoap ns1 service method-action: signalStrength "HtiSysInfo" |
|
329 int ns1__signalStrength( |
|
330 void *_, // no in parameter |
|
331 xsd__int &signalBars |
|
332 ); |
|
333 |
|
334 //gsoap ns1 service method-action: updateMediaGallery "HtiSysInfo" |
|
335 int ns1__updateMediaGallery( |
|
336 xsd__string filePath, |
|
337 struct ns1__updateMediaGalleryResponse{} *out // empty response |
|
338 ); |
|
339 |
|
340 //gsoap ns1 service method-action: activateSkin "HtiSysInfo" |
|
341 int ns1__activateSkin( |
|
342 xsd__string skinName, |
|
343 struct ns1__activateSkinResponse{} *out // empty response |
|
344 ); |