1 /* |
|
2 * Copyright (c) 2005-2006 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: Resource definitions for project DefaultApp Server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <avkon.rh> |
|
20 #include <avkon.rsg> |
|
21 #include <avkon.hrh> |
|
22 #include <avkon.loc> |
|
23 #include <avkon.mbg> |
|
24 |
|
25 #include <eikon.rh> |
|
26 #include <eikon.rsg> |
|
27 |
|
28 #include <uikon.rh> |
|
29 |
|
30 #include <bldvariant.hrh> |
|
31 |
|
32 #include <appinfo.rh>//localisable app info |
|
33 #include <data_caging_paths_strings.hrh> |
|
34 |
|
35 #include <services_db.rh> |
|
36 #include "das_gsentries.rh" |
|
37 #include "das.hrh" |
|
38 #include <defaultappserver.loc> |
|
39 #include <services_db.loc> |
|
40 |
|
41 NAME DFAP |
|
42 RESOURCE RSS_SIGNATURE { } |
|
43 RESOURCE TBUF { buf=""; } |
|
44 |
|
45 |
|
46 |
|
47 // --------------------------------------------------------- |
|
48 // Define default menu and CBA key. |
|
49 // --------------------------------------------------------- |
|
50 // |
|
51 RESOURCE EIK_APP_INFO |
|
52 { |
|
53 menubar=r_das_menubar; |
|
54 cba = r_das_softkeys_options_back__change;//R_AVKON_SOFTKEYS_OPTIONS_BACK; |
|
55 } |
|
56 |
|
57 // --------------------------------------------------------- |
|
58 // r_das_menubar |
|
59 // Menubar for Default App Server |
|
60 // --------------------------------------------------------- |
|
61 // |
|
62 RESOURCE MENU_BAR r_das_menubar |
|
63 { |
|
64 titles= |
|
65 { |
|
66 MENU_TITLE |
|
67 { |
|
68 menu_pane = r_das_menu; |
|
69 } |
|
70 }; |
|
71 } |
|
72 |
|
73 // --------------------------------------------------------------------------- |
|
74 // r_das_menu |
|
75 // Menu for Options |
|
76 // --------------------------------------------------------------------------- |
|
77 // |
|
78 RESOURCE MENU_PANE r_das_menu |
|
79 { |
|
80 items= |
|
81 { |
|
82 MENU_ITEM |
|
83 { |
|
84 flags = EEikMenuItemAction; |
|
85 command = EAknCmdOpen; |
|
86 txt = qtn_options_change; |
|
87 }, |
|
88 MENU_ITEM |
|
89 { |
|
90 command = EAknCmdFindPopupActivated; |
|
91 txt = qtn_options_find; |
|
92 }, |
|
93 MENU_ITEM |
|
94 { |
|
95 command = EDasCmdAdvanced; |
|
96 txt = qtn_options_advanced; |
|
97 }, |
|
98 MENU_ITEM |
|
99 { |
|
100 cascade = r_das_menu_original_settings; |
|
101 txt = qtn_da_options_reset; |
|
102 }, |
|
103 MENU_ITEM |
|
104 { |
|
105 command = EAknCmdHelp; |
|
106 txt = qtn_options_help; |
|
107 }, |
|
108 MENU_ITEM |
|
109 { |
|
110 command = EAknCmdExit; |
|
111 txt = qtn_options_exit; |
|
112 } |
|
113 }; |
|
114 } |
|
115 |
|
116 // --------------------------------------------------------------------------- |
|
117 // r_das_menu_factory_settings |
|
118 // Sub-menu for Factory settings |
|
119 // This contains one item, but additional items will be added to it |
|
120 // --------------------------------------------------------------------------- |
|
121 // |
|
122 RESOURCE MENU_PANE r_das_menu_original_settings |
|
123 { |
|
124 items = |
|
125 { |
|
126 MENU_ITEM |
|
127 { |
|
128 command = EDasCmdResetSelected; |
|
129 txt = qtn_da_options_reset_selected; |
|
130 flags = EEikMenuItemSpecific; |
|
131 }, |
|
132 MENU_ITEM |
|
133 { |
|
134 command = EDasCmdResetAll; |
|
135 txt = qtn_da_options_reset_all; |
|
136 } |
|
137 }; |
|
138 } |
|
139 |
|
140 // --------------------------------------------------------------------------- |
|
141 // r_das_servicesmimes_listbox |
|
142 // Listbox for the Services & MIMEs |
|
143 // --------------------------------------------------------------------------- |
|
144 // |
|
145 RESOURCE LISTBOX r_das_servicesmimes_listbox |
|
146 { |
|
147 flags = EAknListBoxSelectionList; |
|
148 } |
|
149 |
|
150 // --------------------------------------------------------------------------- |
|
151 // r_da_title_app |
|
152 // Application title |
|
153 // --------------------------------------------------------------------------- |
|
154 // |
|
155 RESOURCE TBUF r_da_title_app |
|
156 { |
|
157 buf = qtn_da_title_app; |
|
158 } |
|
159 |
|
160 // --------------------------------------------------------------------------- |
|
161 // r_da_title_main |
|
162 // Main view title |
|
163 // --------------------------------------------------------------------------- |
|
164 // |
|
165 RESOURCE TBUF r_da_title_main |
|
166 { |
|
167 buf = qtn_da_title_main; |
|
168 } |
|
169 |
|
170 // --------------------------------------------------------------------------- |
|
171 // r_da_title_popup_adv |
|
172 // Advanced settings |
|
173 // --------------------------------------------------------------------------- |
|
174 // |
|
175 RESOURCE TBUF r_da_title_advanced |
|
176 { |
|
177 buf = qtn_da_title_advanced; |
|
178 } |
|
179 |
|
180 |
|
181 |
|
182 |
|
183 // resources for the simplified view |
|
184 |
|
185 |
|
186 // --------------------------------------------------------------------------- |
|
187 // r_da_tasks |
|
188 // This is the list of tasks. For each task, there are 3 items: |
|
189 // -the task name (this will be shown in the list) |
|
190 // -the MIME label (the selected default application for the task will be set as default for Open and this MIME) |
|
191 // -a list of Services & MIMEs that belong to the task: all applications that can handle at least one Service & MIME |
|
192 // from the list, may become defaults for the task (however, only for the Services & MIMEs the application supports). |
|
193 // --------------------------------------------------------------------------- |
|
194 // |
|
195 RESOURCE DAS_GS_TASKS r_da_tasks |
|
196 { |
|
197 tasks= |
|
198 { |
|
199 DAS_GS_TASK_ENTRY |
|
200 { |
|
201 task_name = qtn_da_main_browse; |
|
202 //USE_TASK_TITLE |
|
203 task_title = qtn_da_title_popup_browse; |
|
204 |
|
205 mime_label = "application/x-web-browse"; |
|
206 service_mimes = |
|
207 { |
|
208 DAS_SERVICE_MIME |
|
209 { service_uid = 0x10208DCA; mime = "text/html"; } |
|
210 }; |
|
211 }, //browse web task |
|
212 DAS_GS_TASK_ENTRY |
|
213 { |
|
214 task_name = qtn_da_main_play_music; |
|
215 // |
|
216 task_title = qtn_da_title_popup_music; |
|
217 |
|
218 mime_label = "application/x-audio-play"; |
|
219 service_mimes = |
|
220 { |
|
221 DAS_SERVICE_MIME |
|
222 { service_uid = 0x10208DCA; mime = "audio/mp3"; }, |
|
223 DAS_SERVICE_MIME |
|
224 { service_uid = 0x10208DCA; mime = "audio/mpeg"; }, |
|
225 DAS_SERVICE_MIME |
|
226 { service_uid = 0x10208DCA; mime = "audio/x-mp3"; }, |
|
227 DAS_SERVICE_MIME |
|
228 { service_uid = 0x10208DCA; mime = "audio/mpegurl"; }, |
|
229 DAS_SERVICE_MIME |
|
230 { service_uid = 0x10208DCA; mime = "audio/x-mpegurl"; }, |
|
231 DAS_SERVICE_MIME |
|
232 { service_uid = 0x10208DCA; mime = "audio/3gpp"; }, |
|
233 DAS_SERVICE_MIME |
|
234 { service_uid = 0x10208DCA; mime = "audio/3gpp2"; }, |
|
235 DAS_SERVICE_MIME |
|
236 { service_uid = 0x10208DCA; mime = "audio/mp4"; }, |
|
237 DAS_SERVICE_MIME |
|
238 { service_uid = 0x10208DCA; mime = "audio/aac"; }, |
|
239 DAS_SERVICE_MIME |
|
240 { service_uid = 0x10208DCA; mime = "audio/basic"; }, |
|
241 DAS_SERVICE_MIME |
|
242 { service_uid = 0x10208DCA; mime = "audio/amr"; }, |
|
243 DAS_SERVICE_MIME |
|
244 { service_uid = 0x10208DCA; mime = "audio/amr-wb"; }, |
|
245 DAS_SERVICE_MIME |
|
246 { service_uid = 0x10208DCA; mime = "audio/awb"; }, |
|
247 DAS_SERVICE_MIME |
|
248 { service_uid = 0x10208DCA; mime = "audio/x-amr"; }, |
|
249 DAS_SERVICE_MIME |
|
250 { service_uid = 0x10208DCA; mime = "audio/x-epoc-wve"; }, |
|
251 DAS_SERVICE_MIME |
|
252 { service_uid = 0x10208DCA; mime = "audio/x-sibo-wve"; }, |
|
253 DAS_SERVICE_MIME |
|
254 { service_uid = 0x10208DCA; mime = "audio/wav"; }, |
|
255 DAS_SERVICE_MIME |
|
256 { service_uid = 0x10208DCA; mime = "audio/x-wav"; }, |
|
257 DAS_SERVICE_MIME |
|
258 { service_uid = 0x10208DCA; mime = "audio/x-au"; }, |
|
259 DAS_SERVICE_MIME |
|
260 { service_uid = 0x10208DCA; mime = "audio/au"; }, |
|
261 // SERIES 60 MIDI |
|
262 DAS_SERVICE_MIME |
|
263 { service_uid = 0x10208DCA; mime = "audio/x-midi"; }, |
|
264 DAS_SERVICE_MIME |
|
265 { service_uid = 0x10208DCA; mime = "audio/midi"; }, |
|
266 DAS_SERVICE_MIME |
|
267 { service_uid = 0x10208DCA; mime = "audio/sp-midi"; }, |
|
268 DAS_SERVICE_MIME |
|
269 { service_uid = 0x10208DCA; mime = "audio/x-beatnik-rmf"; }, |
|
270 DAS_SERVICE_MIME |
|
271 { service_uid = 0x10208DCA; mime = "audio/x-rmf"; }, |
|
272 DAS_SERVICE_MIME |
|
273 { service_uid = 0x10208DCA; mime = "audio/rmf"; }, |
|
274 DAS_SERVICE_MIME |
|
275 { service_uid = 0x10208DCA; mime = "audio/mobile-xmf"; }, |
|
276 DAS_SERVICE_MIME |
|
277 { service_uid = 0x10208DCA; mime = "audio/vnd.nokia.mobile-xmf"; }, |
|
278 //qcelp |
|
279 DAS_SERVICE_MIME |
|
280 { service_uid = 0x10208DCA; mime = "audio/qcelp"; }, |
|
281 DAS_SERVICE_MIME |
|
282 { service_uid = 0x10208DCA; mime = "audio/vnd.qcelp"; }, |
|
283 //wma |
|
284 DAS_SERVICE_MIME |
|
285 { service_uid = 0x10208DCA; mime = "audio/x-ms-wma"; } |
|
286 //real audio (probably with system priority in the system) |
|
287 /* |
|
288 * Real Audio is commented out because leaving it here would be confusing for users: |
|
289 * If Real Audio is uncommented below, both Music Player and RealPlayer will be listed |
|
290 * as handling music. However, the Music Player can not handle the Real Audio MIMEs |
|
291 * (it can handle most of the MIMEs above this comment). The RealPlayer can only handle |
|
292 * the RealAudio MIMEs (commented here). So there is no overlapping between the 2 players. |
|
293 * This would mean that whatever the client choses as the default player between these 2, |
|
294 * they will still continue to play media as before. E.g. all mp3s, WMAs, AACs will be |
|
295 * played with the MediaPlayer even if RealPlayer is chosed as default audio player. |
|
296 * |
|
297 DAS_SERVICE_MIME |
|
298 { service_uid = 0x10208DCA; mime = "audio/vnd.rn-realaudio"; }, |
|
299 DAS_SERVICE_MIME |
|
300 { service_uid = 0x10208DCA; mime = "audio/x-pn-realaudio-plugin"; }, |
|
301 DAS_SERVICE_MIME |
|
302 { service_uid = 0x10208DCA; mime = "audio/x-pn-realaudio"; } |
|
303 */ |
|
304 }; |
|
305 }, //play music task |
|
306 DAS_GS_TASK_ENTRY |
|
307 { |
|
308 task_name = qtn_da_main_play_videos; |
|
309 //USE_TASK_TITLE |
|
310 task_title = qtn_da_title_popup_video; |
|
311 |
|
312 mime_label = "application/x-video-play"; |
|
313 service_mimes = |
|
314 { |
|
315 DAS_SERVICE_MIME |
|
316 { service_uid = 0x10208DCA; mime = "video/3gpp"; }, |
|
317 DAS_SERVICE_MIME |
|
318 { service_uid = 0x10208DCA; mime = "video/3gpp2"; }, |
|
319 DAS_SERVICE_MIME |
|
320 { service_uid = 0x10208DCA; mime = "video/mpeg4"; }, |
|
321 DAS_SERVICE_MIME |
|
322 { service_uid = 0x10208DCA; mime = "video/mp4"; }, |
|
323 DAS_SERVICE_MIME |
|
324 { service_uid = 0x10208DCA; mime = "application/sdp"; }, |
|
325 //following MIMEs are probably system priority in the platform player |
|
326 DAS_SERVICE_MIME |
|
327 { service_uid = 0x10208DCA; mime = "video/vnd.rn-realvideo"; }, |
|
328 DAS_SERVICE_MIME |
|
329 { service_uid = 0x10208DCA; mime = "application/vnd.rn-realmedia"; }, |
|
330 DAS_SERVICE_MIME |
|
331 { service_uid = 0x10208DCA; mime = "application/x-pn-realmedia"; } |
|
332 }; |
|
333 }, //play videos task |
|
334 DAS_GS_TASK_ENTRY |
|
335 { |
|
336 task_name = qtn_da_main_view_images; |
|
337 //USE_TASK_TITLE |
|
338 task_title = qtn_da_title_popup_image; |
|
339 |
|
340 mime_label = "application/x-image-view"; |
|
341 service_mimes = |
|
342 { |
|
343 DAS_SERVICE_MIME |
|
344 { service_uid = 0x10208DCA; mime = "image/jpeg"; }, |
|
345 DAS_SERVICE_MIME |
|
346 { service_uid = 0x10208DCA; mime = "image/jpg"; }, |
|
347 DAS_SERVICE_MIME |
|
348 { service_uid = 0x10208DCA; mime = "image/jp2"; }, |
|
349 DAS_SERVICE_MIME |
|
350 { service_uid = 0x10208DCA; mime = "image/tiff"; }, |
|
351 DAS_SERVICE_MIME |
|
352 { service_uid = 0x10208DCA; mime = "image/x-wmf"; }, |
|
353 DAS_SERVICE_MIME |
|
354 { service_uid = 0x10208DCA; mime = "image/ico"; }, |
|
355 DAS_SERVICE_MIME |
|
356 { service_uid = 0x10208DCA; mime = "image/gif"; }, |
|
357 DAS_SERVICE_MIME |
|
358 { service_uid = 0x10208DCA; mime = "image/bmp"; }, |
|
359 DAS_SERVICE_MIME |
|
360 { service_uid = 0x10208DCA; mime = "image/x-bmp"; }, |
|
361 DAS_SERVICE_MIME |
|
362 { service_uid = 0x10208DCA; mime = "image/x-bitmap"; }, |
|
363 DAS_SERVICE_MIME |
|
364 { service_uid = 0x10208DCA; mime = "image/x-xbitmap"; }, |
|
365 DAS_SERVICE_MIME |
|
366 { service_uid = 0x10208DCA; mime = "image/x-win-bitmap"; }, |
|
367 DAS_SERVICE_MIME |
|
368 { service_uid = 0x10208DCA; mime = "image/x-windows-bmp"; }, |
|
369 DAS_SERVICE_MIME |
|
370 { service_uid = 0x10208DCA; mime = "image/ms-bmp"; }, |
|
371 DAS_SERVICE_MIME |
|
372 { service_uid = 0x10208DCA; mime = "image/x-ms-bmp"; }, |
|
373 DAS_SERVICE_MIME |
|
374 { service_uid = 0x10208DCA; mime = "image/vnd.wap.wbmp"; }, |
|
375 DAS_SERVICE_MIME |
|
376 { service_uid = 0x10208DCA; mime = "image/png"; }, |
|
377 DAS_SERVICE_MIME |
|
378 { service_uid = 0x10208DCA; mime = "image/x-epoc-mbm"; }, |
|
379 DAS_SERVICE_MIME |
|
380 { service_uid = 0x10208DCA; mime = "image/vnd.nokia.ota-bitmap"; }, |
|
381 DAS_SERVICE_MIME |
|
382 { service_uid = 0x10208DCA; mime = "image/x-ota-bitmap"; } |
|
383 }; |
|
384 } //view images task |
|
385 }; //tasks |
|
386 } |
|
387 |
|
388 |
|
389 // --------------------------------------------------------------------------- |
|
390 // r_defaultappserver_localisable_app_info |
|
391 // Localisable app info |
|
392 // --------------------------------------------------------------------------- |
|
393 // |
|
394 RESOURCE LOCALISABLE_APP_INFO r_defaultappserver_localisable_app_info |
|
395 { |
|
396 short_caption = qtn_da_title_app; |
|
397 caption_and_icon = |
|
398 CAPTION_AND_ICON_INFO |
|
399 { |
|
400 caption = qtn_da_title_app; |
|
401 }; |
|
402 } |
|
403 |
|
404 RESOURCE CBA r_das_softkeys_options_back__change |
|
405 { |
|
406 buttons = |
|
407 { |
|
408 CBA_BUTTON {id=EAknSoftkeyOptions; txt=text_softkey_option;}, |
|
409 CBA_BUTTON {id=EAknSoftkeyBack; txt=text_softkey_back;}, |
|
410 CBA_BUTTON {id=EAknCmdOpen; txt=qtn_msk_change;} |
|
411 }; |
|
412 } |
|
413 |
|
414 RESOURCE DIALOG r_das_dlg |
|
415 { |
|
416 flags = EAknDialogSelectionList | EEikDialogFlagNotifyEsc; |
|
417 |
|
418 buttons = r_das_softkeys_options_back__change; |
|
419 items = |
|
420 { |
|
421 DLG_LINE |
|
422 { |
|
423 type = EAknCtDoubleListBox; |
|
424 |
|
425 id = ESelectionListControl; |
|
426 control = LISTBOX |
|
427 { |
|
428 flags = EAknListBoxSelectionList; |
|
429 }; |
|
430 }, |
|
431 DLG_LINE |
|
432 { |
|
433 itemflags = EEikDlgItemNonFocusing; |
|
434 id = EFindControl; |
|
435 type = EAknCtSelectionListPopupFind; |
|
436 } |
|
437 }; |
|
438 } |
|
439 |
|
440 // --------------------------------------------------------------------------- |
|
441 // r_da_services_mime |
|
442 // This resource stores localized strings for the supported services, identified |
|
443 // by their Uid and generic name. |
|
444 // This resource is defined in the services_db.rh file |
|
445 // --------------------------------------------------------------------------- |
|
446 // |
|
447 RESOURCE DAS_SERVICES r_da_service_mime |
|
448 { |
|
449 services = |
|
450 { |
|
451 DAS_SERVICE_ENTRY |
|
452 { |
|
453 service_uid = 0x10208DCA; //KOpenServiceUid |
|
454 service_name = "Open"; |
|
455 service_localized_name = qtn_da_service_open; |
|
456 } |
|
457 }; |
|
458 } |
|
459 |
|
460 |
|