phonebookui/Phonebook/Engine/rss/cntmodel.rss
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *     Customised contact model default template.
       
    16 *     Compilation of this file overwrites z:\system\data\cntmodel.rsc which is
       
    17 *     initially produced by building cntmodel (Contacts Model).
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 // INCLUDES
       
    23 #include <badef.rh>
       
    24 #include <cntdef.hrh>
       
    25 #include <cntmodel.rh>
       
    26 #include <PbkConfig.hrh>
       
    27 #include "PbkEng.hrh"
       
    28 #include <phonebook.loc>
       
    29 
       
    30 
       
    31 // MACROS
       
    32 
       
    33 // From uikon.hrh
       
    34 #define EEikResourceSignatureValue 4
       
    35 
       
    36 
       
    37 //  RESOURCE DEFINITIONS 
       
    38 
       
    39 // From uikon.rh - avoids PbkEng requiring Uikon
       
    40 //
       
    41 STRUCT RSS_SIGNATURE
       
    42     {
       
    43     LONG signature=EEikResourceSignatureValue;
       
    44     SRLINK self;
       
    45     }
       
    46 
       
    47 // Resource signature
       
    48 RESOURCE RSS_SIGNATURE { }
       
    49 
       
    50 
       
    51 /**
       
    52  * Phonebook's default contact card template. This resource is read by cntmodel
       
    53  * when it creates a new database.
       
    54  *
       
    55  * @see FIELD
       
    56  * @see CContactDatabase#CreateTemplateAndPrefsL()
       
    57  */
       
    58 RESOURCE ARRAY r_cntui_new_field_defns
       
    59     {
       
    60     items=
       
    61         {
       
    62 // home or personal jobbies
       
    63         FIELD	// Name: last name
       
    64 			{
       
    65 			fieldStorageType = KStorageTypeText;
       
    66 			contactFieldType = KUidContactFieldFamilyNameValue;
       
    67 			vCardMapping = KIntContactFieldVCardMapUnusedN;
       
    68 			category = EContactCategoryHome;
       
    69 			fieldName = qtn_phob_lbl_last_name;
       
    70 			},
       
    71         FIELD	// Name: first name
       
    72 			{
       
    73 			fieldStorageType = KStorageTypeText;
       
    74 			contactFieldType = KUidContactFieldGivenNameValue;
       
    75 			vCardMapping = KIntContactFieldVCardMapUnusedN;
       
    76 			category = EContactCategoryHome;
       
    77 			fieldName = qtn_phob_lbl_first_name;
       
    78 			},
       
    79         FIELD	// Phone Number (Home)
       
    80 			{
       
    81 			fieldStorageType = KStorageTypeText;
       
    82 			contactFieldType = KUidContactFieldPhoneNumberValue;
       
    83 			vCardMapping = KIntContactFieldVCardMapTEL;
       
    84 			extraMapping=
       
    85 			    {
       
    86                 // NOTE: Ordering differs from contact model default template
       
    87 			    MAPPING { mapping=KIntContactFieldVCardMapVOICE; },
       
    88                 MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
    89 			    };
       
    90 			category = EContactCategoryHome;
       
    91             fieldName = qtn_phob_lbl_number_home;
       
    92 			},
       
    93         FIELD	// Phone Number Mobile  (Home)
       
    94 			{
       
    95 			fieldStorageType = KStorageTypeText;
       
    96 			contactFieldType = KUidContactFieldPhoneNumberValue;
       
    97 			vCardMapping = KIntContactFieldVCardMapTEL;
       
    98 			extraMapping=
       
    99 			    {
       
   100                 // NOTE: Ordering differs from contact model default template
       
   101 			    MAPPING { mapping=KIntContactFieldVCardMapCELL; },
       
   102                 MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
   103 			    };
       
   104 			category = EContactCategoryHome;
       
   105 			fieldName = qtn_phob_lbl_number_mobile_home;
       
   106 			},
       
   107         FIELD	// Fax Number (Home)
       
   108 			{
       
   109 			fieldStorageType = KStorageTypeText;
       
   110 			contactFieldType = KUidContactFieldFaxValue;
       
   111 			vCardMapping = KIntContactFieldVCardMapTEL;
       
   112 			extraMapping=
       
   113 			    {
       
   114                 // NOTE: Ordering differs from contact model default template
       
   115 			    MAPPING { mapping=KIntContactFieldVCardMapFAX; },
       
   116                 MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
   117 			    };
       
   118 			category = EContactCategoryHome;
       
   119 			fieldName = qtn_phob_lbl_fax_home;
       
   120 			},
       
   121         FIELD	// Email Address (Home)
       
   122 			{
       
   123 			fieldStorageType = KStorageTypeText;
       
   124 			contactFieldType = KUidContactFieldEMailValue;
       
   125 			vCardMapping = KIntContactFieldVCardMapEMAILINTERNET;
       
   126 			extraMapping=
       
   127 			    {
       
   128 			    MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
   129                 };
       
   130 			category = EContactCategoryHome;
       
   131 			fieldName = qtn_phob_lbl_email_home;
       
   132 			},
       
   133         FIELD	// URL (Home)
       
   134 			{
       
   135 			fieldStorageType = KStorageTypeText;
       
   136 			contactFieldType = KUidContactFieldUrlValue;
       
   137 			vCardMapping = KIntContactFieldVCardMapURL;
       
   138 			extraMapping=
       
   139 			    {
       
   140 			    MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
   141 			    };
       
   142 			category = EContactCategoryHome;
       
   143 			fieldName = qtn_phob_lbl_url_home;
       
   144 			},
       
   145 		FIELD	// Label Address (Home)
       
   146 			{
       
   147             // NOTE: This data differs from contact model default template
       
   148 			fieldStorageType = KStorageTypeText;
       
   149 			contactFieldType = KUidContactFieldAddressValue;
       
   150 			vCardMapping = KIntContactFieldVCardMapLABEL;
       
   151 			extraMapping=
       
   152 			    {
       
   153 			    MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
   154 			    };
       
   155 			category = EContactCategoryHome;
       
   156 			fieldName = qtn_phob_lbl_address_home;
       
   157 			},
       
   158 		FIELD   // P.O.box (Home)
       
   159 			{
       
   160 			fieldStorageType=KStorageTypeText;
       
   161 			contactFieldType=KUidContactFieldPostOfficeValue;
       
   162 			vCardMapping=KIntContactFieldVCardMapPOSTOFFICE;
       
   163 			extraMapping=
       
   164 			    {
       
   165 			    MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
   166 			    };
       
   167 			category=EContactCategoryHome;
       
   168 			fieldName=qtn_phob_lbl_pobox_home; 
       
   169 			},
       
   170 		FIELD   // Extension address (Home)
       
   171 			{
       
   172 			fieldStorageType=KStorageTypeText;
       
   173 			contactFieldType=KUidContactFieldExtendedAddressValue;
       
   174 			vCardMapping=KIntContactFieldVCardMapEXTENDEDADR;
       
   175 			extraMapping=
       
   176 			    {
       
   177 			    MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
   178 			    };
       
   179 			category=EContactCategoryHome;
       
   180 			fieldName=qtn_phob_lbl_extencion_home;
       
   181 			},
       
   182 		FIELD   // Street (Home)
       
   183 			{
       
   184 			fieldStorageType=KStorageTypeText;
       
   185 			contactFieldType=KUidContactFieldAddressValue;
       
   186 			vCardMapping=KIntContactFieldVCardMapADR;
       
   187 			extraMapping=
       
   188 			    {
       
   189 			    MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
   190 			    };
       
   191 			category=EContactCategoryHome;
       
   192 			fieldName=qtn_phob_lbl_street_home;
       
   193 		    },
       
   194         FIELD   // Postal code (Home)
       
   195 			{
       
   196 			fieldStorageType=KStorageTypeText;
       
   197 			contactFieldType=KUidContactFieldPostCodeValue;
       
   198 			vCardMapping=KIntContactFieldVCardMapPOSTCODE;
       
   199 			extraMapping=
       
   200 			    {
       
   201 			    MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
   202 			    };
       
   203 			category=EContactCategoryHome;
       
   204 			fieldName=qtn_phob_lbl_postal_code_home;
       
   205             },
       
   206         FIELD   // City (Home)
       
   207 			{
       
   208 			fieldStorageType=KStorageTypeText;
       
   209 			contactFieldType=KUidContactFieldLocalityValue;
       
   210 			vCardMapping=KIntContactFieldVCardMapLOCALITY;
       
   211 			extraMapping=
       
   212 			    {
       
   213 			    MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
   214 			    };
       
   215 			category=EContactCategoryHome;
       
   216 			fieldName=qtn_phob_lbl_city_home;
       
   217 			},
       
   218 		FIELD   // State (Home)
       
   219 			{
       
   220 			fieldStorageType=KStorageTypeText;
       
   221 			contactFieldType=KUidContactFieldRegionValue;
       
   222 			vCardMapping=KIntContactFieldVCardMapREGION;
       
   223 			extraMapping=
       
   224 			    {
       
   225 			    MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
   226 			    };
       
   227 			category=EContactCategoryHome;
       
   228 			fieldName=qtn_phob_lbl_state_home;
       
   229 			},
       
   230 		FIELD   // Country (Home)
       
   231 			{
       
   232 			fieldStorageType=KStorageTypeText;
       
   233 			contactFieldType=KUidContactFieldCountryValue;
       
   234 			vCardMapping=KIntContactFieldVCardMapCOUNTRY;
       
   235 			extraMapping=
       
   236 			    {
       
   237 			    MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
   238 			    };
       
   239 			category=EContactCategoryHome;
       
   240 			fieldName=qtn_phob_lbl_country_home;
       
   241 			},
       
   242 
       
   243 
       
   244 // work related
       
   245         FIELD	// Job Title
       
   246 			{
       
   247 			fieldStorageType = KStorageTypeText;
       
   248 			contactFieldType = KUidContactFieldJobTitleValue;
       
   249 			vCardMapping = KIntContactFieldVCardMapTITLE;
       
   250 			category = EContactCategoryWork;
       
   251 			fieldName = qtn_phob_lbl_job_title;
       
   252 			},
       
   253         FIELD	// Company Name
       
   254 			{
       
   255 			fieldStorageType = KStorageTypeText;
       
   256 			contactFieldType = KUidContactFieldCompanyNameValue;
       
   257 			vCardMapping = KIntContactFieldVCardMapORG;
       
   258 			category = EContactCategoryWork;
       
   259 			fieldName = qtn_phob_lbl_company_name;
       
   260 			},
       
   261         FIELD	// Phone Number (Work)
       
   262 			{
       
   263 			fieldStorageType = KStorageTypeText;
       
   264 			contactFieldType = KUidContactFieldPhoneNumberValue;
       
   265 			vCardMapping = KIntContactFieldVCardMapTEL;
       
   266 			extraMapping=
       
   267 			    {
       
   268                 // NOTE: Ordering differs from contact model default template
       
   269 			    MAPPING { mapping=KIntContactFieldVCardMapVOICE; },
       
   270 			    MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   271 			    };
       
   272 			category = EContactCategoryWork;
       
   273 			fieldName = qtn_phob_lbl_number_work;
       
   274 			},
       
   275         FIELD	// Phone Number Mobile  (Work)
       
   276 			{
       
   277 			fieldStorageType = KStorageTypeText;
       
   278 			contactFieldType = KUidContactFieldPhoneNumberValue;
       
   279 			vCardMapping = KIntContactFieldVCardMapTEL;
       
   280 			extraMapping=
       
   281 			    {
       
   282                 // NOTE: Contact model default template has mapping: WORK,VOICE,CELL
       
   283 			    MAPPING { mapping=KIntContactFieldVCardMapCELL; },
       
   284                 MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   285 			    };
       
   286 			category = EContactCategoryWork;
       
   287 			fieldName = qtn_phob_lbl_number_mobile_work;
       
   288 			},
       
   289         FIELD	// Fax Number (Work)
       
   290 			{
       
   291 			fieldStorageType = KStorageTypeText;
       
   292 			contactFieldType = KUidContactFieldFaxValue;
       
   293 			vCardMapping = KIntContactFieldVCardMapTEL;
       
   294 			extraMapping=
       
   295 			    {
       
   296                 // NOTE: Ordering differs from contact model default template
       
   297 			    MAPPING { mapping=KIntContactFieldVCardMapFAX; },
       
   298                 MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   299 			    };
       
   300 			category = EContactCategoryWork;
       
   301 			fieldName = qtn_phob_lbl_fax_work;
       
   302 			},
       
   303         FIELD	// Email Address (Work)
       
   304 			{
       
   305 			fieldStorageType = KStorageTypeText;
       
   306 			contactFieldType = KUidContactFieldEMailValue;
       
   307 			vCardMapping = KIntContactFieldVCardMapEMAILINTERNET;
       
   308 			extraMapping=
       
   309 			    {
       
   310 			    MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   311                 };
       
   312 			category = EContactCategoryWork;
       
   313 			fieldName = qtn_phob_lbl_email_work;
       
   314 			},
       
   315         FIELD	// URL (Work)
       
   316 			{
       
   317 			fieldStorageType = KStorageTypeText;
       
   318 			contactFieldType = KUidContactFieldUrlValue;
       
   319 			vCardMapping = KIntContactFieldVCardMapURL;
       
   320 			extraMapping=
       
   321 			    {
       
   322 			    MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   323 			    };
       
   324 			category = EContactCategoryWork;
       
   325 			fieldName = qtn_phob_lbl_url_work;
       
   326 			},
       
   327 		FIELD	// Label Address (Work)
       
   328 			{
       
   329 			fieldStorageType = KStorageTypeText;
       
   330 			contactFieldType = KUidContactFieldAddressValue;
       
   331 			vCardMapping = KIntContactFieldVCardMapLABEL;
       
   332 			extraMapping=
       
   333 			    {
       
   334 			    MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   335 			    };
       
   336 			category = EContactCategoryWork;
       
   337 			fieldName = qtn_phob_lbl_address_work;
       
   338 			},
       
   339 		FIELD   // P.O.box (Work)
       
   340 			{
       
   341 			fieldStorageType=KStorageTypeText;
       
   342 			contactFieldType=KUidContactFieldPostOfficeValue;
       
   343 			vCardMapping=KIntContactFieldVCardMapPOSTOFFICE;
       
   344 			extraMapping=
       
   345 			    {
       
   346 			    MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   347 			    };
       
   348 			category=EContactCategoryWork;
       
   349 			fieldName=qtn_phob_lbl_pobox_work; 
       
   350 			},
       
   351 		FIELD   // Extension address (work)
       
   352 			{
       
   353 			fieldStorageType=KStorageTypeText;
       
   354 			contactFieldType=KUidContactFieldExtendedAddressValue;
       
   355 			vCardMapping=KIntContactFieldVCardMapEXTENDEDADR;
       
   356 			extraMapping=
       
   357 			    {
       
   358 			    MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   359 			    };
       
   360 			category=EContactCategoryWork;
       
   361 			fieldName=qtn_phob_lbl_extencion_work;
       
   362 			},
       
   363 		FIELD   // Street (Work)
       
   364 			{
       
   365 			fieldStorageType=KStorageTypeText;
       
   366 			contactFieldType=KUidContactFieldAddressValue;
       
   367 			vCardMapping=KIntContactFieldVCardMapADR;
       
   368 			extraMapping=
       
   369 			    {
       
   370 			    MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   371 			    };
       
   372 			category=EContactCategoryWork;
       
   373 			fieldName=qtn_phob_lbl_street_work;
       
   374             },
       
   375 		FIELD   // Postal code (Work)
       
   376 			{
       
   377 			fieldStorageType=KStorageTypeText;
       
   378 			contactFieldType=KUidContactFieldPostCodeValue;
       
   379 			vCardMapping=KIntContactFieldVCardMapPOSTCODE;
       
   380 			extraMapping=
       
   381 			    {
       
   382 			    MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   383 			    };
       
   384 			category=EContactCategoryWork;
       
   385 			fieldName=qtn_phob_lbl_postal_code_work;
       
   386             },
       
   387         FIELD   // City (Work)
       
   388 			{
       
   389 			fieldStorageType=KStorageTypeText;
       
   390 			contactFieldType=KUidContactFieldLocalityValue;
       
   391 			vCardMapping=KIntContactFieldVCardMapLOCALITY;
       
   392 			extraMapping=
       
   393 			    {
       
   394 			    MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   395 			    };
       
   396 			category=EContactCategoryWork;
       
   397 			fieldName=qtn_phob_lbl_city_work;
       
   398 			},
       
   399 		FIELD   // State (work)
       
   400 			{
       
   401 			fieldStorageType=KStorageTypeText;
       
   402 			contactFieldType=KUidContactFieldRegionValue;
       
   403 			vCardMapping=KIntContactFieldVCardMapREGION;
       
   404 			extraMapping=
       
   405 			    {
       
   406 			    MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   407 			    };
       
   408 			category=EContactCategoryWork;
       
   409 			fieldName=qtn_phob_lbl_state_work;
       
   410 			},
       
   411 		FIELD   // Country (Work)
       
   412 			{
       
   413 			fieldStorageType=KStorageTypeText;
       
   414 			contactFieldType=KUidContactFieldCountryValue;
       
   415 			vCardMapping=KIntContactFieldVCardMapCOUNTRY;
       
   416 			extraMapping=
       
   417 			    {
       
   418 			    MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   419 			    };
       
   420 			category=EContactCategoryWork;
       
   421 			fieldName=qtn_phob_lbl_country_work;
       
   422 			},
       
   423 
       
   424 // general
       
   425         FIELD	// Phone Number (general)
       
   426 			{
       
   427 			fieldStorageType = KStorageTypeText;
       
   428 			contactFieldType = KUidContactFieldPhoneNumberValue;
       
   429 			vCardMapping = KIntContactFieldVCardMapTEL;
       
   430 			extraMapping=
       
   431 			    {
       
   432 			    MAPPING { mapping=KIntContactFieldVCardMapVOICE; }
       
   433 			    };
       
   434 			category = EContactCategoryNone;
       
   435 			fieldName = qtn_phob_lbl_number_standard;
       
   436             },
       
   437         FIELD	// Phone Number Mobile (general)
       
   438 			{
       
   439 			fieldStorageType = KStorageTypeText;
       
   440 			contactFieldType = KUidContactFieldPhoneNumberValue;
       
   441 			vCardMapping = KIntContactFieldVCardMapTEL;
       
   442 			extraMapping=
       
   443 			    {
       
   444 			    MAPPING { mapping=KIntContactFieldVCardMapCELL; }
       
   445 			    };
       
   446 			category = EContactCategoryNone;
       
   447 			fieldName = qtn_phob_lbl_number_mobile;
       
   448 			},
       
   449         // NOTE: Contact model default template has only HOME and WORK pager
       
   450         FIELD	// Pager Number
       
   451 			{
       
   452 			fieldStorageType = KStorageTypeText;
       
   453 			contactFieldType = KUidContactFieldPhoneNumberValue;
       
   454 			vCardMapping = KIntContactFieldVCardMapTEL;
       
   455 			extraMapping=
       
   456 			    {
       
   457 			    MAPPING { mapping=KIntContactFieldVCardMapPAGER; }
       
   458 			    };
       
   459 			category = EContactCategoryNone;
       
   460 			fieldName = qtn_phob_lbl_pager;
       
   461 			},
       
   462         FIELD	// Fax Number (general)
       
   463 			{
       
   464 			fieldStorageType = KStorageTypeText;
       
   465 			contactFieldType = KUidContactFieldFaxValue;
       
   466 			vCardMapping = KIntContactFieldVCardMapTEL;
       
   467 			extraMapping=
       
   468 			    {
       
   469 			    MAPPING { mapping=KIntContactFieldVCardMapFAX; }
       
   470 			    };
       
   471 			category = EContactCategoryNone;
       
   472 			fieldName = qtn_phob_lbl_fax;
       
   473 			},
       
   474         
       
   475         FIELD	// Email Address (general)
       
   476 			{
       
   477 			fieldStorageType = KStorageTypeText;
       
   478 			contactFieldType = KUidContactFieldEMailValue;
       
   479 			vCardMapping = KIntContactFieldVCardMapEMAILINTERNET;
       
   480 			category = EContactCategoryNone;
       
   481 			fieldName = qtn_phob_lbl_email;
       
   482 			},
       
   483         FIELD	// URL (general)
       
   484 			{
       
   485 			fieldStorageType = KStorageTypeText;
       
   486 			contactFieldType = KUidContactFieldUrlValue;
       
   487 			vCardMapping = KIntContactFieldVCardMapURL;
       
   488 			category = EContactCategoryNone;
       
   489 			fieldName = qtn_phob_lbl_url;
       
   490 			},
       
   491 		FIELD	// Label Address (general)
       
   492 			{
       
   493             // NOTE: This data differs from contact model default template
       
   494 			fieldStorageType = KStorageTypeText;
       
   495 			contactFieldType = KUidContactFieldAddressValue;
       
   496 			vCardMapping = KIntContactFieldVCardMapLABEL;
       
   497 			category = EContactCategoryNone;
       
   498 			fieldName = qtn_phob_lbl_address;
       
   499 			},
       
   500 		FIELD   // P.O.box (general)
       
   501 			{
       
   502 			fieldStorageType=KStorageTypeText;
       
   503 			contactFieldType=KUidContactFieldPostOfficeValue;
       
   504 			vCardMapping=KIntContactFieldVCardMapPOSTOFFICE;
       
   505 			category=EContactCategoryNone;
       
   506 			fieldName=qtn_phob_lbl_pobox; 
       
   507 			},
       
   508 		FIELD   // Extension address (general)
       
   509 			{
       
   510 			fieldStorageType=KStorageTypeText;
       
   511 			contactFieldType=KUidContactFieldExtendedAddressValue;
       
   512 			vCardMapping=KIntContactFieldVCardMapEXTENDEDADR;
       
   513 			category=EContactCategoryNone;
       
   514 			fieldName=qtn_phob_lbl_extencion;
       
   515 			},
       
   516 		FIELD   // Street (general)
       
   517 			{
       
   518 			fieldStorageType=KStorageTypeText;
       
   519 			contactFieldType=KUidContactFieldAddressValue;
       
   520 			vCardMapping=KIntContactFieldVCardMapADR;
       
   521 			category=EContactCategoryNone;
       
   522 			fieldName=qtn_phob_lbl_street;
       
   523 		    },
       
   524         FIELD   // Postal code (general)
       
   525 			{
       
   526 			fieldStorageType=KStorageTypeText;
       
   527 			contactFieldType=KUidContactFieldPostCodeValue;
       
   528 			vCardMapping=KIntContactFieldVCardMapPOSTCODE;
       
   529 			category=EContactCategoryNone;
       
   530 			fieldName=qtn_phob_lbl_postal_code;
       
   531             },
       
   532         FIELD   // City (general)
       
   533 			{
       
   534 			fieldStorageType=KStorageTypeText;
       
   535 			contactFieldType=KUidContactFieldLocalityValue;
       
   536 			vCardMapping=KIntContactFieldVCardMapLOCALITY;
       
   537 			category=EContactCategoryNone;
       
   538 			fieldName=qtn_phob_lbl_city;
       
   539 			},
       
   540 		FIELD   // State (general)
       
   541 			{
       
   542 			fieldStorageType=KStorageTypeText;
       
   543 			contactFieldType=KUidContactFieldRegionValue;
       
   544 			vCardMapping=KIntContactFieldVCardMapREGION;
       
   545 			category=EContactCategoryNone;
       
   546 			fieldName=qtn_phob_lbl_state;
       
   547 			},
       
   548 		FIELD   // Country (general)
       
   549 			{
       
   550 			fieldStorageType=KStorageTypeText;
       
   551 			contactFieldType=KUidContactFieldCountryValue;
       
   552 			vCardMapping=KIntContactFieldVCardMapCOUNTRY;
       
   553 			category=EContactCategoryNone;
       
   554 			fieldName=qtn_phob_lbl_country;
       
   555 			},
       
   556         // NOTE: There is no DTMF field in the contact model default template
       
   557         FIELD	// DTMF String
       
   558 			{
       
   559 			fieldStorageType = KStorageTypeText;
       
   560 			contactFieldType = KUidContactFieldDTMFValue;
       
   561             // NOTE: DTMF is not imported or exported in vCards
       
   562 			vCardMapping = KIntContactFieldVCardMapUnknown;
       
   563 			category = EContactCategoryOther;
       
   564 			fieldName = qtn_phob_lbl_dtmf;
       
   565             // NOTE: DTMF is not imported or exported with PC Sync
       
   566 			flags=EContactFieldFlagDisabled;
       
   567 			},
       
   568 		FIELD	// Date
       
   569 			{
       
   570 			fieldStorageType = KStorageTypeDateTime;
       
   571 			contactFieldType = KUidContactFieldBirthdayValue;
       
   572 			vCardMapping = KIntContactFieldVCardMapBDAY;
       
   573 			category = EContactCategoryOther;
       
   574 			fieldName = qtn_phob_lbl_date;
       
   575 			},
       
   576         FIELD	// Note
       
   577 			{
       
   578 			fieldStorageType = KStorageTypeText;
       
   579 			contactFieldType = KUidContactFieldNoteValue;
       
   580 			vCardMapping = KIntContactFieldVCardMapNOTE;
       
   581 			category = EContactCategoryOther;
       
   582 			fieldName = qtn_phob_lbl_note;
       
   583 			},
       
   584         // NOTE: There is no corresponding field in the contact model default template
       
   585 		FIELD	// Picture
       
   586 			{
       
   587 			fieldStorageType = KStorageTypeText;
       
   588 			contactFieldType = KUidContactFieldPictureValue;
       
   589             // NOTE: Picture is not imported or exported in vCards
       
   590 			vCardMapping = KIntContactFieldVCardMapUnknown;
       
   591 			category = EContactCategoryNone;
       
   592             // NOTE: Picture is not imported or exported with PC Sync
       
   593 			flags=EContactFieldFlagDisabled;
       
   594 			},
       
   595         // NOTE: Thumbnail is much like PHOTO in contact model default template
       
   596 		FIELD	// Thumbnail Image
       
   597 			{
       
   598 			fieldStorageType = KPbkThumbnailFieldStorageType;
       
   599 			contactFieldType = KUidContactFieldPictureValue;
       
   600 			vCardMapping = KIntContactFieldVCardMapPHOTO;
       
   601 			category = EContactCategoryNone;
       
   602 			},
       
   603         // NOTE: There is no corresponding field in the contact model default template
       
   604 		FIELD	// Personal Ringing Tone Indication
       
   605 			{
       
   606 			fieldStorageType = KStorageTypeText;
       
   607 			contactFieldType = KUidContactFieldRingToneValue;
       
   608             // NOTE: Ringing tone is not imported or exported in vCards
       
   609 			vCardMapping = KIntContactFieldVCardMapUnknown;
       
   610 			category = EContactCategoryNone;
       
   611 			fieldName = qtn_phob_lbl_tone;
       
   612             // NOTE: Ringing tone is not imported or exported with PC Sync
       
   613 			flags=EContactFieldFlagDisabled;
       
   614 			},
       
   615         // NOTE: There is no corresponding field in the contact model default template
       
   616 		FIELD	// Location privacy indicator
       
   617 			{
       
   618 			fieldStorageType = KStorageTypeText;
       
   619 			contactFieldType = KPbkUidContactFieldLocationPrivValue;
       
   620             // NOTE: Locationing privacy is not imported or exported in vCards
       
   621 			vCardMapping = KIntContactFieldVCardMapUnknown;
       
   622 			category = EContactCategoryNone;
       
   623             // NOTE: Locationing privacy is not imported or exported with PC Sync
       
   624             // NOTE: The First(1) custom field. Next field needs to be added after this field
       
   625             // NOTE: Custom filter flags are index/order dependent!
       
   626 			flags=KIntFieldFlagFilterable1;//EContactFieldFlagFilterable;
       
   627 			},
       
   628     // NOTE: There is no corresponding field in the contact model default template 
       
   629     FIELD	// Top Contact Indicator
       
   630 			{
       
   631 			fieldStorageType = KStorageTypeText; // text type to store the order of top contacts
       
   632 			contactFieldType = KUidContactFieldTopContactValue;
       
   633 			vCardMapping = KIntContactFieldVCardMapUnknown;
       
   634 			category = EContactCategoryNone; // To be set to some other val ?
       
   635 			fieldName = "Top Contact"; // debugging purposes, no need to localize		
       
   636       // NOTE: Top Contact is filterable	
       
   637 			flags=KIntFieldFlagFilterable2; 
       
   638 			},			
       
   639     FIELD	// IMPP
       
   640             {
       
   641             fieldStorageType = KStorageTypeText;
       
   642 			contactFieldType = KUidContactFieldIMPPValue;
       
   643 			vCardMapping = KIntContactFieldVCardMapUnknown;
       
   644 			category = EContactCategoryNone; // TODO: To be set to some other val ?
       
   645 			},			
       
   646 		FIELD   // Geo (Home)
       
   647 			{
       
   648 			fieldStorageType=KStorageTypeText;
       
   649 			contactFieldType=KUidContactFieldGEOValue;
       
   650 			vCardMapping = KIntContactFieldVCardMapGEO;
       
   651 			extraMapping=
       
   652 			    {
       
   653 			    MAPPING { mapping=KIntContactFieldVCardMapHOME; }
       
   654 			    };
       
   655 			category=EContactCategoryHome;
       
   656 			fieldName=qtn_phob_lbl_geo_home;
       
   657 			},
       
   658 		FIELD   // Geo (Work)
       
   659 			{
       
   660 			fieldStorageType=KStorageTypeText;
       
   661 			contactFieldType=KUidContactFieldGEOValue;
       
   662 			vCardMapping = KIntContactFieldVCardMapGEO;
       
   663 			extraMapping=
       
   664 			    {
       
   665 			    MAPPING { mapping=KIntContactFieldVCardMapWORK; }
       
   666 			    };
       
   667 			category=EContactCategoryWork;
       
   668 			fieldName=qtn_phob_lbl_geo_work;
       
   669 			},
       
   670 		FIELD   // Geo (general)
       
   671 			{
       
   672 			fieldStorageType=KStorageTypeText;
       
   673 			contactFieldType=KUidContactFieldGEOValue;
       
   674 			vCardMapping = KIntContactFieldVCardMapGEO;
       
   675 			category=EContactCategoryNone;
       
   676 			fieldName=qtn_phob_lbl_geo;
       
   677 			}
       
   678         };
       
   679     }
       
   680 
       
   681 
       
   682 // End of File