|
1 /* |
|
2 * Copyright (c) 2005-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 XDMPlugin |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // RESOURCE IDENTIFIER |
|
22 NAME GSXD // 4 letter ID |
|
23 |
|
24 // INCLUDES |
|
25 #include <bldvariant.hrh> |
|
26 #include <avkon.rh> |
|
27 #include <avkon.rsg> |
|
28 #include <avkon.mbg> |
|
29 #include <EIKCORE.RSG> |
|
30 #include <eikon.rh> |
|
31 #include <eikon.rsg> |
|
32 #include <avkon.loc> |
|
33 #include <data_caging_paths_strings.hrh> |
|
34 #include <appinfo.rh> |
|
35 |
|
36 #include <gsxdmplugin.loc> |
|
37 #include "XDMPlugin.hrh" |
|
38 |
|
39 // CONSTANTS |
|
40 //---------------------------------------------------- |
|
41 // |
|
42 // |
|
43 // Needed or loading the resource fails! |
|
44 // |
|
45 //---------------------------------------------------- |
|
46 // |
|
47 RESOURCE RSS_SIGNATURE |
|
48 { |
|
49 } |
|
50 |
|
51 //---------------------------------------------------- |
|
52 // |
|
53 // r_gs_xdm_settings_main_menubar |
|
54 // Menu when main list is visible |
|
55 // |
|
56 //---------------------------------------------------- |
|
57 // |
|
58 RESOURCE MENU_BAR r_gs_xdm_settings_main_menubar |
|
59 { |
|
60 titles = |
|
61 { |
|
62 MENU_TITLE { menu_pane = r_gs_xdm_settings_main_menu;} |
|
63 }; |
|
64 } |
|
65 |
|
66 //---------------------------------------------------- |
|
67 // |
|
68 // r_gs_xdm_settings_main_menu |
|
69 // Main menu when we enter in XDM settings |
|
70 // |
|
71 //---------------------------------------------------- |
|
72 // |
|
73 RESOURCE MENU_PANE r_gs_xdm_settings_main_menu |
|
74 { |
|
75 items = |
|
76 { |
|
77 MENU_ITEM |
|
78 { |
|
79 command = EGSXDMPluginCmdChange; |
|
80 txt = qtn_xdm_settings_change; |
|
81 flags = EEikMenuItemAction; |
|
82 }, |
|
83 MENU_ITEM |
|
84 { |
|
85 command = EGSXDMPluginCmdEdit; |
|
86 txt = qtn_xdm_options_edit_set; |
|
87 flags = EEikMenuItemAction; |
|
88 }, |
|
89 MENU_ITEM |
|
90 { |
|
91 command = EGSXDMPluginCmdNewSettings; |
|
92 cascade = r_gs_xdm_new_settings_menu; |
|
93 txt = qtn_xdm_options_new_set; |
|
94 }, |
|
95 MENU_ITEM |
|
96 { |
|
97 command = EGSXDMPluginCmdDelete; |
|
98 txt = qtn_xdm_options_delete; |
|
99 }, |
|
100 MENU_ITEM |
|
101 { |
|
102 command = EAknCmdHelp; |
|
103 txt = qtn_options_help; |
|
104 }, |
|
105 MENU_ITEM |
|
106 { |
|
107 command = EGSXDMPluginCmdExitFromSL; |
|
108 txt = qtn_options_exit; |
|
109 }, |
|
110 MENU_ITEM |
|
111 { |
|
112 command = EAknCmdExit; |
|
113 txt = qtn_options_exit; |
|
114 } |
|
115 }; |
|
116 } |
|
117 |
|
118 //---------------------------------------------------- |
|
119 // |
|
120 // r_gs_xdm_new_settings_menu |
|
121 // case menu |
|
122 // |
|
123 //---------------------------------------------------- |
|
124 // |
|
125 RESOURCE MENU_PANE r_gs_xdm_new_settings_menu |
|
126 { |
|
127 items = |
|
128 { |
|
129 MENU_ITEM |
|
130 { |
|
131 command = EGSXDMPluginCmdNewDefault; |
|
132 txt = qtn_xdm_options_new_sub_default; |
|
133 }, |
|
134 MENU_ITEM |
|
135 { |
|
136 command = EGSXDMPluginCmdNewExisting; |
|
137 txt = qtn_xdm_options_new_sub_existing; |
|
138 } |
|
139 }; |
|
140 } |
|
141 |
|
142 //---------------------------------------------------- |
|
143 // |
|
144 // r_gs_xdm_main_view_title |
|
145 // XDM view's title. |
|
146 // |
|
147 //---------------------------------------------------- |
|
148 // |
|
149 RESOURCE TITLE_PANE r_gs_xdm_main_view_title |
|
150 { |
|
151 txt = qtn_xdm_title; |
|
152 } |
|
153 |
|
154 //---------------------------------------------------- |
|
155 // |
|
156 // r_gs_xdm_main_view |
|
157 // XDM plugin main view. |
|
158 // |
|
159 //---------------------------------------------------- |
|
160 // |
|
161 RESOURCE AVKON_VIEW r_gs_xdm_main_view |
|
162 { |
|
163 menubar = r_gs_xdm_settings_main_menubar; |
|
164 cba = r_xdmui_mainview_softkeys;//R_AVKON_SOFTKEYS_OPTIONS_BACK; |
|
165 } |
|
166 |
|
167 //---------------------------------------------------- |
|
168 // |
|
169 // r_xdmui_mainview_softkeys |
|
170 // XDM plugin main view softkeys. |
|
171 // |
|
172 //---------------------------------------------------- |
|
173 // |
|
174 RESOURCE CBA r_xdmui_mainview_softkeys |
|
175 { |
|
176 flags = 0; |
|
177 buttons = |
|
178 { |
|
179 CBA_BUTTON {id=EAknSoftkeyOptions; txt= text_softkey_option;}, |
|
180 CBA_BUTTON {id=EAknSoftkeyBack; txt= text_softkey_back;}, |
|
181 CBA_BUTTON {id=EGSXDMPluginCmdEdit; txt= qtn_msk_edit;} |
|
182 }; |
|
183 } |
|
184 |
|
185 //---------------------------------------------------- |
|
186 // |
|
187 // r_xdmui_mainview_softkeys_sl |
|
188 // XDM plugin main view softkeys for settings list |
|
189 // |
|
190 //---------------------------------------------------- |
|
191 // |
|
192 RESOURCE CBA r_xdmui_mainview_softkeys_sl |
|
193 { |
|
194 flags = 0; |
|
195 buttons = |
|
196 { |
|
197 CBA_BUTTON {id=EAknSoftkeyOptions; txt= text_softkey_option;}, |
|
198 CBA_BUTTON {id=EAknSoftkeyBack; txt= text_softkey_back;}, |
|
199 CBA_BUTTON {id=EGSXDMPluginCmdChange; txt= qtn_msk_change;} |
|
200 }; |
|
201 } |
|
202 |
|
203 // --------------------------------------------------------- |
|
204 // |
|
205 // r_settings |
|
206 // |
|
207 // settings list - collection of all setting types |
|
208 // |
|
209 // --------------------------------------------------------- |
|
210 // |
|
211 RESOURCE LISTBOX r_gs_xdm_main_list |
|
212 { |
|
213 flags = EAknListBoxSelectionList; |
|
214 } |
|
215 |
|
216 |
|
217 // --------------------------------------------------------- |
|
218 // |
|
219 // r_settings |
|
220 // |
|
221 // settings list - collection of all setting types |
|
222 // |
|
223 // --------------------------------------------------------- |
|
224 // |
|
225 |
|
226 RESOURCE AVKON_SETTING_ITEM_LIST r_settings |
|
227 { |
|
228 flags = EAknSettingItemIncludeHiddenInOrdinal; |
|
229 title = qtn_xdm_title; |
|
230 items = |
|
231 { |
|
232 AVKON_SETTING_ITEM |
|
233 { |
|
234 identifier = ESettingItemSettingName; |
|
235 setting_page_resource = r_server_name_editor_page; |
|
236 name = qtn_xdm_settings_set_name; |
|
237 compulsory_ind_string = qtn_xdm_compulsory_indicator; |
|
238 empty_item_text = qtn_xdm_settings_must_define; |
|
239 }, |
|
240 AVKON_SETTING_ITEM |
|
241 { |
|
242 identifier = ESettingItemAccessPoint; |
|
243 setting_page_resource = r_accesspoint_editor_page; |
|
244 name = qtn_xdm_settings_access_point; |
|
245 compulsory_ind_string = qtn_xdm_compulsory_indicator; |
|
246 empty_item_text = qtn_xdm_settings_must_define; |
|
247 }, |
|
248 AVKON_SETTING_ITEM |
|
249 { |
|
250 identifier = ESettingItemServerAddress; |
|
251 setting_page_resource = r_server_address_editor_page; |
|
252 name = qtn_xdm_settings_address; |
|
253 compulsory_ind_string = qtn_xdm_compulsory_indicator; |
|
254 empty_item_text = qtn_xdm_settings_must_define; |
|
255 }, |
|
256 AVKON_SETTING_ITEM |
|
257 { |
|
258 identifier = ESettingItemSipURL; |
|
259 setting_page_resource = r_sip_url_editor_page; |
|
260 name = qtn_xdm_settings_sip; |
|
261 }, |
|
262 AVKON_SETTING_ITEM |
|
263 { |
|
264 identifier = ESettingItemUserID; |
|
265 setting_page_resource = r_user_id_editor_page; |
|
266 name = qtn_xdm_settings_username; |
|
267 compulsory_ind_string = qtn_xdm_compulsory_indicator; |
|
268 empty_item_text = qtn_xdm_settings_must_define; |
|
269 }, |
|
270 AVKON_SETTING_ITEM |
|
271 { |
|
272 identifier = ESettingItemPassword; |
|
273 setting_page_resource = r_password_editor_page; |
|
274 name = qtn_xdm_settings_password; |
|
275 empty_item_text = qtn_xdm_text_password; |
|
276 } |
|
277 }; |
|
278 } |
|
279 |
|
280 // --------------------------------------------------------- |
|
281 // |
|
282 // Settings Pages |
|
283 // |
|
284 // defines the AVKON_SETTING_PAGE structures referred to in |
|
285 // setting_page_resource fields above. |
|
286 // |
|
287 // These structures define the way in which the editors used |
|
288 // to change the setting data are presented. |
|
289 // |
|
290 // --------------------------------------------------------- |
|
291 // |
|
292 RESOURCE AVKON_SETTING_PAGE r_server_name_editor_page |
|
293 { |
|
294 label= qtn_xdm_settings_set_name; |
|
295 type = EEikCtEdwin; |
|
296 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
297 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
298 editor_resource_id = r_server_name_editor; |
|
299 } |
|
300 |
|
301 RESOURCE AVKON_SETTING_PAGE r_server_address_editor_page |
|
302 { |
|
303 label= qtn_xdm_settings_address; |
|
304 type = EEikCtEdwin; |
|
305 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
306 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
307 editor_resource_id = r_server_address_editor; |
|
308 } |
|
309 |
|
310 |
|
311 RESOURCE AVKON_SETTING_PAGE r_accesspoint_editor_page |
|
312 { |
|
313 label= qtn_xdm_settings_access_point; |
|
314 type = EEikCtEdwin; |
|
315 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
316 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
317 editor_resource_id = r_accesspoint_editor; |
|
318 } |
|
319 |
|
320 RESOURCE AVKON_SETTING_PAGE r_sip_url_editor_page |
|
321 { |
|
322 label= qtn_xdm_settings_sip; |
|
323 type = EEikCtEdwin; |
|
324 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
325 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
326 editor_resource_id = r_sip_url_editor; |
|
327 } |
|
328 |
|
329 RESOURCE AVKON_SETTING_PAGE r_user_id_editor_page |
|
330 { |
|
331 label= qtn_xdm_settings_username; |
|
332 type = EEikCtEdwin; |
|
333 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
334 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
335 editor_resource_id = r_user_id_editor; |
|
336 } |
|
337 |
|
338 RESOURCE AVKON_SETTING_PAGE r_password_editor_page |
|
339 { |
|
340 label= qtn_xdm_settings_password; |
|
341 type = EEikCtSecretEd; |
|
342 softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
343 invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL; |
|
344 editor_resource_id = r_password_editor; |
|
345 } |
|
346 |
|
347 RESOURCE EDWIN r_user_id_editor |
|
348 { |
|
349 flags = EEikEdwinAutoSelection | EAknEditorLowerCase | EEikEdwinNoLineOrParaBreaks; |
|
350 allowed_case_modes = EAknEditorLowerCase | EAknEditorUpperCase; |
|
351 numeric_keymap=EAknEditorCalculatorNumberModeKeymap; |
|
352 allowed_input_modes = EAknEditorTextInputMode | EAknEditorNumericInputMode; |
|
353 default_input_mode = EAknEditorTextInputMode; |
|
354 special_character_table = R_AVKON_URL_SPECIAL_CHARACTER_TABLE_DIALOG; |
|
355 default_case = EAknEditorLowerCase; |
|
356 avkon_flags = EAknEditorFlagLatinInputModesOnly; |
|
357 width = 0; |
|
358 lines = 0; |
|
359 maxlength = KMaxUserIDLength; |
|
360 } |
|
361 |
|
362 RESOURCE SECRETED r_password_editor |
|
363 { |
|
364 num_letters = KMaxPasswordLength; |
|
365 } |
|
366 |
|
367 RESOURCE EDWIN r_server_address_editor |
|
368 { |
|
369 flags = EEikEdwinAutoSelection | EAknEditorLowerCase | EEikEdwinNoLineOrParaBreaks; |
|
370 allowed_case_modes = EAknEditorLowerCase | EAknEditorUpperCase; |
|
371 numeric_keymap=EAknEditorCalculatorNumberModeKeymap; |
|
372 allowed_input_modes = EAknEditorTextInputMode | EAknEditorNumericInputMode; |
|
373 default_input_mode = EAknEditorTextInputMode; |
|
374 special_character_table = R_AVKON_URL_SPECIAL_CHARACTER_TABLE_DIALOG; |
|
375 default_case = EAknEditorLowerCase; |
|
376 avkon_flags = EAknEditorFlagLatinInputModesOnly; |
|
377 width = 0; |
|
378 lines = 0; |
|
379 maxlength = KMaxServerAddressLength; |
|
380 } |
|
381 |
|
382 RESOURCE EDWIN r_accesspoint_editor |
|
383 { |
|
384 maxlength = KMaxAccessPointNameLength; |
|
385 } |
|
386 |
|
387 RESOURCE EDWIN r_server_name_editor |
|
388 { |
|
389 width = 0; |
|
390 lines = 0; |
|
391 flags = EEikEdwinNoLineOrParaBreaks; |
|
392 maxlength = KMaxSettingSetNameLength; |
|
393 } |
|
394 |
|
395 RESOURCE EDWIN r_sip_url_editor |
|
396 { |
|
397 width = 0; |
|
398 lines = 0; |
|
399 maxlength = KMaxSIPURLLength; |
|
400 } |
|
401 |
|
402 |
|
403 RESOURCE DIALOG r_confirmation_query |
|
404 { |
|
405 flags = EGeneralQueryFlags; |
|
406 buttons = R_AVKON_SOFTKEYS_YES_NO; |
|
407 items= |
|
408 { |
|
409 DLG_LINE |
|
410 { |
|
411 type = EAknCtQuery; |
|
412 id = EGeneralQuery; |
|
413 control = AVKON_CONFIRMATION_QUERY |
|
414 { |
|
415 layout =EConfirmationQueryLayout; |
|
416 }; |
|
417 } |
|
418 }; |
|
419 } |
|
420 |
|
421 //---------------------------------------------------- |
|
422 // |
|
423 // string resouces |
|
424 // the strings can be localized in loc file |
|
425 // |
|
426 //---------------------------------------------------- |
|
427 // |
|
428 RESOURCE TBUF r_str_xdm_settings { buf = qtn_xdm_title; } |
|
429 RESOURCE TBUF r_str_xdm_compulsory { buf = qtn_selec_setting_compulsory; } |
|
430 RESOURCE TBUF r_str_xdm_must_define { buf = qtn_poc_settings_must_define; } |
|
431 RESOURCE TBUF r_str_xdm_use_existing { buf = qtn_xdm_propmt_use_exist; } |
|
432 RESOURCE TBUF r_str_xdm_empty_text { buf = qtn_xdm_main_empty_info_text; } |
|
433 RESOURCE TBUF r_str_xdm_empty_text_sec { buf = qtn_xdm_main_empty_info_text_secondary; } |
|
434 RESOURCE TBUF r_str_xdm_new_set { buf = qtn_xdm_text_new_set; } |
|
435 RESOURCE TBUF r_str_xdm_new_set_many { buf = qtn_xdm_text_new_set_many; } |
|
436 RESOURCE TBUF r_str_xdm_conf_delete_last { buf = qtn_xdm_conf_delete_last; } |
|
437 RESOURCE TBUF r_str_xdm_conf_delete { buf = qtn_query_common_conf_delete; } |
|
438 RESOURCE TBUF r_str_xdm_conf_compulsory { buf = qtn_xdm_compulsory_query_info_text; } |
|
439 RESOURCE TBUF r_str_xdm_title_pane_text { buf = qtn_xdm_title; } |
|
440 RESOURCE TBUF r_str_xdm_name_already_exist { buf = qtn_xdm_set_already_exist_info; } |
|
441 RESOURCE TBUF r_str_xdm_ap_name_for_debug_only { buf = qtn_xdm_settings_access_point;} |
|
442 |
|
443 // ****** PDATA RESOURCES END ****** |
|
444 //End of File |