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