phonebookui/Phonebook2/USIMExtension/rss/Pbk2USimSimCopy.rss
branchRCL_3
changeset 20 f4a778e096c2
child 21 9da50d567e3c
equal deleted inserted replaced
19:5b6f26637ad3 20:f4a778e096c2
       
     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 // -----------------------------------------------------------------------------
       
   222 //   
       
   223 // R_PSU2_COPY_TO_USIM_FIELDTYPE_MAPPINGS
       
   224 // A array that defines the rules for copying fields to the usim
       
   225 // with additional numbers
       
   226 //
       
   227 // -----------------------------------------------------------------------------
       
   228 //
       
   229 RESOURCE PSU2_COPY_TO_SIM_FIELDTYPE_MAPPINGS r_psu2_copy_to_usim_fieldtype_mappings
       
   230     {
       
   231     items =
       
   232         {
       
   233         PSU2_COPY_TO_SIM_FIELDTYPE_MAPPING
       
   234             {
       
   235             // Source: all email types
       
   236             sourceTypeSelector = VPBK_FIELD_TYPE_SELECTOR
       
   237                 {
       
   238                 versitProperties = 
       
   239                     {
       
   240                     VBK_FIELD_VERSIT_PROPERTY
       
   241                         {
       
   242                         name = EVPbkVersitNameEMAIL;
       
   243                         }
       
   244                     };
       
   245                 };
       
   246             // Target: USIM supports only general email
       
   247             targetSimType = R_VPBK_FIELD_TYPE_EMAILGEN;
       
   248             iBlockingError = KPsu2EMailFullError;
       
   249             },
       
   250         //To handle the situation of USIM supports more than one additional number.
       
   251         PSU2_COPY_TO_SIM_FIELDTYPE_MAPPING
       
   252             {
       
   253             sourceTypeSelector = VPBK_FIELD_TYPE_SELECTOR
       
   254                 {
       
   255                 versitProperties = 
       
   256                     {
       
   257                         VBK_FIELD_VERSIT_PROPERTY
       
   258                         {
       
   259                         name = EVPbkVersitNameTEL;
       
   260                         parameters = { EVPbkVersitParamHOME };
       
   261                         }
       
   262                     };
       
   263                 excludedParameters ={ EVPbkVersitParamFAX, EVPbkVersitParamWORK, 
       
   264                         EVPbkVersitParamCELL, EVPbkVersitParamVIDEO };
       
   265                 };
       
   266             // Target: USIM supports telephone( home )
       
   267             targetSimType = R_VPBK_FIELD_TYPE_LANDPHONEHOME;
       
   268             flags = 0;
       
   269             },
       
   270         PSU2_COPY_TO_SIM_FIELDTYPE_MAPPING
       
   271             {
       
   272             sourceTypeSelector = VPBK_FIELD_TYPE_SELECTOR
       
   273                 {
       
   274                 versitProperties = 
       
   275                     {
       
   276                     VBK_FIELD_VERSIT_PROPERTY
       
   277                         {
       
   278                         name = EVPbkVersitNameTEL;
       
   279                         parameters = { EVPbkVersitParamWORK };
       
   280                         }
       
   281                     };
       
   282                 excludedParameters ={ EVPbkVersitParamFAX, EVPbkVersitParamHOME, 
       
   283                         EVPbkVersitParamCELL, EVPbkVersitParamVIDEO };
       
   284                 };
       
   285 
       
   286             // Target: USIM supports telephone( work )
       
   287             targetSimType = R_VPBK_FIELD_TYPE_LANDPHONEWORK;
       
   288             flags = 0;
       
   289             },
       
   290         PSU2_COPY_TO_SIM_FIELDTYPE_MAPPING
       
   291             {
       
   292             sourceTypeSelector = VPBK_FIELD_TYPE_SELECTOR
       
   293                 {
       
   294                 versitProperties = 
       
   295                     {
       
   296                     VBK_FIELD_VERSIT_PROPERTY
       
   297                         {
       
   298                         name = EVPbkVersitNameTEL;
       
   299                         parameters = { EVPbkVersitParamFAX };
       
   300                         },
       
   301                     VBK_FIELD_VERSIT_PROPERTY
       
   302                         {
       
   303                         name = EVPbkVersitNameTEL;
       
   304                         parameters = { EVPbkVersitParamFAX, EVPbkVersitParamHOME };
       
   305                         },
       
   306                     VBK_FIELD_VERSIT_PROPERTY
       
   307                         {
       
   308                         name = EVPbkVersitNameTEL;
       
   309                         parameters = { EVPbkVersitParamFAX,EVPbkVersitParamWORK};
       
   310                         }
       
   311                     };
       
   312                 excludedParameters ={ EVPbkVersitParamCELL, EVPbkVersitParamVIDEO };
       
   313                 };
       
   314             // Target: USIM supports only fax general
       
   315             targetSimType = R_VPBK_FIELD_TYPE_FAXNUMBERGEN;
       
   316             flags = 0;
       
   317             },
       
   318         PSU2_COPY_TO_SIM_FIELDTYPE_MAPPING
       
   319             {
       
   320             // Source: all number types
       
   321             sourceTypeSelector = VPBK_FIELD_TYPE_SELECTOR
       
   322                 {
       
   323                 versitProperties = 
       
   324                     {
       
   325                     VBK_FIELD_VERSIT_PROPERTY
       
   326                         {
       
   327                         name = EVPbkVersitNameTEL;
       
   328                         },
       
   329                     VBK_FIELD_VERSIT_PROPERTY
       
   330                         {            
       
   331                         name = EVPbkVersitNameX;
       
   332                         extensionName = "X-ASSISTANT-TEL";            
       
   333                         }
       
   334                     };
       
   335                 nonVersitType =
       
   336                     {
       
   337                     EVPbkNonVersitTypeDTMF
       
   338                     };
       
   339                 };
       
   340             // Target: SIM supports only mobile general
       
   341             targetSimType = R_VPBK_FIELD_TYPE_MOBILEPHONEGEN;
       
   342             flags = 0;
       
   343             },
       
   344         PSU2_COPY_TO_SIM_FIELDTYPE_MAPPING
       
   345             {
       
   346             // Source: nick name
       
   347             sourceTypeSelector = VPBK_FIELD_TYPE_SELECTOR
       
   348                 {
       
   349                 versitProperties =
       
   350                     {
       
   351                     VBK_FIELD_VERSIT_PROPERTY
       
   352                         {
       
   353                         name = EVPbkVersitNameX;
       
   354                         extensionName = "X-NICKNAME";
       
   355                         }
       
   356                     };
       
   357                 };
       
   358             // Target: nick name
       
   359             targetSimType = R_VPBK_FIELD_TYPE_SECONDNAME;
       
   360             // Nick name can be truncated.
       
   361             flags = KPsu2AllowedToTruncate;
       
   362             iBlockingError = KPsu2SecondNameFullError;
       
   363             }
       
   364         };
       
   365     }
       
   366 
       
   367 // End of File
       
   368 
       
   369