phonebookui/Phonebook2/MMCExtension/rss/Pbk2MmcUiRes.rss
changeset 0 e686773b3f54
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 MMC UI Extension resource information.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // Phonebook 2
       
    20 #include "pbk2mmcuiuid.h"
       
    21 #include "pmucommands.hrh"
       
    22 #include <pbk2commands.hrh>
       
    23 #include <pbk2commands.rsg>
       
    24 #include <pbk2uiextension.rh>
       
    25 #include <pbk2viewid.hrh>
       
    26 #include <phonebook2.loc>
       
    27 #include <pbk2menufilteringflags.hrh>
       
    28 
       
    29 // System includes
       
    30 #include <avkon.loc>
       
    31 #include <uikon.rh>
       
    32 #include <eikon.rh>
       
    33 #include <avkon.rh>
       
    34 #include <avkon.rsg>
       
    35 #include <avkon.mbg>
       
    36 #include <avkonicons.hrh>
       
    37 #include <commondialogs.hrh>
       
    38 #include <commondialogs.rh>
       
    39 
       
    40 // --------------------------------------------------------------------------
       
    41 // Resource identifier
       
    42 // --------------------------------------------------------------------------
       
    43 //
       
    44 NAME P2MU  // From Phonebook 2 MMC UI
       
    45 
       
    46 // --------------------------------------------------------------------------
       
    47 // Standard resource signature
       
    48 // --------------------------------------------------------------------------
       
    49 //
       
    50 RESOURCE RSS_SIGNATURE { }
       
    51 
       
    52 // --------------------------------------------------------------------------
       
    53 // Extension information
       
    54 // --------------------------------------------------------------------------
       
    55 //
       
    56 RESOURCE PHONEBOOK2_EXTENSION_INFORMATION
       
    57         r_phonebook2_mmc_ui_extension_information
       
    58     {
       
    59     version = 0;
       
    60 
       
    61     implementationUid = KPbk2MMCExtensionImplementationUID;
       
    62 
       
    63     menuCommandRange = PHONEBOOK2_EXTENSION_RANGE
       
    64         {
       
    65         firstId = EMmcUiExtensionFirstCommand;
       
    66         lastId = EMmcUiExtensionLastCommand;
       
    67         };
       
    68     overwrittenCommands = {};
       
    69     extensionMenus =
       
    70         {
       
    71         PHONEBOOK2_EXTENSION_MENU_RESOURCE
       
    72             {
       
    73             viewId = EPbk2NamesListViewId;
       
    74             menuFilteringFlags = KPbk2MultiDriveAvailable;
       
    75             parentMenu = R_PHONEBOOK2_NAMESLIST_BACKUP_MENU_PLACEHOLDER;
       
    76             prevCommand = EPbk2CmdBackupPlaceholderFirst;
       
    77             menuPane = r_pmu_backup_menu;
       
    78             },
       
    79         PHONEBOOK2_EXTENSION_MENU_RESOURCE
       
    80             {
       
    81             viewId = EPbk2NamesListViewId;
       
    82             menuFilteringFlags =
       
    83                 KPbk2MultiDriveAvailable | KPbk2ListContainsNoMarkedItems;
       
    84             parentMenu = r_pmu_cascading_backup_menu;
       
    85             prevCommand = EPmuCmdFirstBackupCascadeId;
       
    86             menuPane = r_pmu_import_from_memory_card_menu;
       
    87             },
       
    88         PHONEBOOK2_EXTENSION_MENU_RESOURCE
       
    89             {
       
    90             viewId = EPbk2NamesListViewId;
       
    91             menuFilteringFlags = KPbk2MultiDriveAvailable | KPbk2ListContainsItems;
       
    92             parentMenu = r_pmu_cascading_backup_menu;
       
    93             prevCommand = EPmuCmdFirstBackupCascadeId;
       
    94             menuPane = r_pmu_export_to_memory_card_menu;
       
    95             }
       
    96         };
       
    97     viewIds = {};
       
    98     iconArrays = {};
       
    99     }
       
   100 
       
   101 // --------------------------------------------------------------------------
       
   102 // Backup menu item for names list
       
   103 // --------------------------------------------------------------------------
       
   104 //
       
   105 RESOURCE MENU_PANE r_pmu_backup_menu
       
   106     {
       
   107     items =
       
   108         {
       
   109         MENU_ITEM
       
   110             {
       
   111             command = EPmuCmdCascadingBackup;
       
   112             cascade = r_pmu_cascading_backup_menu;
       
   113             txt = qtn_phob_opt_backup;
       
   114             }
       
   115         };
       
   116     }
       
   117 
       
   118 // --------------------------------------------------------------------------
       
   119 // Cascading backup menu
       
   120 // Contains a place holder item that is always dimmed.
       
   121 // Place holder is added because otherwise it would be impossible to
       
   122 // insert menu items to the first place.
       
   123 // --------------------------------------------------------------------------
       
   124 //
       
   125 RESOURCE MENU_PANE r_pmu_cascading_backup_menu
       
   126     {
       
   127     items =
       
   128         {
       
   129         MENU_ITEM
       
   130             {
       
   131             command = EPmuCmdFirstBackupCascadeId;
       
   132             txt = "";
       
   133             flags = EEikMenuItemDimmed;
       
   134             }
       
   135         };
       
   136     }
       
   137 
       
   138 // --------------------------------------------------------------------------
       
   139 // Backup submenu item for import
       
   140 // --------------------------------------------------------------------------
       
   141 //
       
   142 RESOURCE MENU_PANE r_pmu_import_from_memory_card_menu
       
   143     {
       
   144     items =
       
   145         {
       
   146         MENU_ITEM
       
   147             {
       
   148             command = EPmuCmdImportFromMemoryCard;
       
   149             txt = qtn_phob_opt_backup_from_mmc;
       
   150             }
       
   151         };
       
   152     }
       
   153 
       
   154 // --------------------------------------------------------------------------
       
   155 // Backup submenu item for export
       
   156 // --------------------------------------------------------------------------
       
   157 //
       
   158 RESOURCE MENU_PANE r_pmu_export_to_memory_card_menu
       
   159     {
       
   160     items =
       
   161         {
       
   162         MENU_ITEM
       
   163             {
       
   164             command = EPmuCmdExportToMemoryCard;
       
   165             txt = qtn_phob_opt_backup_to_mmc;
       
   166             }
       
   167         };
       
   168     }
       
   169 
       
   170 // --------------------------------------------------------------------------
       
   171 // Confirm deletion of existing contacts
       
   172 // --------------------------------------------------------------------------
       
   173 //
       
   174 RESOURCE DIALOG r_phonebook2_confirm_delete_existing_contacts
       
   175     {
       
   176     flags = EGeneralQueryFlags;
       
   177     buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
       
   178     items =
       
   179         {
       
   180         DLG_LINE
       
   181             {
       
   182             type = EAknCtQuery;
       
   183             id = EGeneralQuery;
       
   184             control = AVKON_CONFIRMATION_QUERY
       
   185                 {
       
   186                 layout = EConfirmationQueryLayout;
       
   187                 };
       
   188             }
       
   189         };
       
   190     }
       
   191 
       
   192 // --------------------------------------------------------------------------
       
   193 // A general copy progress note
       
   194 // --------------------------------------------------------------------------
       
   195 //
       
   196 RESOURCE DIALOG r_pmu_copy_progress_note
       
   197     {
       
   198     flags = EAknProgressNoteFlags;
       
   199     buttons = R_AVKON_SOFTKEYS_CANCEL;
       
   200     items =
       
   201         {
       
   202         DLG_LINE
       
   203             {
       
   204             type = EAknCtNote;
       
   205             id = EGeneralQuery;
       
   206             control = AVKON_NOTE
       
   207                 {
       
   208                 layout = EProgressLayout;
       
   209                 singular_label = qtn_gen_note_copying;
       
   210                 imagefile = AVKON_ICON_FILE;
       
   211                 imageid = EMbmAvkonQgn_note_copy;
       
   212                 imagemask = EMbmAvkonQgn_note_copy_mask;
       
   213                 };
       
   214             }
       
   215         };
       
   216     }
       
   217 
       
   218 // --------------------------------------------------------------------------
       
   219 // Error note for low memory situation
       
   220 // --------------------------------------------------------------------------
       
   221 //
       
   222 RESOURCE DIALOG r_memlo_error_note
       
   223     {
       
   224     flags = EAknErrorNoteFlags | EEikDialogFlagWait |
       
   225             EEikDialogFlagCloseDialogWhenTapped;
       
   226     buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
       
   227     items =
       
   228         {
       
   229         DLG_LINE
       
   230             {
       
   231             type = EAknCtNote;
       
   232             id = EGeneralNote;
       
   233             control = AVKON_NOTE
       
   234                 {
       
   235                 layout = EGeneralLayout;
       
   236                 animation = R_QGN_NOTE_ERROR_ANIM;
       
   237                 };
       
   238             }
       
   239         };
       
   240     }
       
   241 
       
   242 // --------------------------------------------------------------------------
       
   243 // Memory selection dialog
       
   244 // --------------------------------------------------------------------------
       
   245 //
       
   246 RESOURCE MEMORYSELECTIONDIALOG r_phonebook2_memory_selection_dialog
       
   247     {
       
   248     softkey_1 = text_softkey_select;
       
   249     softkey_2 = text_softkey_cancel;
       
   250     }
       
   251 
       
   252 // --------------------------------------------------------------------------
       
   253 // Query text for confirming if the user wants to delete
       
   254 // --------------------------------------------------------------------------
       
   255 //
       
   256 RESOURCE TBUF r_qtn_phob_query_copy_mmc_all
       
   257     {
       
   258     buf = qtn_phob_query_copy_mmc_all;
       
   259     }
       
   260 
       
   261 // ---------------------------------------------------------------------------
       
   262 // Not enough memory in phone
       
   263 // ---------------------------------------------------------------------------
       
   264 //
       
   265 RESOURCE TBUF r_qtn_memlo_not_enough_memory
       
   266     {
       
   267     buf = qtn_memlo_not_enough_memory;
       
   268     }
       
   269 
       
   270 // ---------------------------------------------------------------------------
       
   271 // Not enough memory on MMC
       
   272 // ---------------------------------------------------------------------------
       
   273 //
       
   274 RESOURCE TBUF r_qtn_memlo_mmc_not_enough_memory
       
   275     {
       
   276     buf = qtn_memlo_mmc_not_enough_memory;
       
   277     }
       
   278 
       
   279 // -----------------------------------------------------------------------------
       
   280 // Store not available
       
   281 // -----------------------------------------------------------------------------
       
   282 //
       
   283 RESOURCE TBUF r_qtn_phob_store_not_available
       
   284     {
       
   285     buf = qtn_phob_store_not_available;
       
   286     }
       
   287 
       
   288 // ---------------------------------------------------------------------------
       
   289 // %U copied
       
   290 // ---------------------------------------------------------------------------
       
   291 //
       
   292 RESOURCE TBUF r_qtn_pbcop_note_contact_copied_pb2
       
   293     {
       
   294     buf = qtn_pbcop_note_contact_copied_pb2;
       
   295     }
       
   296 
       
   297 // ---------------------------------------------------------------------------
       
   298 // %N contacts copied
       
   299 // ---------------------------------------------------------------------------
       
   300 //
       
   301 RESOURCE TBUF r_qtn_pbcop_note_n_entry_copy_pb
       
   302     {
       
   303     buf = qtn_pbcop_note_n_entry_copy_pb;
       
   304     }
       
   305 
       
   306 // ---------------------------------------------------------------------------
       
   307 // 1 contact copied, 1 contact not copied
       
   308 // ---------------------------------------------------------------------------
       
   309 //
       
   310 RESOURCE TBUF r_qtn_pbcop_info_one_ok_one_not
       
   311     {
       
   312     buf = qtn_pbcop_info_one_ok_one_not;
       
   313     }
       
   314 
       
   315 // ---------------------------------------------------------------------------
       
   316 // 1 contact copied, %N contacts not copied
       
   317 // ---------------------------------------------------------------------------
       
   318 //
       
   319 RESOURCE TBUF r_qtn_pbcop_info_one_ok_n_not
       
   320     {
       
   321     buf = qtn_pbcop_info_one_ok_n_not;
       
   322     }
       
   323 
       
   324 // ---------------------------------------------------------------------------
       
   325 // %N contacts copied, 1 contact not copied
       
   326 // ---------------------------------------------------------------------------
       
   327 //
       
   328 RESOURCE TBUF r_qtn_pbcop_info_n_ok_one_not
       
   329     {
       
   330     buf = qtn_pbcop_info_n_ok_one_not;
       
   331     }
       
   332 
       
   333 // ---------------------------------------------------------------------------
       
   334 // %0N contact copied, %1N contacts not copied
       
   335 // ---------------------------------------------------------------------------
       
   336 //
       
   337 RESOURCE TBUF r_qtn_pbcop_info_n_ok_n_not
       
   338     {
       
   339     buf = qtn_pbcop_info_n_ok_n_not;
       
   340     }
       
   341 
       
   342 // ---------------------------------------------------------------------------
       
   343 // One entry not copied to Phonebook
       
   344 // ---------------------------------------------------------------------------
       
   345 //
       
   346 RESOURCE TBUF r_qtn_pbcop_note_entry_not_copied
       
   347     {
       
   348     buf = qtn_pbcop_note_entry_not_copied;
       
   349     }
       
   350 
       
   351 // ---------------------------------------------------------------------------
       
   352 // Multiple entries copied to SIM memory
       
   353 // ---------------------------------------------------------------------------
       
   354 //
       
   355 RESOURCE TBUF r_qtn_pbcop_note_contacts_copied
       
   356     {
       
   357     buf = qtn_pbcop_note_contacts_copied;
       
   358     }
       
   359 
       
   360 // End of File