114
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 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: Homescreen content control server API definitions
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef HSCCAPI_H
|
|
19 |
#define HSCCAPI_H
|
|
20 |
|
|
21 |
// System includes
|
|
22 |
#include <e32base.h>
|
|
23 |
#include <ccsrvapi.h>
|
|
24 |
// Forward declarations
|
|
25 |
|
|
26 |
// Constants
|
|
27 |
|
|
28 |
// ----------------------------------------------------------------------------
|
|
29 |
// Home screen cotent control server messages
|
|
30 |
// ----------------------------------------------------------------------------
|
|
31 |
enum THsCcSrvMessages
|
|
32 |
{
|
|
33 |
// ----------------------------------------------------------------------------
|
|
34 |
// WidgetListChangedNtf
|
|
35 |
// ----------------------------------------------------------------------------
|
|
36 |
// Purpose:
|
|
37 |
// This notification is used to inform api observer of changed widget list
|
|
38 |
//
|
|
39 |
// Message parameters:
|
|
40 |
// - Message id: EHsCcWidgetListChangedNtf
|
|
41 |
// - Transaction id: None
|
|
42 |
// - Message data: None
|
|
43 |
EHsCcWidgetListChangedNtf = ECcProviderMessageBase,
|
|
44 |
// ----------------------------------------------------------------------------
|
|
45 |
// ViewListChangedNtf
|
|
46 |
// ----------------------------------------------------------------------------
|
|
47 |
// Purpose:
|
|
48 |
// This notification is used to inform api observer of changed view list
|
|
49 |
//
|
|
50 |
// Message parameters:
|
|
51 |
// - Message id: EHsCcViewListChangedNtf
|
|
52 |
// - Transaction id: None
|
|
53 |
// - Message data: None
|
|
54 |
EHsCcViewListChangedNtf,
|
|
55 |
// ----------------------------------------------------------------------------
|
|
56 |
// AppListChangedNtf
|
|
57 |
// ----------------------------------------------------------------------------
|
|
58 |
// Purpose:
|
|
59 |
// This notification is used to inform api observer of changed application list
|
|
60 |
//
|
|
61 |
// Message parameters:
|
|
62 |
// - Message id: EHsCcAppListChangedNtf
|
|
63 |
// - Transaction id: None
|
|
64 |
// - Message data: None
|
|
65 |
EHsCcAppListChangedNtf,
|
|
66 |
// ----------------------------------------------------------------------------
|
|
67 |
// WidgetListReq
|
|
68 |
// ----------------------------------------------------------------------------
|
|
69 |
// Purpose:
|
|
70 |
// This request is used to get a list of installed Home screen widgets
|
|
71 |
//
|
|
72 |
// Message parameters:
|
|
73 |
// - Message id: EHsCcWidgetListReq
|
|
74 |
// - Transaction id: Unique transaction id
|
|
75 |
// - Message data: None
|
|
76 |
EHsCcWidgetListReq,
|
|
77 |
// ----------------------------------------------------------------------------
|
|
78 |
// WidgetListResp
|
|
79 |
// ----------------------------------------------------------------------------
|
|
80 |
// Purpose:
|
|
81 |
// This response contains the list of installed widgets
|
|
82 |
//
|
|
83 |
// Message parameters:
|
|
84 |
// - Message id: EHsCcWidgetListResp
|
|
85 |
// - Transaction id: Transaction id from corresponding WidgetListReq
|
|
86 |
// - Status: Operation status (Symbian error code)
|
|
87 |
// - Message data: Successful operation: CHsContentInfoArray instance
|
|
88 |
// containing installed widgets
|
|
89 |
// Failed operation: None
|
|
90 |
EHsCcWidgetListResp,
|
|
91 |
// ----------------------------------------------------------------------------
|
|
92 |
// AddWidgetReq
|
|
93 |
// ----------------------------------------------------------------------------
|
|
94 |
// Purpose:
|
|
95 |
// This request is used to add a widget to Home screen
|
|
96 |
//
|
|
97 |
// Message parameters:
|
|
98 |
// - Message id: EHsCcAddWidgetReq
|
|
99 |
// - Transaction id: Unique transaction id
|
|
100 |
// - Message data: CHsContentInfo instance defining the added widget
|
|
101 |
EHsCcAddWidgetReq,
|
|
102 |
// ----------------------------------------------------------------------------
|
|
103 |
// AddWidgetResp
|
|
104 |
// ----------------------------------------------------------------------------
|
|
105 |
// Purpose:
|
|
106 |
// This response contains the status of adding widget
|
|
107 |
//
|
|
108 |
// Message parameters:
|
|
109 |
// - Message id: EHsCcAddWidgetResp
|
|
110 |
// - Transaction id: Transaction id from corresponding AddWidgetReq
|
|
111 |
// - Status: Operation status (Symbian error code)
|
|
112 |
// - Message data: None
|
|
113 |
EHsCcAddWidgetResp,
|
|
114 |
// ----------------------------------------------------------------------------
|
|
115 |
// RemoveWidgetReq
|
|
116 |
// ----------------------------------------------------------------------------
|
|
117 |
// Purpose:
|
|
118 |
// This request is used to remove a widget from Home screen
|
|
119 |
//
|
|
120 |
// Message parameters:
|
|
121 |
// - Message id: EHsCcRemoveWidgetReq
|
|
122 |
// - Transaction id: Unique transaction id
|
|
123 |
// - Message data: CHsContentInfo instance defining the removed widget
|
|
124 |
EHsCcRemoveWidgetReq,
|
|
125 |
// ----------------------------------------------------------------------------
|
|
126 |
// RemoveWidgetResp
|
|
127 |
// ----------------------------------------------------------------------------
|
|
128 |
// Purpose:
|
|
129 |
// This response contains the status of removing widget
|
|
130 |
//
|
|
131 |
// Message parameters:
|
|
132 |
// - Message id: EHsCcRemoveWidgetResp
|
|
133 |
// - Transaction id: Transaction id from corresponding RemoveWidgetReq
|
|
134 |
// - Status: Operation status (Symbian error code)
|
|
135 |
// - Message data: None
|
|
136 |
EHsCcRemoveWidgetResp,
|
|
137 |
// ----------------------------------------------------------------------------
|
|
138 |
// ViewListReq
|
|
139 |
// ----------------------------------------------------------------------------
|
|
140 |
// Purpose:
|
|
141 |
// This request is used to get a list of installed Home screen views
|
|
142 |
//
|
|
143 |
// Message parameters:
|
|
144 |
// - Message id: EHsCcViewListReq
|
|
145 |
// - Transaction id: Unique transaction id
|
|
146 |
// - Message data: None
|
|
147 |
EHsCcViewListReq,
|
|
148 |
// ----------------------------------------------------------------------------
|
|
149 |
// ViewListResp
|
|
150 |
// ----------------------------------------------------------------------------
|
|
151 |
// Purpose:
|
|
152 |
// This response contains the list of installed views
|
|
153 |
//
|
|
154 |
// Message parameters:
|
|
155 |
// - Message id: EHsCcViewListResp
|
|
156 |
// - Transaction id: Transaction id from corresponding ViewListReq
|
|
157 |
// - Status: Operation status (Symbian error code)
|
|
158 |
// - Message data: Successful operation: CHsContentInfoArray instance
|
|
159 |
// containing installed views
|
|
160 |
// Failed operation: None
|
|
161 |
EHsCcViewListResp,
|
|
162 |
// ----------------------------------------------------------------------------
|
|
163 |
// AddViewReq
|
|
164 |
// ----------------------------------------------------------------------------
|
|
165 |
// Purpose:
|
|
166 |
// This request is used to add a view to Home screen
|
|
167 |
//
|
|
168 |
// Message parameters:
|
|
169 |
// - Message id: EHsCcAddViewReq
|
|
170 |
// - Transaction id: Unique transaction id
|
|
171 |
// - Message data: CHsContentInfo instance defining the added view
|
|
172 |
EHsCcAddViewReq,
|
|
173 |
// ----------------------------------------------------------------------------
|
|
174 |
// AddViewResp
|
|
175 |
// ----------------------------------------------------------------------------
|
|
176 |
// Purpose:
|
|
177 |
// This response contains the status of adding view
|
|
178 |
//
|
|
179 |
// Message parameters:
|
|
180 |
// - Message id: EHsCcAddViewResp
|
|
181 |
// - Transaction id: Transaction id from corresponding AddViewReq
|
|
182 |
// - Status: Operation status (Symbian error code)
|
|
183 |
// - Message data: None
|
|
184 |
EHsCcAddViewResp,
|
|
185 |
// ----------------------------------------------------------------------------
|
|
186 |
// RemoveViewReq
|
|
187 |
// ----------------------------------------------------------------------------
|
|
188 |
// Purpose:
|
|
189 |
// This request is used to remove a view from Home screen
|
|
190 |
//
|
|
191 |
// Message parameters:
|
|
192 |
// - Message id: EHsCcRemoveViewReq
|
|
193 |
// - Transaction id: Unique transaction id
|
|
194 |
// - Message data: CHsContentInfo instance defining the removed view
|
|
195 |
EHsCcRemoveViewReq,
|
|
196 |
// ----------------------------------------------------------------------------
|
|
197 |
// RemoveViewResp
|
|
198 |
// ----------------------------------------------------------------------------
|
|
199 |
// Purpose:
|
|
200 |
// This response contains the status of removing view
|
|
201 |
//
|
|
202 |
// Message parameters:
|
|
203 |
// - Message id: EHsCcRemoveViewResp
|
|
204 |
// - Transaction id: Transaction id from corresponding RemoveViewReq
|
|
205 |
// - Status: Operation status (Symbian error code)
|
|
206 |
// - Message data: None
|
|
207 |
EHsCcRemoveViewResp,
|
|
208 |
// ----------------------------------------------------------------------------
|
|
209 |
// ActivateViewReq
|
|
210 |
// ----------------------------------------------------------------------------
|
|
211 |
// Purpose:
|
|
212 |
// This request is used to activate a Home screen view
|
|
213 |
//
|
|
214 |
// Message parameters:
|
|
215 |
// - Message id: EHsCcActivateViewReq
|
|
216 |
// - Transaction id: Unique transaction id
|
|
217 |
// - Message data: CHsContentInfo instance defining the activated view
|
|
218 |
EHsCcActivateViewReq,
|
|
219 |
// ----------------------------------------------------------------------------
|
|
220 |
// ActivateViewResp
|
|
221 |
// ----------------------------------------------------------------------------
|
|
222 |
// Purpose:
|
|
223 |
// This response contains the status of activating view
|
|
224 |
//
|
|
225 |
// Message parameters:
|
|
226 |
// - Message id: EHsCcActivateViewResp
|
|
227 |
// - Transaction id: Transaction id from corresponding ActivateViewReq
|
|
228 |
// - Status: Operation status (Symbian error code)
|
|
229 |
// - Message data: None
|
|
230 |
EHsCcActivateViewResp,
|
|
231 |
// ----------------------------------------------------------------------------
|
|
232 |
// ActiveViewReq
|
|
233 |
// ----------------------------------------------------------------------------
|
|
234 |
// Purpose:
|
|
235 |
// This request is used to get active view configuration
|
|
236 |
//
|
|
237 |
// Message parameters:
|
|
238 |
// - Message id: EHsCcActiveViewReq
|
|
239 |
// - Transaction id: Unique transaction id
|
|
240 |
// - Message data: None
|
|
241 |
EHsCcActiveViewReq,
|
|
242 |
// ----------------------------------------------------------------------------
|
|
243 |
// ActiveViewResp
|
|
244 |
// ----------------------------------------------------------------------------
|
|
245 |
// Purpose:
|
|
246 |
// This response contains the active view configuration
|
|
247 |
//
|
|
248 |
// Message parameters:
|
|
249 |
// - Message id: EHsCcActiveViewResp
|
|
250 |
// - Transaction id: Transaction id from corresponding ActiveViewReq
|
|
251 |
// - Status: Operation status (Symbian error code)
|
|
252 |
// - Message data: Successful operation: CHsContentInfo instance defining the
|
|
253 |
// active view configuration
|
|
254 |
// Failed operation: None
|
|
255 |
EHsCcActiveViewResp,
|
|
256 |
// ----------------------------------------------------------------------------
|
|
257 |
// AppListReq
|
|
258 |
// ----------------------------------------------------------------------------
|
|
259 |
// Purpose:
|
|
260 |
// This request is used to get a list of installed Home screen application
|
|
261 |
// configurations
|
|
262 |
//
|
|
263 |
// Message parameters:
|
|
264 |
// - Message id: EHsCcAppListReq
|
|
265 |
// - Transaction id: Unique transaction id
|
|
266 |
// - Message data: None
|
|
267 |
EHsCcAppListReq,
|
|
268 |
// ----------------------------------------------------------------------------
|
|
269 |
// AppListResp
|
|
270 |
// ----------------------------------------------------------------------------
|
|
271 |
// Purpose:
|
|
272 |
// This response contains the list of installed application configurations
|
|
273 |
//
|
|
274 |
// Message parameters:
|
|
275 |
// - Message id: EHsCcAppListResp
|
|
276 |
// - Transaction id: Transaction id from corresponding AppListReq
|
|
277 |
// - Status: Operation status (Symbian error code)
|
|
278 |
// - Message data: Successful operation: CHsContentInfoArray instance
|
|
279 |
// containing installed application configurations
|
|
280 |
// Failed operation: None
|
|
281 |
EHsCcAppListResp,
|
|
282 |
// ----------------------------------------------------------------------------
|
|
283 |
// ActivateAppReq
|
|
284 |
// ----------------------------------------------------------------------------
|
|
285 |
// Purpose:
|
|
286 |
// This request is used to activate a Home screen application configuration
|
|
287 |
//
|
|
288 |
// Message parameters:
|
|
289 |
// - Message id: EHsCcActivateAppReq
|
|
290 |
// - Transaction id: Unique transaction id
|
|
291 |
// - Message data: CHsContentInfo instance defining the activated application
|
|
292 |
// configuration
|
|
293 |
EHsCcActivateAppReq,
|
|
294 |
// ----------------------------------------------------------------------------
|
|
295 |
// ActivateAppResp
|
|
296 |
// ----------------------------------------------------------------------------
|
|
297 |
// Purpose:
|
|
298 |
// This response contains the status of activating application configuration
|
|
299 |
//
|
|
300 |
// Message parameters:
|
|
301 |
// - Message id: EHsCcActivateAppResp
|
|
302 |
// - Transaction id: Transaction id from corresponding ActivateAppReq
|
|
303 |
// - Status: Operation status (Symbian error code)
|
|
304 |
// - Message data: None
|
|
305 |
EHsCcActivateAppResp,
|
|
306 |
// ----------------------------------------------------------------------------
|
|
307 |
// ActiveAppReq
|
|
308 |
// ----------------------------------------------------------------------------
|
|
309 |
// Purpose:
|
|
310 |
// This request is used to get active application configuration
|
|
311 |
//
|
|
312 |
// Message parameters:
|
|
313 |
// - Message id: EHsCcActivateAppReq
|
|
314 |
// - Transaction id: Unique transaction id
|
|
315 |
// - Message data: None
|
|
316 |
EHsCcActiveAppReq,
|
|
317 |
// ----------------------------------------------------------------------------
|
|
318 |
// ActiveAppResp
|
|
319 |
// ----------------------------------------------------------------------------
|
|
320 |
// Purpose:
|
|
321 |
// This response contains the active application configuration
|
|
322 |
//
|
|
323 |
// Message parameters:
|
|
324 |
// - Message id: EHsCcActiveAppResp
|
|
325 |
// - Transaction id: Transaction id from corresponding ActiveAppReq
|
|
326 |
// - Status: Operation status (Symbian error code)
|
|
327 |
// - Message data: Successful operation: CHsContentInfo instance defining the
|
|
328 |
// active application configuration
|
|
329 |
// Failed operation: None
|
|
330 |
EHsCcActiveAppResp,
|
|
331 |
// ----------------------------------------------------------------------------
|
|
332 |
// NotSupportedResp
|
|
333 |
// ----------------------------------------------------------------------------
|
|
334 |
// Purpose:
|
|
335 |
// This request is used to get a list of installed Home screen widgets
|
|
336 |
//
|
|
337 |
// Message parameters:
|
|
338 |
// - Message id: EHsCcNotSupportedResp
|
|
339 |
// - Transaction id: Transaction id from corresponding not supported request
|
|
340 |
// - Status: Operation status KErrNotSupported
|
|
341 |
// - Message data: None
|
|
342 |
EHsCcNotSupportedResp
|
|
343 |
};
|
|
344 |
|
|
345 |
#endif // HSCCAPI_H
|
|
346 |
|
|
347 |
// End of file
|