phonebookui/Phonebook2/USIMExtension/rss/Pbk2USimSimCopy.rss
changeset 0 e686773b3f54
child 18 d4f567ce2e7c
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002-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:  Definitions of the copy to sim rules
       
    15 *
       
    16 */
       
    17 
       
    18 #include <VPbkEng.rsg>
       
    19 
       
    20 // -----------------------------------------------------------------------------
       
    21 //   
       
    22 // R_PSU2_FIELDITEM_LIST_QUERY
       
    23 // Copy field selection dialog
       
    24 //
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 RESOURCE AVKON_LIST_QUERY r_psu2_fielditem_list_query
       
    28     {
       
    29     flags = EGeneralQueryFlags;
       
    30     softkeys = R_AVKON_SOFTKEYS_OK_CANCEL;
       
    31     items = 
       
    32         {
       
    33         AVKON_LIST_QUERY_DLG_LINE 
       
    34             {
       
    35             control = AVKON_LIST_QUERY_CONTROL
       
    36                 {
       
    37                 listtype = EAknCtSingleGraphicPopupMenuListBox;
       
    38                 listbox = AVKON_LIST_QUERY_LIST
       
    39                     {
       
    40                     };
       
    41                 heading = " ";
       
    42                 };
       
    43             }
       
    44         };
       
    45     }
       
    46 
       
    47 /**
       
    48  * A general copy progress note
       
    49  */
       
    50 RESOURCE DIALOG r_psu2_copy_progress_note
       
    51 	{
       
    52 	flags = EAknProgressNoteFlags;
       
    53     buttons = R_AVKON_SOFTKEYS_CANCEL;
       
    54     items =
       
    55 		{
       
    56 		DLG_LINE
       
    57 			{
       
    58 			type = EAknCtNote;
       
    59 			id = EGeneralQuery;
       
    60 			control = AVKON_NOTE 
       
    61 				{ 
       
    62 				layout = EProgressLayout;
       
    63 				singular_label = qtn_gen_note_copying;
       
    64                 imagefile = AVKON_ICON_FILE;
       
    65                 imageid = EMbmAvkonQgn_note_copy;
       
    66                 imagemask = EMbmAvkonQgn_note_copy_mask;
       
    67 				};
       
    68 			}
       
    69 		};
       
    70 	}
       
    71 
       
    72 // ---------------------------------------------------------
       
    73 // general text query
       
    74 // ---------------------------------------------------------
       
    75 //
       
    76 RESOURCE DIALOG r_psu2_general_text_query
       
    77 	{
       
    78 	flags = EGeneralQueryFlags;
       
    79 	buttons =R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
    80     items =
       
    81 		{
       
    82 		DLG_LINE
       
    83 			{
       
    84 			type = EAknCtQuery;
       
    85 			id = EGeneralQuery;
       
    86 			control = AVKON_DATA_QUERY 
       
    87 				{ 
       
    88 				layout = EDataLayout;
       
    89 				control = EDWIN 
       
    90                     {
       
    91 					max_view_height_in_lines = 1;
       
    92                     default_case = EAknEditorTextCase;
       
    93 					allowed_case_modes = EAknEditorAllCaseModes;
       
    94                     };
       
    95 				};
       
    96 			}
       
    97 		};
       
    98 	}
       
    99 
       
   100 // ---------------------------------------------------------
       
   101 // general number query
       
   102 // ---------------------------------------------------------
       
   103 //
       
   104 RESOURCE DIALOG r_psu2_general_number_query
       
   105 	{
       
   106 	flags = EGeneralQueryFlags;
       
   107 	buttons =R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   108     items =
       
   109 		{
       
   110 		DLG_LINE
       
   111 			{
       
   112 			type = EAknCtQuery;
       
   113 			id = EGeneralQuery;
       
   114 			control = AVKON_DATA_QUERY 
       
   115 				{ 
       
   116 				layout = EPhoneLayout;
       
   117 				control = EDWIN 
       
   118                     {
       
   119 					max_view_height_in_lines = 1;
       
   120 					allowed_input_modes = EAknEditorNumericInputMode;
       
   121 					default_input_mode =  EAknEditorNumericInputMode;
       
   122                     };
       
   123 				};
       
   124 			}
       
   125 		};
       
   126 	}
       
   127 
       
   128 
       
   129 // -----------------------------------------------------------------------------
       
   130 //   
       
   131 // R_PSU2_NOTE_COPY_NOT_WORK
       
   132 // Error Note for Copy To Sim, with no success.
       
   133 //
       
   134 // -----------------------------------------------------------------------------
       
   135 //
       
   136 RESOURCE AKN_NOTE_WRAPPER r_psu2_note_copy_not_work
       
   137     {
       
   138     resId = R_AKN_ERROR_NOTE_DIALOG_WAIT;
       
   139     timeout = EAknErrorNoteTimeout;
       
   140     tone = EAknNoteDialogErrorTone;
       
   141     text = qtn_pbcop_note_copy_not_work;
       
   142     }
       
   143 	
       
   144 // -----------------------------------------------------------------------------
       
   145 //   
       
   146 // R_PSU2_COPY_TO_SIM_FIELDTYPE_MAPPINGS
       
   147 // A array that defines the rules for copying fields to the sim
       
   148 //
       
   149 // -----------------------------------------------------------------------------
       
   150 //
       
   151 RESOURCE PSU2_COPY_TO_SIM_FIELDTYPE_MAPPINGS r_psu2_copy_to_sim_fieldtype_mappings
       
   152     {
       
   153     items =
       
   154         {
       
   155         PSU2_COPY_TO_SIM_FIELDTYPE_MAPPING
       
   156             {
       
   157             // Source: all email types
       
   158             sourceTypeSelector = VPBK_FIELD_TYPE_SELECTOR
       
   159                 {
       
   160                 versitProperties = 
       
   161                     {
       
   162                     VBK_FIELD_VERSIT_PROPERTY
       
   163                         {
       
   164                         name = EVPbkVersitNameEMAIL;
       
   165                         }
       
   166                     };
       
   167                 };
       
   168             // Target: USIM supports only general email
       
   169             targetSimType = R_VPBK_FIELD_TYPE_EMAILGEN;
       
   170             iBlockingError = KPsu2EMailFullError;
       
   171             },
       
   172         PSU2_COPY_TO_SIM_FIELDTYPE_MAPPING
       
   173             {
       
   174             // Source: all number types
       
   175             sourceTypeSelector = VPBK_FIELD_TYPE_SELECTOR
       
   176                 {
       
   177                 versitProperties = 
       
   178                     {
       
   179                     VBK_FIELD_VERSIT_PROPERTY
       
   180                         {
       
   181                         name = EVPbkVersitNameTEL;
       
   182                         },
       
   183                     VBK_FIELD_VERSIT_PROPERTY
       
   184                         {            
       
   185                         name = EVPbkVersitNameX;
       
   186                         extensionName = "X-ASSISTANT-TEL";            
       
   187                         }
       
   188                     };
       
   189                 nonVersitType =
       
   190                     {
       
   191                     EVPbkNonVersitTypeDTMF
       
   192                     };
       
   193                 };
       
   194             // Target: SIM supports only mobile general
       
   195             targetSimType = R_VPBK_FIELD_TYPE_MOBILEPHONEGEN;
       
   196             flags = 0;
       
   197             },
       
   198         PSU2_COPY_TO_SIM_FIELDTYPE_MAPPING
       
   199             {
       
   200             // Source: nick name
       
   201             sourceTypeSelector = VPBK_FIELD_TYPE_SELECTOR
       
   202                 {
       
   203                 versitProperties =
       
   204                     {
       
   205                     VBK_FIELD_VERSIT_PROPERTY
       
   206                         {
       
   207                         name = EVPbkVersitNameX;
       
   208                         extensionName = "X-NICKNAME";
       
   209                         }
       
   210                     };
       
   211                 };
       
   212             // Target: nick name
       
   213             targetSimType = R_VPBK_FIELD_TYPE_SECONDNAME;
       
   214             // Nick name can be truncated.
       
   215             flags = KPsu2AllowedToTruncate;
       
   216             iBlockingError = KPsu2SecondNameFullError;
       
   217             }
       
   218         };
       
   219     }
       
   220 
       
   221 // End of File
       
   222 
       
   223