|
1 /* |
|
2 * Copyright (c) 2006-2010 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 file for Presence Settings UI GS plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // RESOURCE IDENTIFIER |
|
22 NAME UIPS // 4 letter ID |
|
23 |
|
24 // INCLUDES |
|
25 #include <bldvariant.hrh> |
|
26 #include <avkon.rh> |
|
27 #include <avkon.hrh> |
|
28 #include <avkon.rsg> |
|
29 #include <avkon.mbg> |
|
30 #include <EIKCORE.RSG> |
|
31 #include <eikon.rh> |
|
32 #include <eikon.rsg> |
|
33 #include <avkon.loc> |
|
34 #include <gscommon.rh> // Common GS resource structures |
|
35 #include <data_caging_paths_strings.hrh> |
|
36 #include <psuigsplugin.loc> |
|
37 #include "psuigsplugin.hrh" |
|
38 |
|
39 // CONSTANTS |
|
40 #define KPSUICompulsoryChar "*" |
|
41 #define KPSUIMaxServerNameLength 100 |
|
42 #define KPSUIURILength 255 |
|
43 #define KPSUIMaxObjectSize 999999999 |
|
44 #define KPSUIObjectSizeEditorLength 9 |
|
45 #define KPSUIPublIntervalEditorLength 6 |
|
46 #define KPSUISubscriptionsEditorLength 4 |
|
47 |
|
48 // RESOURCE DEFINITIONS |
|
49 |
|
50 // --------------------------------------------------------------------------- |
|
51 // RSS_SIGNATURE |
|
52 // --------------------------------------------------------------------------- |
|
53 // |
|
54 RESOURCE RSS_SIGNATURE {} |
|
55 |
|
56 // --------------------------------------------------------------------------- |
|
57 // r_psui_mainview_menubar - menubar |
|
58 // Settings mainview's titles |
|
59 // --------------------------------------------------------------------------- |
|
60 // |
|
61 RESOURCE MENU_BAR r_psui_mainview_menubar |
|
62 { |
|
63 titles = |
|
64 { |
|
65 MENU_TITLE { menu_pane = r_psui_mainview_menupane; } |
|
66 }; |
|
67 } |
|
68 |
|
69 // --------------------------------------------------------------------------- |
|
70 // r_psui_mainview_menupane - menupane |
|
71 // Settings mainview's menuitems |
|
72 // --------------------------------------------------------------------------- |
|
73 // |
|
74 RESOURCE MENU_PANE r_psui_mainview_menupane |
|
75 { |
|
76 items = |
|
77 { |
|
78 MENU_ITEM |
|
79 { |
|
80 command = EPSUICmdEdit; |
|
81 txt = qtn_presence_settings_edit; |
|
82 flags = EEikMenuItemAction; |
|
83 }, |
|
84 MENU_ITEM |
|
85 { |
|
86 command = EPSUICmdNewSettings; |
|
87 txt = qtn_presence_settings_new; |
|
88 cascade = r_psui_newsettings_menu; |
|
89 }, |
|
90 MENU_ITEM |
|
91 { |
|
92 command = EPSUICmdDelete; |
|
93 txt = qtn_presence_settings_delete; |
|
94 }, |
|
95 MENU_ITEM |
|
96 { |
|
97 command = EAknCmdHelp; |
|
98 txt = qtn_options_help; |
|
99 }, |
|
100 MENU_ITEM |
|
101 { |
|
102 command = EAknCmdExit; |
|
103 txt = qtn_options_exit; |
|
104 } |
|
105 }; |
|
106 } |
|
107 |
|
108 // --------------------------------------------------------------------------- |
|
109 // r_psui_newsettings_menu - titlepane |
|
110 // Settings mainview's menuitems in New Settings cascade menu |
|
111 // --------------------------------------------------------------------------- |
|
112 // |
|
113 RESOURCE MENU_PANE r_psui_newsettings_menu |
|
114 { |
|
115 items = |
|
116 { |
|
117 MENU_ITEM |
|
118 { |
|
119 command = EPSUICmdNewSettingsDefault; |
|
120 txt = qtn_presence_settings_new_default; |
|
121 }, |
|
122 MENU_ITEM |
|
123 { |
|
124 command = EPSUICmdNewSettingsExisting; |
|
125 txt = qtn_presence_settings_new_existing; |
|
126 } |
|
127 }; |
|
128 } |
|
129 |
|
130 // --------------------------------------------------------------------------- |
|
131 // r_psui_mainview_title - titlepane |
|
132 // Settings mainview's title |
|
133 // --------------------------------------------------------------------------- |
|
134 // |
|
135 RESOURCE TITLE_PANE r_psui_mainview_title |
|
136 { |
|
137 txt = qtn_presence_settings_title; |
|
138 } |
|
139 |
|
140 // --------------------------------------------------------------------------- |
|
141 // r_psui_main_view - view |
|
142 // Settings mainview's menubar and command button area definitions |
|
143 // --------------------------------------------------------------------------- |
|
144 // |
|
145 RESOURCE AVKON_VIEW r_psui_main_view |
|
146 { |
|
147 menubar = r_psui_mainview_menubar; |
|
148 cba = r_psui_mainview_softkeys; |
|
149 } |
|
150 |
|
151 // --------------------------------------------------------------------------- |
|
152 // r_psui_mainview_softkeys - cba |
|
153 // Settings mainview's command button area definitions |
|
154 // --------------------------------------------------------------------------- |
|
155 // |
|
156 RESOURCE CBA r_psui_mainview_softkeys |
|
157 { |
|
158 flags = 0; |
|
159 buttons = |
|
160 { |
|
161 CBA_BUTTON {id=EAknSoftkeyOptions; txt= text_softkey_option;}, |
|
162 CBA_BUTTON {id=EAknSoftkeyBack; txt= text_softkey_back;}, |
|
163 CBA_BUTTON {id=EPSUICmdEdit; txt= qtn_msk_edit ;} |
|
164 }; |
|
165 } |
|
166 |
|
167 // --------------------------------------------------------------------------- |
|
168 // r_psui_setting_view - view |
|
169 // Setting view's menubar and command button area definitions |
|
170 // --------------------------------------------------------------------------- |
|
171 // |
|
172 RESOURCE AVKON_VIEW r_psui_setting_view |
|
173 { |
|
174 menubar = r_psui_settingview_menubar; |
|
175 cba = r_psui_settingview_softkeys; |
|
176 } |
|
177 |
|
178 // --------------------------------------------------------------------------- |
|
179 // r_psui_settingview_softkeys - cba |
|
180 // Settings mainview's command button area definitions |
|
181 // --------------------------------------------------------------------------- |
|
182 // |
|
183 RESOURCE CBA r_psui_settingview_softkeys |
|
184 { |
|
185 flags = 0; |
|
186 buttons = |
|
187 { |
|
188 CBA_BUTTON {id=EAknSoftkeyOptions; txt= text_softkey_option;}, |
|
189 CBA_BUTTON {id=EAknSoftkeyBack; txt= text_softkey_back;}, |
|
190 CBA_BUTTON {id=EPSUICmdChange; txt= qtn_msk_change ;} |
|
191 }; |
|
192 } |
|
193 |
|
194 // --------------------------------------------------------------------------- |
|
195 // r_psui_settingview_menubar - menubar |
|
196 // Settingview's titles |
|
197 // --------------------------------------------------------------------------- |
|
198 // |
|
199 RESOURCE MENU_BAR r_psui_settingview_menubar |
|
200 { |
|
201 titles = |
|
202 { |
|
203 MENU_TITLE { menu_pane = r_psui_settingview_menupane; } |
|
204 }; |
|
205 } |
|
206 |
|
207 // --------------------------------------------------------------------------- |
|
208 // r_psui_settingview_menupane - menupane |
|
209 // Settingview's menuitems |
|
210 // --------------------------------------------------------------------------- |
|
211 // |
|
212 RESOURCE MENU_PANE r_psui_settingview_menupane |
|
213 { |
|
214 items = |
|
215 { |
|
216 MENU_ITEM |
|
217 { |
|
218 command = EPSUICmdChange; |
|
219 txt = qtn_presence_settings_change; |
|
220 flags = EEikMenuItemAction; |
|
221 }, |
|
222 MENU_ITEM |
|
223 { |
|
224 command = EAknCmdHelp; |
|
225 txt = qtn_options_help; |
|
226 }, |
|
227 MENU_ITEM |
|
228 { |
|
229 command = EEikCmdExit; |
|
230 txt = qtn_options_exit; |
|
231 } |
|
232 }; |
|
233 } |
|
234 |
|
235 // --------------------------------------------------------------------------- |
|
236 // r_psui_setting_items - AVKON_SETTING_ITEM_LIST |
|
237 // Setting items for presence settings |
|
238 // --------------------------------------------------------------------------- |
|
239 // |
|
240 RESOURCE AVKON_SETTING_ITEM_LIST r_psui_setting_items |
|
241 { |
|
242 items = |
|
243 { |
|
244 AVKON_SETTING_ITEM |
|
245 { |
|
246 identifier = EPSUIServerNameId; |
|
247 setting_page_resource = r_psui_server_name_setting_page; |
|
248 name = qtn_presence_settings_name; |
|
249 compulsory_ind_string = KPSUICompulsoryChar; |
|
250 empty_item_text = qtn_selec_setting_compulsory; |
|
251 }, |
|
252 AVKON_SETTING_ITEM |
|
253 { |
|
254 identifier = EPSUISIPProfileId; |
|
255 setting_page_resource = r_radiobutton_setting_page; |
|
256 name = qtn_presence_settings_sip_profile; |
|
257 compulsory_ind_string = KPSUICompulsoryChar; |
|
258 empty_item_text = qtn_selec_setting_compulsory; |
|
259 }, |
|
260 AVKON_SETTING_ITEM |
|
261 { |
|
262 identifier = EPSUIXDMSettingsId; |
|
263 setting_page_resource = r_radiobutton_setting_page; |
|
264 name = qtn_presence_settings_xdm_settings; |
|
265 }, |
|
266 AVKON_SETTING_ITEM |
|
267 { |
|
268 identifier = EPSUIObjectSizeId; |
|
269 setting_page_resource = r_psui_object_size_setting_page; |
|
270 name = qtn_presence_settings_object_size; |
|
271 compulsory_ind_string = KPSUICompulsoryChar; |
|
272 empty_item_text = qtn_selec_setting_compulsory; |
|
273 }, |
|
274 /* server address disabled |
|
275 AVKON_SETTING_ITEM |
|
276 { |
|
277 identifier = EPSUIServerAddrId; |
|
278 setting_page_resource = r_psui_server_addr_setting_page; |
|
279 name = qtn_presence_settings_url; |
|
280 },*/ |
|
281 AVKON_SETTING_ITEM |
|
282 { |
|
283 identifier = EPSUIPublishingIntervalId; |
|
284 setting_page_resource = r_psui_publ_interval_setting_page; |
|
285 name = qtn_presence_settings_time_interval; |
|
286 }, |
|
287 AVKON_SETTING_ITEM |
|
288 { |
|
289 identifier = EPSUIMaxSubscriptionsId; |
|
290 setting_page_resource = r_psui_subscriptions_setting_page; |
|
291 name = qtn_presence_settings_number_subscriptions; |
|
292 }, |
|
293 AVKON_SETTING_ITEM |
|
294 { |
|
295 identifier = EPSUIMaxContactsInListId; |
|
296 setting_page_resource = r_psui_subscriptions_list_setting_page; |
|
297 name = qtn_presence_settings_number_subsc_lists; |
|
298 }, |
|
299 AVKON_SETTING_ITEM |
|
300 { |
|
301 identifier = EPSUIDomainSyntaxId; |
|
302 setting_page_resource = r_psui_domain_syntax_setting_page; |
|
303 name = qtn_presence_settings_domain; |
|
304 compulsory_ind_string = KPSUICompulsoryChar; |
|
305 empty_item_text = qtn_selec_setting_compulsory; |
|
306 } |
|
307 }; |
|
308 } |
|
309 |
|
310 // --------------------------------------------------------------------------- |
|
311 // r_psui_server_name_setting_page |
|
312 // --------------------------------------------------------------------------- |
|
313 RESOURCE AVKON_SETTING_PAGE r_psui_server_name_setting_page |
|
314 { |
|
315 label= qtn_presence_settings_name; |
|
316 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
317 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
318 type = EEikCtEdwin; |
|
319 editor_resource_id = r_psui_server_name_editor; |
|
320 } |
|
321 |
|
322 RESOURCE EDWIN r_psui_server_name_editor |
|
323 { |
|
324 flags = EEikEdwinNoLineOrParaBreaks; |
|
325 width = 0; |
|
326 lines = 0; |
|
327 maxlength = KPSUIMaxServerNameLength; |
|
328 } |
|
329 |
|
330 // --------------------------------------------------------------------------- |
|
331 // r_radiobutton_setting_page |
|
332 // --------------------------------------------------------------------------- |
|
333 RESOURCE AVKON_SETTING_PAGE r_radiobutton_setting_page |
|
334 { |
|
335 number = EAknSettingPageNoOrdinalDisplayed; |
|
336 label = qtn_presence_settings_sip_profile; |
|
337 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
338 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
339 type = EAknSetListBox; |
|
340 editor_resource_id = r_setting_listbox; |
|
341 } |
|
342 |
|
343 RESOURCE LISTBOX r_setting_listbox |
|
344 { |
|
345 flags = EAknListBoxMultiselectionList;//no actual multiselection, just to make radiobutton visible in previously chosen item |
|
346 } |
|
347 |
|
348 // --------------------------------------------------------------------------- |
|
349 // r_psui_object_size_setting_page |
|
350 // --------------------------------------------------------------------------- |
|
351 RESOURCE AVKON_SETTING_PAGE r_psui_object_size_setting_page |
|
352 { |
|
353 label= qtn_presence_settings_object_size; |
|
354 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
355 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
356 type = EAknCtIntegerEdwin; |
|
357 editor_resource_id = r_psui_object_size_editor; |
|
358 } |
|
359 |
|
360 RESOURCE AVKON_INTEGER_EDWIN r_psui_object_size_editor |
|
361 { |
|
362 maxlength = KPSUIObjectSizeEditorLength; |
|
363 min = 1; |
|
364 max = KPSUIMaxObjectSize;// needed since default value is smaller |
|
365 unset_value = -1;//KErrNotFound |
|
366 } |
|
367 |
|
368 // --------------------------------------------------------------------------- |
|
369 // r_server_addr_setting_page |
|
370 // --------------------------------------------------------------------------- |
|
371 /* server address disabled |
|
372 RESOURCE AVKON_SETTING_PAGE r_psui_server_addr_setting_page |
|
373 { |
|
374 label= qtn_presence_settings_url; |
|
375 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
376 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
377 type = EEikCtEdwin; |
|
378 editor_resource_id = r_psui_uri_editor; |
|
379 }*/ |
|
380 |
|
381 RESOURCE EDWIN r_psui_uri_editor |
|
382 { |
|
383 width = 0; |
|
384 lines = 0; |
|
385 maxlength = KPSUIURILength; |
|
386 flags = EEikEdwinAutoSelection | EAknEditorLowerCase | EEikEdwinNoLineOrParaBreaks; |
|
387 allowed_case_modes = EAknEditorLowerCase | EAknEditorUpperCase; |
|
388 numeric_keymap=EAknEditorCalculatorNumberModeKeymap; |
|
389 allowed_input_modes = EAknEditorTextInputMode | EAknEditorNumericInputMode; |
|
390 default_input_mode = EAknEditorTextInputMode; |
|
391 special_character_table = R_AVKON_URL_SPECIAL_CHARACTER_TABLE_DIALOG; |
|
392 default_case = EAknEditorLowerCase; |
|
393 avkon_flags = EAknEditorFlagLatinInputModesOnly; |
|
394 } |
|
395 |
|
396 // --------------------------------------------------------------------------- |
|
397 // r_psui_publ_interval_setting_page |
|
398 // --------------------------------------------------------------------------- |
|
399 RESOURCE AVKON_SETTING_PAGE r_psui_publ_interval_setting_page |
|
400 { |
|
401 label= qtn_presence_settings_time_interval; |
|
402 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
403 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
404 type = EAknCtIntegerEdwin; |
|
405 editor_resource_id = r_psui_publ_interval_editor; |
|
406 } |
|
407 |
|
408 RESOURCE AVKON_INTEGER_EDWIN r_psui_publ_interval_editor |
|
409 { |
|
410 maxlength = KPSUIPublIntervalEditorLength; |
|
411 min = 1; |
|
412 unset_value = -1;//KErrNotFound |
|
413 } |
|
414 |
|
415 // --------------------------------------------------------------------------- |
|
416 // r_psui_subscriptions_setting_page |
|
417 // --------------------------------------------------------------------------- |
|
418 RESOURCE AVKON_SETTING_PAGE r_psui_subscriptions_setting_page |
|
419 { |
|
420 label= qtn_presence_settings_number_subscriptions; |
|
421 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
422 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
423 type = EAknCtIntegerEdwin; |
|
424 editor_resource_id = r_psui_subscriptions_editor; |
|
425 } |
|
426 |
|
427 RESOURCE AVKON_INTEGER_EDWIN r_psui_subscriptions_editor |
|
428 { |
|
429 maxlength = KPSUISubscriptionsEditorLength; |
|
430 min = 0; |
|
431 unset_value = -1;//KErrNotFound |
|
432 } |
|
433 |
|
434 // --------------------------------------------------------------------------- |
|
435 // r_psui_subscriptions_setting_page |
|
436 // --------------------------------------------------------------------------- |
|
437 RESOURCE AVKON_SETTING_PAGE r_psui_subscriptions_list_setting_page |
|
438 { |
|
439 label= qtn_presence_settings_number_subsc_lists; |
|
440 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
441 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
442 type = EAknCtIntegerEdwin; |
|
443 editor_resource_id = r_psui_subscriptions_editor; |
|
444 } |
|
445 |
|
446 // --------------------------------------------------------------------------- |
|
447 // r_psui_domain_syntax_setting_page |
|
448 // --------------------------------------------------------------------------- |
|
449 RESOURCE AVKON_SETTING_PAGE r_psui_domain_syntax_setting_page |
|
450 { |
|
451 label= qtn_presence_settings_domain; |
|
452 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
453 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
454 type = EEikCtEdwin; |
|
455 editor_resource_id = r_psui_uri_editor; |
|
456 } |
|
457 |
|
458 // --------------------------------------------------------- |
|
459 // r_deletesettingsconf_query - query |
|
460 // Query when deleting settings |
|
461 // --------------------------------------------------------- |
|
462 // |
|
463 RESOURCE DIALOG r_psui_conf_query |
|
464 { |
|
465 flags=EGeneralQueryFlags; |
|
466 buttons=R_AVKON_SOFTKEYS_YES_NO; |
|
467 items= |
|
468 { |
|
469 DLG_LINE |
|
470 { |
|
471 type=EAknCtQuery; |
|
472 id=EGeneralQuery; |
|
473 control= AVKON_CONFIRMATION_QUERY |
|
474 { |
|
475 layout = EConfirmationLayout; |
|
476 }; |
|
477 } |
|
478 }; |
|
479 } |
|
480 |
|
481 // --------------------------------------------------------------------------- |
|
482 // resource texts |
|
483 // --------------------------------------------------------------------------- |
|
484 // |
|
485 RESOURCE TBUF r_qtn_presence_settings_empty_primary { buf = qtn_presence_settings_empty_primary; } |
|
486 RESOURCE TBUF r_qtn_presence_settings_empty_secondary { buf = qtn_presence_settings_empty_secondary; } |
|
487 RESOURCE TBUF r_qtn_presence_propmt_use_exist { buf = qtn_presence_propmt_use_exist; } |
|
488 RESOURCE TBUF r_qtn_presence_name_default { buf = qtn_presence_name_default; } |
|
489 RESOURCE TBUF r_qtn_presence_name_default_number { buf = qtn_presence_name_default_number; } |
|
490 RESOURCE TBUF r_qtn_query_common_conf_delete { buf = qtn_query_common_conf_delete; } |
|
491 RESOURCE TBUF r_qtn_presence_settings_delete_last { buf = qtn_presence_settings_delete_last; } |
|
492 RESOURCE TBUF r_qtn_presence_settings_not_filled { buf = qtn_presence_settings_not_filled; } |
|
493 RESOURCE TBUF r_qtn_presence_settings_name_exists { buf = qtn_presence_settings_name_exists; } |
|
494 RESOURCE TBUF r_qtn_set_folder_presence { buf = qtn_set_folder_presence; } |
|
495 |
|
496 //End of File |