--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/settingsengines/sdb/tests/config/template_itests/91ui.rss Thu Mar 11 18:20:56 2010 +0200
@@ -0,0 +1,650 @@
+// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// CNTMODEL.RSS
+// The default template resource
+//
+//
+
+// BOTH THESE HEADERS NEED TO BE PUBLIC
+//
+
+
+#include "cntmodel.rls"
+#include <CntDef.hrh> // as existing version, but see below
+#include <cntmodel.rh>
+
+//
+// FROM EIKDEF.RH - avoids CntModel requiring Eikon
+//
+STRUCT RSS_SIGNATURE
+ {
+ LONG signature=4; // EEikResourceSignatureValue;
+ SRLINK self;
+ }
+
+STRUCT ARRAY
+ {
+ STRUCT items[];
+ }
+
+RESOURCE RSS_SIGNATURE { }
+
+//
+// The template data
+//
+RESOURCE ARRAY r_cntui_new_field_defns
+ {
+ items=
+ {
+// home or personal jobbies
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPrefixNameValue;
+ vCardMapping=KIntContactFieldVCardMapUnusedN;
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns1;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldGivenNameValue;
+ vCardMapping=KIntContactFieldVCardMapUnusedN;
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns2;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldAdditionalNameValue;
+ vCardMapping=KIntContactFieldVCardMapUnusedN;
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns3;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldFamilyNameValue;
+ vCardMapping=KIntContactFieldVCardMapUnusedN;
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns4;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldSuffixNameValue;
+ vCardMapping=KIntContactFieldVCardMapUnusedN;
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns5;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; },
+ MAPPING { mapping=KIntContactFieldVCardMapVOICE; },
+ MAPPING { mapping=KIntContactFieldVCardMapCELL; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns6;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; },
+ MAPPING { mapping=KIntContactFieldVCardMapVOICE; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns7;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldFaxValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; },
+ MAPPING { mapping=KIntContactFieldVCardMapFAX; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns8;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; },
+ MAPPING { mapping=KIntContactFieldVCardMapVOICE; },
+ MAPPING { mapping=KIntContactFieldVCardMapPAGER; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns9;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; },
+ MAPPING { mapping=KIntContactFieldVCardMapBBS; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns10;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; },
+ MAPPING { mapping=KIntContactFieldVCardMapMODEM; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns11;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; },
+ MAPPING { mapping=KIntContactFieldVCardMapVOICE; },
+ MAPPING { mapping=KIntContactFieldVCardMapCAR; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns12;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; },
+ MAPPING { mapping=KIntContactFieldVCardMapISDN; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns13;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; },
+ MAPPING { mapping=KIntContactFieldVCardMapVIDEO; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns14;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldEMailValue;
+ vCardMapping=KIntContactFieldVCardMapEMAILINTERNET;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns15;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPostOfficeValue;
+ vCardMapping=KIntContactFieldVCardMapPOSTOFFICE;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns16;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldExtendedAddressValue;
+ vCardMapping=KIntContactFieldVCardMapEXTENDEDADR;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns17;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldAddressValue;
+ vCardMapping=KIntContactFieldVCardMapADR;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns18;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldLocalityValue;
+ vCardMapping=KIntContactFieldVCardMapLOCALITY;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns19;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldRegionValue;
+ vCardMapping=KIntContactFieldVCardMapREGION;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns20;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPostCodeValue;
+ vCardMapping=KIntContactFieldVCardMapPOSTCODE;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns21;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldCountryValue;
+ vCardMapping=KIntContactFieldVCardMapCOUNTRY;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns22;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldUrlValue;
+ vCardMapping=KIntContactFieldVCardMapURL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapHOME; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns23;
+ },
+
+
+// work jobbies
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldCompanyNameValue;
+ vCardMapping=KIntContactFieldVCardMapORG;
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns24;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldJobTitleValue;
+ vCardMapping=KIntContactFieldVCardMapTITLE;
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns25;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; },
+ MAPPING { mapping=KIntContactFieldVCardMapVOICE; },
+ MAPPING { mapping=KIntContactFieldVCardMapCELL; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns26;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; },
+ MAPPING { mapping=KIntContactFieldVCardMapVOICE; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns27;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldFaxValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; },
+ MAPPING { mapping=KIntContactFieldVCardMapFAX; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns28;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapPAGER; },
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns29;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; },
+ MAPPING { mapping=KIntContactFieldVCardMapBBS; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns30;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; },
+ MAPPING { mapping=KIntContactFieldVCardMapMODEM; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns31;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; },
+ MAPPING { mapping=KIntContactFieldVCardMapVOICE; },
+ MAPPING { mapping=KIntContactFieldVCardMapCAR; }
+ };
+ category=EContactCategoryHome;
+ fieldName=STRING_r_cntui_new_field_defns32;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; },
+ MAPPING { mapping=KIntContactFieldVCardMapISDN; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns33;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPhoneNumberValue;
+ vCardMapping=KIntContactFieldVCardMapTEL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; },
+ MAPPING { mapping=KIntContactFieldVCardMapVIDEO; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns34;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldEMailValue;
+ vCardMapping=KIntContactFieldVCardMapEMAILINTERNET;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns35;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldUrlValue;
+ vCardMapping=KIntContactFieldVCardMapURL;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns36;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPostOfficeValue;
+ vCardMapping=KIntContactFieldVCardMapPOSTOFFICE;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns37;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldExtendedAddressValue;
+ vCardMapping=KIntContactFieldVCardMapEXTENDEDADR;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns38;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldAddressValue;
+ vCardMapping=KIntContactFieldVCardMapADR;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns39;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldLocalityValue;
+ vCardMapping=KIntContactFieldVCardMapLOCALITY;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns40;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldRegionValue;
+ vCardMapping=KIntContactFieldVCardMapREGION;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns41;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldPostCodeValue;
+ vCardMapping=KIntContactFieldVCardMapPOSTCODE;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns42;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldCountryValue;
+ vCardMapping=KIntContactFieldVCardMapCOUNTRY;
+ extraMapping=
+ {
+ MAPPING { mapping=KIntContactFieldVCardMapWORK; }
+ };
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns43;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeStore;
+ contactFieldType=KUidContactFieldPictureValue;
+ vCardMapping=KIntContactFieldVCardMapLOGO;
+ category=EContactCategoryWork;
+ fieldName=STRING_r_cntui_new_field_defns44;
+ flags=EContactFieldFlagHidden;
+ },
+// other jobbies
+ FIELD
+ {
+ fieldStorageType=KStorageTypeDateTime;
+ contactFieldType=KUidContactFieldBirthdayValue;
+ vCardMapping=KIntContactFieldVCardMapBDAY;
+ category=EContactCategoryOther;
+ fieldName=STRING_r_cntui_new_field_defns45;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldNoteValue;
+ vCardMapping=KIntContactFieldVCardMapNOTE;
+ category=EContactCategoryOther;
+ fieldName=STRING_r_cntui_new_field_defns46;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldNoneValue;
+ vCardMapping=KIntContactFieldVCardMapUnusedFN;
+ category=EContactCategoryNone;
+ fieldName=STRING_r_cntui_new_field_defns47;
+ flags=EContactFieldFlagHidden;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeStore;
+ contactFieldType=KUidContactFieldPictureValue;
+ vCardMapping=KIntContactFieldVCardMapPHOTO;
+ category=EContactCategoryNone;
+ fieldName=STRING_r_cntui_new_field_defns48;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldNoneValue;
+ vCardMapping=KIntContactFieldVCardMapLABEL;
+ category=EContactCategoryNone;
+ fieldName=STRING_r_cntui_new_field_defns49;
+ flags=EContactFieldFlagDisabled;
+ },
+ FIELD
+ {
+ fieldStorageType=KStorageTypeText;
+ contactFieldType=KUidContactFieldTemplateLabelValue;
+ vCardMapping=KIntContactFieldVCardMapUnusedN;
+ category=EContactCategoryNone;
+ fieldName=STRING_r_cntui_new_field_defns50;
+ flags=EContactFieldFlagHidden;
+ }
+ };
+ }
+