|
1 /* |
|
2 * Copyright (c) 2005-2007 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: Phonebook 2 USIM UI Extension resource information. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "Pbk2USIMUIUID.h" |
|
20 #include <Pbk2ContentIdentifiers.hrh> |
|
21 |
|
22 |
|
23 // -------------------------------------------------------------------------- |
|
24 // Extension information |
|
25 // -------------------------------------------------------------------------- |
|
26 // |
|
27 RESOURCE PHONEBOOK2_EXTENSION_INFORMATION |
|
28 r_phonebook2_usim_ui_extension_information |
|
29 { |
|
30 version = 0; |
|
31 |
|
32 implementationUid = KPbk2USIMExtensionImplementationUID; |
|
33 |
|
34 loadingPolicy = KPbk2LoadOnCommandExecution | |
|
35 KPbk2LoadOnContactEditorExecution; |
|
36 menuCommandRange = PHONEBOOK2_EXTENSION_RANGE |
|
37 { |
|
38 firstId = EUSimUiExtensionFirstCommand; |
|
39 lastId = EUSimUiExtensionLastCommand; |
|
40 }; |
|
41 |
|
42 // Help cmd not implemented, forces plugin load |
|
43 overwrittenCommands = { EPbk2CmdCopyContacts, |
|
44 EAknCmdHelp }; |
|
45 |
|
46 extensionMenus = |
|
47 { |
|
48 PHONEBOOK2_EXTENSION_MENU_RESOURCE |
|
49 { |
|
50 // Name list view: the main level "SIM memory" item |
|
51 version = 0; |
|
52 viewId = EPbk2NamesListViewId; |
|
53 menuFilteringFlags = 0; // dynamic filtering in USimThinUiExtension |
|
54 parentMenu = R_PHONEBOOK2_NAMESLIST_OTHER_MEMORIES_MENU_PLACEHOLDER; |
|
55 prevCommand = EPbk2CmdOtherMemoriesPlaceholderFirst; |
|
56 menuPane = r_psu2_sim_memory_menu_pane; |
|
57 }, |
|
58 PHONEBOOK2_EXTENSION_MENU_RESOURCE |
|
59 { |
|
60 // Name list view: "My numbers" menu item |
|
61 version = 0; |
|
62 viewId = EPbk2NamesListViewId; |
|
63 menuFilteringFlags = 0; |
|
64 parentMenu = r_psu2_cascading_sim_memory_menu_pane; |
|
65 prevCommand = EPsu2CmdFirstSimMemoryMenuItem; |
|
66 menuPane = r_psu2_sim_memory_own_number_menu_pane; |
|
67 }, |
|
68 PHONEBOOK2_EXTENSION_MENU_RESOURCE |
|
69 { |
|
70 // Name list view: "Copy all to phone" menu item |
|
71 version = 0; |
|
72 viewId = EPbk2NamesListViewId; |
|
73 menuFilteringFlags = 0; |
|
74 parentMenu = r_psu2_cascading_sim_memory_menu_pane; |
|
75 prevCommand = EPsu2CmdLaunchOwnNumberView; |
|
76 menuPane = r_psu2_sim_memory_copy_all_to_phonememory; |
|
77 }, |
|
78 PHONEBOOK2_EXTENSION_MENU_RESOURCE |
|
79 { |
|
80 // Name list view: "Service dialing numbers" menu item |
|
81 version = 0; |
|
82 viewId = EPbk2NamesListViewId; |
|
83 menuFilteringFlags = 0; |
|
84 parentMenu = r_psu2_cascading_sim_memory_menu_pane; |
|
85 prevCommand = EPsu2CmdCopyToContacts; |
|
86 menuPane = r_psu2_sim_memory_sdn_menu_pane; |
|
87 }, |
|
88 PHONEBOOK2_EXTENSION_MENU_RESOURCE |
|
89 { |
|
90 // Name list view: "Fixed dialing numbers" menu item |
|
91 version = 0; |
|
92 viewId = EPbk2NamesListViewId; |
|
93 menuFilteringFlags = 0; |
|
94 parentMenu = r_psu2_cascading_sim_memory_menu_pane; |
|
95 prevCommand = EPsu2CmdLaunchServiceDialingView; |
|
96 menuPane = r_psu2_sim_memory_fdn_menu_pane; |
|
97 } |
|
98 }; |
|
99 |
|
100 viewIds = |
|
101 { |
|
102 PHONEBOOK2_EXTENSION_VIEW_ID |
|
103 { |
|
104 version = 0; |
|
105 viewId = EPsu2OwnNumberViewId; |
|
106 viewResource = r_psu2_own_number_appview; |
|
107 }, |
|
108 PHONEBOOK2_EXTENSION_VIEW_ID |
|
109 { |
|
110 version = 0; |
|
111 viewId = EPsu2ServiceDialingViewId; |
|
112 viewResource = r_psu2_service_dialing_appview; |
|
113 }, |
|
114 PHONEBOOK2_EXTENSION_VIEW_ID |
|
115 { |
|
116 version = 0; |
|
117 viewId = EPsu2FixedDialingViewId; |
|
118 viewResource = r_psu2_fixed_dialing_appview; |
|
119 }, |
|
120 PHONEBOOK2_EXTENSION_VIEW_ID |
|
121 { |
|
122 version = 0; |
|
123 viewId = EPsu2ServiceDialingInfoViewId; |
|
124 viewResource = r_psu2_service_dialing_info_view; |
|
125 }, |
|
126 PHONEBOOK2_EXTENSION_VIEW_ID |
|
127 { |
|
128 version = 0; |
|
129 viewId = EPsu2FixedDialingInfoViewId; |
|
130 viewResource = r_psu2_fixed_dialing_info_view; |
|
131 } |
|
132 }; |
|
133 |
|
134 viewGraphModification = r_psu2_viewgraph; |
|
135 iconInformation = r_psu2_icon_information; |
|
136 storePropertyArray = r_psu2_store_properties; |
|
137 } |
|
138 |
|
139 // -------------------------------------------------------------------------- |
|
140 // A menu pane for "SIM memory" menu item |
|
141 // -------------------------------------------------------------------------- |
|
142 // |
|
143 RESOURCE MENU_PANE r_psu2_sim_memory_menu_pane |
|
144 { |
|
145 items = |
|
146 { |
|
147 MENU_ITEM |
|
148 { |
|
149 command = EPsu2CmdCascadingSimMemory; |
|
150 cascade = r_psu2_cascading_sim_memory_menu_pane; |
|
151 txt = qtn_phob_opt_sim_memory; |
|
152 } |
|
153 }; |
|
154 } |
|
155 |
|
156 // -------------------------------------------------------------------------- |
|
157 // Cascading SIM memory menu pane |
|
158 // Contains place holder that is always dimmed. |
|
159 // Place holder is added because otherwise it would be impossible to |
|
160 // insert menu items to the first place. |
|
161 // -------------------------------------------------------------------------- |
|
162 // |
|
163 RESOURCE MENU_PANE r_psu2_cascading_sim_memory_menu_pane |
|
164 { |
|
165 items = |
|
166 { |
|
167 MENU_ITEM |
|
168 { |
|
169 command = EPsu2CmdFirstSimMemoryMenuItem; |
|
170 txt = ""; |
|
171 flags = EEikMenuItemDimmed; |
|
172 } |
|
173 }; |
|
174 } |
|
175 |
|
176 // -------------------------------------------------------------------------- |
|
177 // Copy all SIM contacts menu pane |
|
178 // -------------------------------------------------------------------------- |
|
179 // |
|
180 RESOURCE MENU_PANE r_psu2_sim_memory_copy_all_to_phonememory |
|
181 { |
|
182 items = |
|
183 { |
|
184 MENU_ITEM |
|
185 { |
|
186 command = EPsu2CmdCopyToContacts; |
|
187 txt = qtn_phob_opt_sub_copy_all; |
|
188 } |
|
189 }; |
|
190 } |
|
191 |
|
192 |
|
193 // -------------------------------------------------------------------------- |
|
194 // Own/My numbers launch menu pane |
|
195 // -------------------------------------------------------------------------- |
|
196 // |
|
197 RESOURCE MENU_PANE r_psu2_sim_memory_own_number_menu_pane |
|
198 { |
|
199 items = |
|
200 { |
|
201 MENU_ITEM |
|
202 { |
|
203 command = EPsu2CmdLaunchOwnNumberView; |
|
204 txt = qtn_phob_opt_sub_my_numbers; |
|
205 } |
|
206 }; |
|
207 } |
|
208 |
|
209 // -------------------------------------------------------------------------- |
|
210 // Service dialing numbers launch menu pane |
|
211 // -------------------------------------------------------------------------- |
|
212 // |
|
213 RESOURCE MENU_PANE r_psu2_sim_memory_sdn_menu_pane |
|
214 { |
|
215 items = |
|
216 { |
|
217 MENU_ITEM |
|
218 { |
|
219 command = EPsu2CmdLaunchServiceDialingView; |
|
220 txt = qtn_phob_opt_sub_sdn; |
|
221 } |
|
222 }; |
|
223 } |
|
224 |
|
225 // -------------------------------------------------------------------------- |
|
226 // Fixed dialing numbers launch menu pane |
|
227 // -------------------------------------------------------------------------- |
|
228 // |
|
229 RESOURCE MENU_PANE r_psu2_sim_memory_fdn_menu_pane |
|
230 { |
|
231 items = |
|
232 { |
|
233 MENU_ITEM |
|
234 { |
|
235 command = EPsu2CmdLaunchFixedDialingView; |
|
236 txt = qtn_phob_opt_sub_fdn; |
|
237 } |
|
238 }; |
|
239 } |
|
240 |
|
241 // -------------------------------------------------------------------------- |
|
242 // USIM extension view graph |
|
243 // -------------------------------------------------------------------------- |
|
244 // |
|
245 RESOURCE PBK2_VIEW_GRAPH r_psu2_viewgraph |
|
246 { |
|
247 nodes = |
|
248 { |
|
249 // Own number view |
|
250 PBK2_VIEW_NODE |
|
251 { |
|
252 version = 0; |
|
253 // Id of the view that this node represents. |
|
254 viewId = EPsu2OwnNumberViewId; |
|
255 // Default previous view of this view. |
|
256 defaultPrevViewId = EPbk2NamesListViewId; |
|
257 // Transitions from this view node. |
|
258 transitions = |
|
259 { |
|
260 PBK2_VIEW_TRANSITION |
|
261 { |
|
262 // Event that enables this transition. |
|
263 event = EPbk2ViewTransitionBack; |
|
264 // Target view of this transition. |
|
265 targetViewId = EPbk2NamesListViewId; |
|
266 } |
|
267 }; |
|
268 tabGroupId = EPbk2OwnNumberTabGroup; |
|
269 tabGroupOrdering = 0; |
|
270 tabs = r_psu2_own_number_view_tabs; |
|
271 }, |
|
272 // Service dialing name list view |
|
273 PBK2_VIEW_NODE |
|
274 { |
|
275 version = 0; |
|
276 // Id of the view that this node represents. |
|
277 viewId = EPsu2ServiceDialingViewId; |
|
278 // Default previous view of this view. |
|
279 defaultPrevViewId = EPbk2NamesListViewId; |
|
280 // Transitions from this view node. |
|
281 transitions = |
|
282 { |
|
283 PBK2_VIEW_TRANSITION |
|
284 { |
|
285 // Event that enables this transition. |
|
286 event = EPbk2ViewTransitionBack; |
|
287 // Target view of this transition. |
|
288 targetViewId = EPbk2NamesListViewId; |
|
289 } |
|
290 }; |
|
291 tabGroupId = EPbk2ServiceDialingTabGroup; |
|
292 tabGroupOrdering = 0; |
|
293 tabs = r_psu2_service_dialing_view_tabs; |
|
294 }, |
|
295 // Fixed dialing name list view |
|
296 PBK2_VIEW_NODE |
|
297 { |
|
298 version = 0; |
|
299 // Id of the view that this node represents. |
|
300 viewId = EPsu2FixedDialingViewId; |
|
301 // Default previous view of this view. |
|
302 defaultPrevViewId = EPbk2NamesListViewId; |
|
303 // Transitions from this view node. |
|
304 transitions = |
|
305 { |
|
306 PBK2_VIEW_TRANSITION |
|
307 { |
|
308 // Event that enables this transition. |
|
309 event = EPbk2ViewTransitionBack; |
|
310 // Target view of this transition. |
|
311 targetViewId = EPbk2NamesListViewId; |
|
312 } |
|
313 }; |
|
314 tabGroupId = EPbk2FixedDialingTabGroup; |
|
315 tabGroupOrdering = 0; |
|
316 tabs = r_psu2_fixed_dialing_view_tabs; |
|
317 }, |
|
318 // Service dialing info view |
|
319 PBK2_VIEW_NODE |
|
320 { |
|
321 version = 0; |
|
322 // Id of the view that this node represents. |
|
323 viewId = EPsu2ServiceDialingInfoViewId; |
|
324 // Default previous view of this view. |
|
325 defaultPrevViewId = EPsu2ServiceDialingViewId; |
|
326 // Transitions from this view node. |
|
327 transitions = |
|
328 { |
|
329 PBK2_VIEW_TRANSITION |
|
330 { |
|
331 // Event that enables this transition. |
|
332 event = EPbk2ViewTransitionBack; |
|
333 // Target view of this transition. |
|
334 targetViewId = EPsu2ServiceDialingViewId; |
|
335 } |
|
336 }; |
|
337 tabGroupId = EPbk2ServiceDialingTabGroup; |
|
338 tabGroupOrdering = 0; |
|
339 tabs = r_psu2_service_dialing_info_view_tabs; |
|
340 }, |
|
341 // Fixed dialing info view |
|
342 PBK2_VIEW_NODE |
|
343 { |
|
344 version = 0; |
|
345 // Id of the view that this node represents. |
|
346 viewId = EPsu2FixedDialingInfoViewId; |
|
347 // Default previous view of this view. |
|
348 defaultPrevViewId = EPsu2FixedDialingViewId; |
|
349 // Transitions from this view node. |
|
350 transitions = |
|
351 { |
|
352 PBK2_VIEW_TRANSITION |
|
353 { |
|
354 // Event that enables this transition. |
|
355 event = EPbk2ViewTransitionBack; |
|
356 // Target view of this transition. |
|
357 targetViewId = EPsu2FixedDialingViewId; |
|
358 } |
|
359 }; |
|
360 tabGroupId = EPbk2FixedDialingTabGroup; |
|
361 tabGroupOrdering = 0; |
|
362 tabs = r_psu2_fixed_dialing_info_view_tabs; |
|
363 } |
|
364 }; |
|
365 } |
|
366 |
|
367 // -------------------------------------------------------------------------- |
|
368 // Icon information |
|
369 // -------------------------------------------------------------------------- |
|
370 // |
|
371 RESOURCE PHONEBOOK2_EXTENSION_ICON_INFORMATION r_psu2_icon_information |
|
372 { |
|
373 // A link to the array that contains PBK2_ICON_INFOs |
|
374 iconInfoArray = r_psu2_icon_info_array; |
|
375 |
|
376 // A link to the array that contains PHONEBOOK2_EXTENSION_ICON_ARRAYs |
|
377 iconArrays = |
|
378 { |
|
379 PHONEBOOK2_EXTENSION_ICON_ARRAY |
|
380 { |
|
381 // Extension icons for contact list |
|
382 parentIconArrayId = EPbk2ContactListIconArrayId; |
|
383 iconArray = r_psu_2_contact_list_icon_array; |
|
384 }, |
|
385 PHONEBOOK2_EXTENSION_ICON_ARRAY |
|
386 { |
|
387 // Extension icons for field type icons |
|
388 parentIconArrayId = EPbk2FieldTypeIconArrayId; |
|
389 iconArray = r_psu_2_field_type_icon_array; |
|
390 }, |
|
391 PHONEBOOK2_EXTENSION_ICON_ARRAY |
|
392 { |
|
393 // Extension icons for fetchdialog |
|
394 parentIconArrayId = EPbk2FetchDlgCheckboxIconArrayId; |
|
395 iconArray = r_psu_2_contact_list_icon_array; |
|
396 } |
|
397 }; |
|
398 } |
|
399 |
|
400 // -------------------------------------------------------------------------- |
|
401 // Icon info array |
|
402 // -------------------------------------------------------------------------- |
|
403 // |
|
404 RESOURCE ARRAY r_psu2_icon_info_array |
|
405 { |
|
406 items = |
|
407 { |
|
408 PBK2_ICON_INFO |
|
409 { |
|
410 version = 0; |
|
411 pbk2IconInfoId = PHONEBOOK2_ICON_ID |
|
412 { |
|
413 ownerUid = KPbk2USIMExtensionImplementationUID; |
|
414 id = EPsu2qgn_prop_nrtyp_sdn; |
|
415 }; |
|
416 mbmFileName = psu2_mbm_file_location; |
|
417 iconId = EMbmPsu2Qgn_prop_nrtyp_sdn; |
|
418 maskId = EMbmPsu2Qgn_prop_nrtyp_sdn_mask; |
|
419 skinIdMajor = EAknsMajorGeneric; |
|
420 skinIdMinor = EAknsMinorGenericQgnPropNrtypSdn; |
|
421 }, |
|
422 PBK2_ICON_INFO |
|
423 { |
|
424 version = 0; |
|
425 pbk2IconInfoId = PHONEBOOK2_ICON_ID |
|
426 { |
|
427 ownerUid = KPbk2USIMExtensionImplementationUID; |
|
428 id = EPsu2qgn_menu_simin; |
|
429 }; |
|
430 mbmFileName = psu2_mbm_file_location; |
|
431 iconId = EMbmPsu2Qgn_menu_simin; |
|
432 maskId = EMbmPsu2Qgn_menu_simin_mask; |
|
433 skinIdMajor = EAknsMajorGeneric; |
|
434 skinIdMinor = EAknsMinorGenericQgnMenuSiminCxt; |
|
435 }, |
|
436 PBK2_ICON_INFO |
|
437 { |
|
438 version = 0; |
|
439 pbk2IconInfoId = PHONEBOOK2_ICON_ID |
|
440 { |
|
441 ownerUid = KPbk2USIMExtensionImplementationUID; |
|
442 id = EPsu2qgn_menu_simfdn; |
|
443 }; |
|
444 mbmFileName = psu2_mbm_file_location; |
|
445 iconId = EMbmPsu2Qgn_menu_simfdn; |
|
446 maskId = EMbmPsu2Qgn_menu_simfdn_mask; |
|
447 skinIdMajor = EAknsMajorGeneric; |
|
448 skinIdMinor = EAknsMinorGenericQgnMenuSiminCxt; |
|
449 }, |
|
450 PBK2_ICON_INFO |
|
451 { |
|
452 version = 0; |
|
453 pbk2IconInfoId = PHONEBOOK2_ICON_ID |
|
454 { |
|
455 ownerUid = KPbk2USIMExtensionImplementationUID; |
|
456 id = EPsu2qgn_prop_nrtyp_sim_contact; |
|
457 }; |
|
458 mbmFileName = psu2_mbm_file_location; |
|
459 iconId = EMbmPsu2Qgn_prop_nrtyp_sim_contact; |
|
460 maskId = EMbmPsu2Qgn_prop_nrtyp_sim_contact_mask; |
|
461 skinIdMajor = EAknsMajorGeneric; |
|
462 skinIdMinor = EAknsMinorGenericQgnPropNrtypSimContact; |
|
463 } |
|
464 }; |
|
465 } |
|
466 |
|
467 // -------------------------------------------------------------------------- |
|
468 // Extension icons for contact list |
|
469 // -------------------------------------------------------------------------- |
|
470 // |
|
471 RESOURCE PBK2_ICON_ARRAY r_psu_2_contact_list_icon_array |
|
472 { |
|
473 // Array of PBK2_ICON_ID structures. |
|
474 arrayId = EPbk2NullIconArrayId; |
|
475 icons = |
|
476 { |
|
477 PHONEBOOK2_ICON_ID |
|
478 { |
|
479 ownerUid = KPbk2USIMExtensionImplementationUID; |
|
480 id = EPsu2qgn_prop_nrtyp_sdn; |
|
481 }, |
|
482 PHONEBOOK2_ICON_ID |
|
483 { |
|
484 ownerUid = KPbk2USIMExtensionImplementationUID; |
|
485 id = EPsu2qgn_prop_nrtyp_sim_contact; |
|
486 } |
|
487 }; |
|
488 } |
|
489 |
|
490 // -------------------------------------------------------------------------- |
|
491 // Extension icons for field type icon array |
|
492 // -------------------------------------------------------------------------- |
|
493 // |
|
494 RESOURCE PBK2_ICON_ARRAY r_psu_2_field_type_icon_array |
|
495 { |
|
496 // Array of PBK2_ICON_ID structures. |
|
497 arrayId = EPbk2NullIconArrayId; |
|
498 icons = |
|
499 { |
|
500 PHONEBOOK2_ICON_ID |
|
501 { |
|
502 ownerUid = KPbk2USIMExtensionImplementationUID; |
|
503 id = EPsu2qgn_prop_nrtyp_sdn; |
|
504 } |
|
505 }; |
|
506 } |
|
507 |
|
508 // -------------------------------------------------------------------------- |
|
509 // Store properties resources |
|
510 // -------------------------------------------------------------------------- |
|
511 // |
|
512 RESOURCE PHONEBOOK2_STORE_PROPERTY_ARRAY r_psu2_store_properties |
|
513 { |
|
514 items = |
|
515 { |
|
516 PHONEBOOK2_STORE_PROPERTY |
|
517 { |
|
518 version = 0; |
|
519 storeUri = KVPBK_SIM_GLOBAL_ADN_URI; |
|
520 storeName = qtn_phob_set_memory_sim; |
|
521 flags = KPbk2ShownInMemorySelectionList | |
|
522 KPbk2DefaultSavingStorageItem; |
|
523 views = |
|
524 { |
|
525 PHONEBOOK2_STORE_VIEW |
|
526 { |
|
527 version = 0; |
|
528 viewType = EPbk2MainNamesList; |
|
529 viewLocation = EPbk2MergedMainList; |
|
530 viewDefinition = VPBK_CONTACT_VIEW |
|
531 { |
|
532 uri = KVPBK_SIM_GLOBAL_ADN_URI; |
|
533 flags = EVPbkContactViewFlagsNone; |
|
534 subViews = {}; |
|
535 }; |
|
536 iconId = PHONEBOOK2_ICON_ID |
|
537 { |
|
538 ownerUid = KPbk2USIMExtensionImplementationUID; |
|
539 id = EPsu2qgn_prop_nrtyp_sim_contact; |
|
540 }; |
|
541 } |
|
542 }; |
|
543 memoryInfoItemTypes = KPbk2StoreInfoNumberOfContacts | |
|
544 KPbk2StoreInfoFreeLocations; |
|
545 fieldPropertyModifications = r_psu2_field_properties_for_adn; |
|
546 localizedResourceStrings = |
|
547 { |
|
548 PHONEBOOK2_LOCALIZED_TEXT |
|
549 { |
|
550 context = EPbk2MemInfoPhone; |
|
551 text = qtn_phob_pb_info_memory_sim; |
|
552 }, |
|
553 PHONEBOOK2_LOCALIZED_TEXT |
|
554 { |
|
555 context = EPbk2CopyQueryItem; |
|
556 text = qtn_pbcop_copy_query_list_item_sim; |
|
557 }, |
|
558 PHONEBOOK2_LOCALIZED_TEXT |
|
559 { |
|
560 context = EPbk2MemInfoContacts; |
|
561 text = qtn_phob_pb_info_memory_sim_colon; |
|
562 } |
|
563 }; |
|
564 }, |
|
565 PHONEBOOK2_STORE_PROPERTY |
|
566 { |
|
567 version = 0; |
|
568 storeUri = KVPBK_SIM_GLOBAL_SDN_URI; |
|
569 storeName = qtn_phob_set_memory_sdn; |
|
570 flags = KPbk2ShownInMemorySelectionList; |
|
571 views = |
|
572 { |
|
573 PHONEBOOK2_STORE_VIEW |
|
574 { |
|
575 version = 0; |
|
576 viewType = EPbk2MainNamesList; |
|
577 viewLocation = EPbk2MergedMainList; |
|
578 viewDefinition = VPBK_CONTACT_VIEW |
|
579 { |
|
580 uri = KVPBK_SIM_GLOBAL_SDN_URI; |
|
581 flags = EVPbkContactViewFlagsNone; |
|
582 subViews = {}; |
|
583 }; |
|
584 iconId = PHONEBOOK2_ICON_ID |
|
585 { |
|
586 ownerUid = KPbk2USIMExtensionImplementationUID; |
|
587 id = EPsu2qgn_prop_nrtyp_sdn; |
|
588 }; |
|
589 } |
|
590 }; |
|
591 fieldPropertyModifications = r_psu2_field_properties_for_sdn; |
|
592 }, |
|
593 /// FDN contacts are not meant to be shown in main nameslist, |
|
594 /// we are just getting the icon id for the FDN nameslist view. |
|
595 PHONEBOOK2_STORE_PROPERTY |
|
596 { |
|
597 version = 0; |
|
598 storeUri = KVPBK_SIM_GLOBAL_FDN_URI; |
|
599 storeName = text_fdn_list; |
|
600 views = |
|
601 { |
|
602 PHONEBOOK2_STORE_VIEW |
|
603 { |
|
604 version = 0; |
|
605 viewDefinition = VPBK_CONTACT_VIEW |
|
606 { |
|
607 uri = KVPBK_SIM_GLOBAL_FDN_URI; |
|
608 flags = EVPbkContactViewFlagsNone; |
|
609 subViews = {}; |
|
610 }; |
|
611 iconId = PHONEBOOK2_ICON_ID |
|
612 { |
|
613 ownerUid = KPbk2USIMExtensionImplementationUID; |
|
614 id = EPsu2qgn_prop_nrtyp_phone; |
|
615 }; |
|
616 } |
|
617 }; |
|
618 fieldPropertyModifications = r_psu2_field_properties_for_fdn; |
|
619 }, |
|
620 /// Own numbers are not meant to be shown in main nameslist, |
|
621 /// we need the storename for Own numbers store |
|
622 PHONEBOOK2_STORE_PROPERTY |
|
623 { |
|
624 version = 0; |
|
625 storeUri = KVPBK_SIM_GLOBAL_OWN_NUMBER_URI; |
|
626 storeName = qtn_phob_title_my_numbers; |
|
627 views = {}; |
|
628 } |
|
629 }; |
|
630 } |
|
631 |
|
632 // -------------------------------------------------------------------------- |
|
633 // ADN field properties |
|
634 // -------------------------------------------------------------------------- |
|
635 // |
|
636 RESOURCE PHONEBOOK2_FIELD_PROPERTY_ARRAY r_psu2_field_properties_for_adn |
|
637 { |
|
638 items = |
|
639 { |
|
640 PHONEBOOK2_FIELD_PROPERTY |
|
641 { |
|
642 // Change name label to qtn_simp_lbl_name |
|
643 fieldTypeLink = R_VPBK_FIELD_TYPE_LASTNAME; |
|
644 multiplicity = EPbk2FieldMultiplicityOne; |
|
645 maxLength = 50; |
|
646 editMode = EPbk2FieldEditModeAlpha; |
|
647 defaultCase = EPbk2FieldDefaultCaseText; |
|
648 iconId = PHONEBOOK2_ICON_ID |
|
649 { |
|
650 ownerUid = KPbk2UID3; |
|
651 id = EPbk2qgn_prop_nrtyp_empty; |
|
652 }; |
|
653 ctrlType = EPbk2FieldCtrlTypeTextEditor; |
|
654 flags = KPbk2FieldFlagTemplateField | KPbk2FieldFlagUserCanAddField | |
|
655 KPbk2FieldFlagCanNotBeRemoved; |
|
656 location = EPbk2FieldLocationNone; |
|
657 groupId = EPbk2FieldGroupIdLastName; |
|
658 defaultLabel = qtn_simp_lbl_name; |
|
659 }, |
|
660 // Last name reading |
|
661 // Change label to qtn_simp_lbl_reading |
|
662 PHONEBOOK2_FIELD_PROPERTY |
|
663 { |
|
664 fieldTypeLink = R_VPBK_FIELD_TYPE_LASTNAMEREADING; |
|
665 multiplicity = EPbk2FieldMultiplicityOne; |
|
666 maxLength = 50; |
|
667 editMode = EPbk2FieldEditModeAlpha; |
|
668 defaultCase = EPbk2FieldDefaultCaseText; |
|
669 iconId = PHONEBOOK2_ICON_ID |
|
670 { |
|
671 ownerUid = KPbk2UID3; |
|
672 id = EPbk2qgn_prop_nrtyp_empty; |
|
673 }; |
|
674 ctrlType = EPbk2FieldCtrlTypeReadingEditor; |
|
675 flags = KPbk2FieldFlagTemplateField | KPbk2FieldFlagUserCanAddField | |
|
676 KPbk2FieldFlagCanNotBeRemoved; |
|
677 location = EPbk2FieldLocationNone; |
|
678 groupId = EPbk2FieldGroupIdLastName; |
|
679 defaultLabel = qtn_simp_lbl_reading; |
|
680 }, |
|
681 // Nick name |
|
682 // Difference to the property in Presentation: |
|
683 // flags, KPbk2FieldFlagTemplateField added |
|
684 PHONEBOOK2_FIELD_PROPERTY |
|
685 { |
|
686 fieldTypeLink = R_VPBK_FIELD_TYPE_SECONDNAME; |
|
687 multiplicity = EPbk2FieldMultiplicityOne; |
|
688 maxLength = 50; |
|
689 editMode = EPbk2FieldEditModeAlpha; |
|
690 defaultCase = EPbk2FieldDefaultCaseText; |
|
691 iconId = PHONEBOOK2_ICON_ID |
|
692 { |
|
693 ownerUid = KPbk2UID3; |
|
694 id = EPbk2qgn_prop_nrtyp_empty; |
|
695 }; |
|
696 ctrlType = EPbk2FieldCtrlTypeTextEditor; |
|
697 flags = KPbk2FieldFlagTemplateField | KPbk2FieldFlagUserCanAddField; |
|
698 location = EPbk2FieldLocationNone; |
|
699 defaultLabel = qtn_simp_lbl_nick; |
|
700 } |
|
701 }; |
|
702 } |
|
703 |
|
704 // -------------------------------------------------------------------------- |
|
705 // SDN field properties |
|
706 // -------------------------------------------------------------------------- |
|
707 // |
|
708 RESOURCE PHONEBOOK2_FIELD_PROPERTY_ARRAY r_psu2_field_properties_for_sdn |
|
709 { |
|
710 items = |
|
711 { |
|
712 // Change name label to qtn_simp_lbl_name |
|
713 PHONEBOOK2_FIELD_PROPERTY |
|
714 { |
|
715 fieldTypeLink = R_VPBK_FIELD_TYPE_LASTNAME; |
|
716 multiplicity = EPbk2FieldMultiplicityOne; |
|
717 maxLength = 50; |
|
718 editMode = EPbk2FieldEditModeAlpha; |
|
719 defaultCase = EPbk2FieldDefaultCaseText; |
|
720 iconId = PHONEBOOK2_ICON_ID |
|
721 { |
|
722 ownerUid = KPbk2UID3; |
|
723 id = EPbk2qgn_prop_nrtyp_empty; |
|
724 }; |
|
725 ctrlType = EPbk2FieldCtrlTypeTextEditor; |
|
726 flags = KPbk2FieldFlagTemplateField | |
|
727 KPbk2FieldFlagUserCanAddField; |
|
728 location = EPbk2FieldLocationNone; |
|
729 defaultLabel = qtn_simp_lbl_name; |
|
730 }, |
|
731 // Differences to the property in Presentation: |
|
732 // Icon for the number must be SDN icon |
|
733 PHONEBOOK2_FIELD_PROPERTY |
|
734 { |
|
735 fieldTypeLink = R_VPBK_FIELD_TYPE_MOBILEPHONEGEN; |
|
736 multiplicity = EPbk2FieldMultiplicityMany; |
|
737 maxLength = 48; |
|
738 editMode = EPbk2FieldEditModeNumeric; |
|
739 defaultCase = EPbk2FieldDefaultCaseNone; |
|
740 iconId = PHONEBOOK2_ICON_ID |
|
741 { |
|
742 ownerUid = KPbk2USIMExtensionImplementationUID; |
|
743 id = EPsu2qgn_prop_nrtyp_sdn; |
|
744 }; |
|
745 ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor; |
|
746 flags = KPbk2FieldFlagTemplateField | KPbk2FieldFlagUserCanAddField; |
|
747 location = EPbk2FieldLocationNone; |
|
748 defaultLabel = qtn_simp_lbl_number; |
|
749 } |
|
750 }; |
|
751 } |
|
752 |
|
753 // -------------------------------------------------------------------------- |
|
754 // FDN field properties |
|
755 // -------------------------------------------------------------------------- |
|
756 // |
|
757 RESOURCE PHONEBOOK2_FIELD_PROPERTY_ARRAY r_psu2_field_properties_for_fdn |
|
758 { |
|
759 items = |
|
760 { |
|
761 // Change name label to qtn_simp_lbl_name |
|
762 PHONEBOOK2_FIELD_PROPERTY |
|
763 { |
|
764 fieldTypeLink = R_VPBK_FIELD_TYPE_LASTNAME; |
|
765 multiplicity = EPbk2FieldMultiplicityOne; |
|
766 maxLength = 50; |
|
767 editMode = EPbk2FieldEditModeAlpha; |
|
768 defaultCase = EPbk2FieldDefaultCaseText; |
|
769 iconId = PHONEBOOK2_ICON_ID |
|
770 { |
|
771 ownerUid = KPbk2UID3; |
|
772 id = EPbk2qgn_prop_nrtyp_empty; |
|
773 }; |
|
774 ctrlType = EPbk2FieldCtrlTypeTextEditor; |
|
775 flags = KPbk2FieldFlagTemplateField | |
|
776 KPbk2FieldFlagUserCanAddField; |
|
777 location = EPbk2FieldLocationNone; |
|
778 defaultLabel = qtn_simp_lbl_name; |
|
779 }, |
|
780 // Differences to the property in Presentation: |
|
781 // Icon for the number must be phone icon |
|
782 PHONEBOOK2_FIELD_PROPERTY |
|
783 { |
|
784 fieldTypeLink = R_VPBK_FIELD_TYPE_MOBILEPHONEGEN; |
|
785 multiplicity = EPbk2FieldMultiplicityMany; |
|
786 maxLength = 48; |
|
787 editMode = EPbk2FieldEditModeNumeric; |
|
788 defaultCase = EPbk2FieldDefaultCaseNone; |
|
789 iconId = PHONEBOOK2_ICON_ID |
|
790 { |
|
791 ownerUid = KPbk2UID3; |
|
792 id = EPbk2qgn_prop_nrtyp_phone; |
|
793 }; |
|
794 ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor; |
|
795 flags = KPbk2FieldFlagTemplateField | |
|
796 KPbk2FieldFlagUserCanAddField; |
|
797 location = EPbk2FieldLocationNone; |
|
798 defaultLabel = qtn_simp_lbl_number; |
|
799 } |
|
800 }; |
|
801 } |
|
802 |
|
803 // -------------------------------------------------------------------------- |
|
804 // A text for "Checking contacts..." wait note |
|
805 // -------------------------------------------------------------------------- |
|
806 // |
|
807 RESOURCE DIALOG r_qtn_fdn_reading_contacts_wait_note |
|
808 { |
|
809 flags = EAknWaitNoteFlags; |
|
810 buttons = R_AVKON_SOFTKEYS_CANCEL; |
|
811 items = |
|
812 { |
|
813 DLG_LINE |
|
814 { |
|
815 type = EAknCtNote; |
|
816 id = EPbk2NoteCheckingContacts; |
|
817 control = AVKON_NOTE |
|
818 { |
|
819 layout = EWaitLayout; |
|
820 animation = R_QGN_GRAF_WAIT_BAR_ANIM; |
|
821 singular_label = qtn_fdn_reading_memory; |
|
822 }; |
|
823 } |
|
824 }; |
|
825 } |
|
826 |
|
827 // End of File |