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: HtiApplication |
|
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 int xsd__int; |
|
26 typedef bool xsd__boolean; |
|
27 typedef unsigned char xsd__unsignedByte; |
|
28 |
|
29 enum ns1__mimeType { sisx, sis, pip, jad, jar, java, jarx }; |
|
30 |
|
31 struct ns1__startProcessResult |
|
32 { |
|
33 xsd__string status; |
|
34 xsd__int pid; |
|
35 }; |
|
36 |
|
37 struct ns1__startAppByUidResult |
|
38 { |
|
39 xsd__string status; |
|
40 xsd__int threadId; |
|
41 }; |
|
42 |
|
43 struct ns1__startDocResult |
|
44 { |
|
45 xsd__string status; |
|
46 xsd__int threadId; |
|
47 }; |
|
48 |
|
49 struct ns1__startAppResult |
|
50 { |
|
51 xsd__string status; |
|
52 xsd__int threadId; |
|
53 }; |
|
54 |
|
55 struct ns1__getProcessExitCodeResult |
|
56 { |
|
57 xsd__string exitType; |
|
58 xsd__int exitReason; |
|
59 xsd__string exitCategory; |
|
60 }; |
|
61 |
|
62 class ns1__HtiProcess |
|
63 { |
|
64 public: |
|
65 xsd__int processId; |
|
66 xsd__string processName; |
|
67 xsd__string processStatus; |
|
68 }; |
|
69 |
|
70 class ArrayOfHtiProcess |
|
71 { |
|
72 public: |
|
73 ns1__HtiProcess *__ptr; |
|
74 int __size; |
|
75 }; |
|
76 |
|
77 class ns1__HtiRunningApp |
|
78 { |
|
79 public: |
|
80 xsd__int uid; |
|
81 xsd__string_ caption; |
|
82 xsd__string_ document; |
|
83 xsd__boolean hidden; |
|
84 xsd__boolean system; |
|
85 xsd__boolean ready; |
|
86 xsd__boolean busy; |
|
87 xsd__boolean closable; |
|
88 }; |
|
89 |
|
90 class ArrayOfHtiRunningApp |
|
91 { |
|
92 public: |
|
93 ns1__HtiRunningApp *__ptr; |
|
94 int __size; |
|
95 }; |
|
96 |
|
97 struct startProcessResponse{struct ns1__startProcessResult _returnstartProcessResult;}; |
|
98 //gsoap ns1 service method-action: startProcess "HtiApplication" |
|
99 int ns1__startProcess( |
|
100 xsd__string_ fileName, |
|
101 xsd__string_ args, |
|
102 struct startProcessResponse &r |
|
103 ); |
|
104 |
|
105 //gsoap ns1 service method-action: stopProcess "HtiApplication" |
|
106 int ns1__stopProcess( |
|
107 xsd__string_ matchPattern, |
|
108 xsd__string &result |
|
109 ); |
|
110 |
|
111 //gsoap ns1 service method-action: stopProcessById "HtiApplication" |
|
112 int ns1__stopProcessById( |
|
113 xsd__int pid, |
|
114 xsd__string &result |
|
115 ); |
|
116 |
|
117 //gsoap ns1 service method-action: getProcessStatus "HtiApplication" |
|
118 int ns1__getProcessStatus( |
|
119 xsd__string_ matchPattern, |
|
120 xsd__string &status |
|
121 ); |
|
122 |
|
123 //gsoap ns1 service method-action: getProcessStatusById "HtiApplication" |
|
124 int ns1__getProcessStatusById( |
|
125 xsd__int pid, |
|
126 xsd__string &status |
|
127 ); |
|
128 |
|
129 struct startAppResponse{struct ns1__startAppResult _returnstartAppResult;}; |
|
130 //gsoap ns1 service method-action: startApp "HtiApplication" |
|
131 int ns1__startApp( |
|
132 xsd__string_ appName, |
|
133 xsd__string_ docName, |
|
134 struct startAppResponse& r |
|
135 ); |
|
136 |
|
137 struct startAppByUidResponse{struct ns1__startAppByUidResult _returnstartAppByUidResult;}; |
|
138 //gsoap ns1 service method-action: startAppByUid "HtiApplication" |
|
139 int ns1__startAppByUid( |
|
140 xsd__int uid, |
|
141 xsd__string_ docName, |
|
142 struct startAppByUidResponse& r |
|
143 ); |
|
144 |
|
145 struct startDocResponse{struct ns1__startDocResult _returnstartDocResult;}; |
|
146 //gsoap ns1 service method-action: startDoc "HtiApplication" |
|
147 int ns1__startDoc( |
|
148 xsd__string_ docName, |
|
149 struct startDocResponse& r |
|
150 ); |
|
151 |
|
152 //gsoap ns1 service method-action: getAppStatus "HtiApplication" |
|
153 int ns1__getAppStatus( |
|
154 xsd__string_ appName, |
|
155 xsd__string &status |
|
156 ); |
|
157 |
|
158 //gsoap ns1 service method-action: getAppStatusByUid "HtiApplication" |
|
159 int ns1__getAppStatusByUid( |
|
160 xsd__int uid, |
|
161 xsd__string &status |
|
162 ); |
|
163 |
|
164 //gsoap ns1 service method-action: getAppStatusByDoc "HtiApplication" |
|
165 int ns1__getAppStatusByDoc( |
|
166 xsd__string_ docName, |
|
167 xsd__string &status |
|
168 ); |
|
169 |
|
170 //gsoap ns1 service method-action: stopApp "HtiApplication" |
|
171 int ns1__stopApp( |
|
172 xsd__string_ appName, |
|
173 xsd__string &result |
|
174 ); |
|
175 |
|
176 //gsoap ns1 service method-action: stopAppByUid "HtiApplication" |
|
177 int ns1__stopAppByUid( |
|
178 xsd__int uid, |
|
179 xsd__string &result |
|
180 ); |
|
181 |
|
182 //gsoap ns1 service method-action: stopAppByDoc "HtiApplication" |
|
183 int ns1__stopAppByDoc( |
|
184 xsd__string_ docName, |
|
185 xsd__string &result |
|
186 ); |
|
187 |
|
188 //gsoap ns1 service method-action: listProcesses "HtiApplication" |
|
189 int ns1__listProcesses( |
|
190 xsd__string_ matchPattern, |
|
191 ArrayOfHtiProcess *HtiProcesses |
|
192 ); |
|
193 |
|
194 //gsoap ns1 service method-action: startProcessRetVal "HtiApplication" |
|
195 int ns1__startProcessRetVal( |
|
196 xsd__string_ fileName, |
|
197 xsd__string_ args, |
|
198 struct startProcessResponse &r |
|
199 ); |
|
200 |
|
201 struct getProcessExitCodeResponse{struct ns1__getProcessExitCodeResult _returngetProcessExitCodeResult;}; |
|
202 //gsoap ns1 service method-action: getProcessExitCode "HtiApplication" |
|
203 int ns1__getProcessExitCode( |
|
204 xsd__int pid, |
|
205 struct getProcessExitCodeResponse &r |
|
206 ); |
|
207 |
|
208 //gsoap ns1 service method-action: installSoftware "HtiApplication" |
|
209 int ns1__installSoftware( |
|
210 xsd__string_ installPackagePath, |
|
211 xsd__boolean upgrade, |
|
212 xsd__boolean optionalItems, |
|
213 xsd__boolean ocsp, |
|
214 xsd__boolean ignoreOCSPWarnings, |
|
215 xsd__boolean installUntrusted, |
|
216 xsd__boolean allowPackageInfo, |
|
217 xsd__boolean grantUserCapabilities, |
|
218 xsd__boolean killApp, |
|
219 xsd__boolean overwrite, |
|
220 xsd__boolean download, |
|
221 xsd__string_ username, |
|
222 xsd__string_ password, |
|
223 xsd__string drive, |
|
224 xsd__unsignedByte language, |
|
225 xsd__boolean usePhoneLanguage, |
|
226 xsd__boolean upgradeData, |
|
227 struct ns1__installSoftwareResponse{} *out //empty response |
|
228 ); |
|
229 |
|
230 //gsoap ns1 service method-action: uninstallSoftware "HtiApplication" |
|
231 int ns1__uninstallSoftware( |
|
232 xsd__int uid, |
|
233 xsd__boolean killApp, |
|
234 xsd__boolean breakDependency, |
|
235 enum ns1__mimeType mimeType, |
|
236 struct ns1__uninstallSoftwareResponse{} *out //empty response |
|
237 ); |
|
238 |
|
239 //gsoap ns1 service method-action: uninstallSoftwareByName "HtiApplication" |
|
240 int ns1__uninstallSoftwareByName( |
|
241 xsd__string_ packageName, |
|
242 xsd__boolean killApp, |
|
243 xsd__boolean breakDependency, |
|
244 enum ns1__mimeType mimeType, |
|
245 struct ns1__uninstallSoftwareByNameResponse{} *out //empty response |
|
246 ); |
|
247 |
|
248 //gsoap ns1 service method-action: listRunningApps "HtiApplication" |
|
249 int ns1__listRunningApps( |
|
250 xsd__boolean includeHidden, |
|
251 xsd__boolean includeSystem, |
|
252 ArrayOfHtiRunningApp *htiApps |
|
253 ); |
|