/*
* Copyright (c) 2007-2007 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:  This file contains common resources for pbk engine
*                extension.
*
*/


#include <PbkConfig.hrh> // must be included before PbkFields.hrh

#include <uikon.rh>
#include <PbkFields.hrh>
#include <cntdef.hrh>
#include <cntmodel.rh>
#include <PbkFieldInfo.rh>
#include "PbkIconId.hrh"
#include "PbkUID.h"
#include <phonebook.loc>

//  RESOURCE IDENTIFIER
NAME    PBFM  // From Phonebook Field Modification

//  RESOURCE DEFINITIONS

// ---------------------------------------------------------
// Standard resource signature
// ---------------------------------------------------------
//
RESOURCE RSS_SIGNATURE { }

/**
 * Prefix field model definition.
 */
RESOURCE ARRAY r_cntui_add_prefix_field_defns
    {
    items=
        {
        FIELD   // Prefix Name
            {
            fieldStorageType    = KStorageTypeText;
            contactFieldType    = KUidContactFieldPrefixNameValue;
            vCardMapping        = KIntContactFieldVCardMapUnusedN;
            category            = EContactCategoryHome;
            fieldName           = qtn_phob_lbl_prefix;
            flags               = EContactFieldFlagDisabled;
            }
        };
    }

/**
 * Prefix field phonebook fields definition.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phonebook_add_prefix_field_properties
    {
    items=
        {
        PHONEBOOK_FIELD     // Prefix Name
            {
            Id                  = EPbkFieldIdPrefix;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = KPbkMDOMaxLength;
            EditMode            = EPbkFieldEditModeAlpha;
            DefaultCase         = EPbkFieldDefaultCaseText;
            IconId              = EPbkNullIconId;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupNames;
            OrderingItem        = EPbkOrderingItemPrefix;
            AddItemOrdering     = EPbkAddItemOrderPrefix;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                    {
                    PHONEBOOK_VCARD_PROPERTY
                        {
                        name        = KUidContactFieldPrefixNameValue;
                        parameters  = {};
                        }
                    };
            ExcludeParameters   = {};
            }
        };
    }

/**
 * Suffix field model definition.
 */
RESOURCE ARRAY r_cntui_add_suffix_field_defns
    {
    items=
        {
        FIELD   // Suffix Name
            {
            fieldStorageType    = KStorageTypeText;
            contactFieldType    = KUidContactFieldSuffixNameValue;
            vCardMapping        = KIntContactFieldVCardMapUnusedN;
            category            = EContactCategoryHome;
            fieldName           = qtn_phob_lbl_suffix;
            flags               = EContactFieldFlagDisabled;
            }
        };
    }

/**
 * Suffix field phonebook fields definition.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phonebook_add_suffix_field_properties
    {
    items=
        {
        PHONEBOOK_FIELD     // Suffix
            {
            Id                  = EPbkFieldIdSuffix;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = KPbkMDOMaxLength;
            EditMode            = EPbkFieldEditModeAlpha;
            DefaultCase         = EPbkFieldDefaultCaseText;
            IconId              = EPbkNullIconId;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupNames;
            OrderingItem        = EPbkOrderingItemSuffix;
            AddItemOrdering     = EPbkAddItemOrderSuffix;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                        {
                        name        = KUidContactFieldSuffixNameValue;
                        parameters  = {};
                        }
                };
            ExcludeParameters   = {};
            }
        };
    }

/**
 * Nick name field cnt model definition.
 */
RESOURCE ARRAY r_cntui_add_nick_name_field_defns
    {
    items=
        {
        FIELD   // Nick Name
            {
            fieldStorageType    = KStorageTypeText;
            contactFieldType    = KUidContactFieldSecondNameValue;
            vCardMapping        = KIntContactFieldVCardMapSECONDNAME;
            category            = EContactCategoryHome;
            fieldName           = qtn_simp_lbl_nick;
            // NOTE: Nick Name is not imported or exported with PC Sync
            flags               = EContactFieldFlagDisabled;
            }
        };
    }

/**
 * Nick name field phonebook fields definition.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phonebook_add_nick_name_field_properties
    {
    items=
        {
        PHONEBOOK_FIELD     // Nick Name
            {
            Id                  = EPbkFieldIdSecondName;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = KPbkNameMaxLength;
            EditMode            = EPbkFieldEditModeAlpha;
            DefaultCase         = EPbkFieldDefaultCaseText;
            IconId              = EPbkqgn_prop_nrtyp_empty;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupNames;
            OrderingItem        = EPbkOrderingItemSecondName;
            AddItemOrdering     = EPbkAddItemOrderSecondName;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                        {
                        name        = KIntContactFieldVCardMapSECONDNAME;
                        parameters  = {};
                        }
                };
            ExcludeParameters   = {};
            }
        };
    }


/**
 * Video telephony fields cnt model definition.
 */
RESOURCE ARRAY r_cntui_add_video_telephony_field_defns
    {
    items=
        {
        FIELD   // Phone Number Mobile  (Home)
            {
            fieldStorageType = KStorageTypeText;
            contactFieldType = KUidContactFieldPhoneNumberValue;
            vCardMapping = KIntContactFieldVCardMapTEL;
            extraMapping=
                {
                // NOTE: Ordering differs from contact model default template
                MAPPING { mapping=KIntContactFieldVCardMapVIDEO; },
                MAPPING { mapping=KIntContactFieldVCardMapHOME; }
                };
            category = EContactCategoryHome;
            fieldName = qtn_phob_lbl_video_home;
            },
        FIELD   // Phone Number Mobile  (Work)
            {
            fieldStorageType = KStorageTypeText;
            contactFieldType = KUidContactFieldPhoneNumberValue;
            vCardMapping = KIntContactFieldVCardMapTEL;
            extraMapping=
                {
                // NOTE: Contact model default template has mapping: WORK,VOICE,CELL
                MAPPING { mapping=KIntContactFieldVCardMapVIDEO; },
                MAPPING { mapping=KIntContactFieldVCardMapWORK; }
                };
            category = EContactCategoryWork;
            fieldName = qtn_phob_lbl_video_work;
            },
        FIELD   // Phone Number Mobile (general)
            {
            fieldStorageType = KStorageTypeText;
            contactFieldType = KUidContactFieldPhoneNumberValue;
            vCardMapping = KIntContactFieldVCardMapTEL;
            extraMapping=
                {
                MAPPING { mapping=KIntContactFieldVCardMapVIDEO; }
                };
            category = EContactCategoryNone;
            fieldName = qtn_phob_lbl_video;
            }
        };
    }

/**
 * Video telephony fields phonebook fields definition.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phonebook_add_video_telephony_field_properties
    {
    items=
        {
        PHONEBOOK_FIELD     // Phone number video (home)
            {
            Id                  = EPbkFieldIdPhoneNumberVideo;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkPhoneNumberMaxLength;
            EditMode            = EPbkFieldEditModeNumeric;
            DefaultCase         = EPbkFieldDefaultCaseNone;
            IconId              = EPbkqgn_prop_nrtyp_video;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberVideoHome;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberVideoHome;
            Location            = EPbkFieldLocationHome;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapTEL;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapVIDEO; },
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapHOME; }
                        };
                    }
                };
            ExcludeParameters   = {};
            },
        PHONEBOOK_FIELD     // Phone Number Video (work)
            {
            Id                  = EPbkFieldIdPhoneNumberVideo;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkPhoneNumberMaxLength;
            EditMode            = EPbkFieldEditModeNumeric;
            DefaultCase         = EPbkFieldDefaultCaseNone;
            IconId              = EPbkqgn_prop_nrtyp_video;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberVideoWork;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberVideoWork;
            Location            = EPbkFieldLocationWork;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapTEL;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapVIDEO; },
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapWORK; }
                        };
                    }
                };
            ExcludeParameters   = {};
            },
        PHONEBOOK_FIELD     // Phone Number Video (general)
            {
            Id                  = EPbkFieldIdPhoneNumberVideo;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkPhoneNumberMaxLength;
            EditMode            = EPbkFieldEditModeNumeric;
            DefaultCase         = EPbkFieldDefaultCaseNone;
            IconId              = EPbkqgn_prop_nrtyp_video;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagDefTemplate | KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberVideo;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberVideo;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapTEL;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapVIDEO; }
                        };
                    }
                };
            ExcludeParameters   =
                {
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapWORK; },
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapHOME; }
                };
            }
        };
    }


/**
 * Japanese reading fields cnt model definition.
 */
RESOURCE ARRAY r_cntui_add_japanese_reading_field_defns
    {
    items=
        {
        FIELD   // Last Name Reading
            {
            fieldStorageType = KStorageTypeText;
            contactFieldType = KUidContactFieldFamilyNamePronunciationValue;
            vCardMapping = KIntContactFieldVCardMapUnusedN;
            category = EContactCategoryHome;
            fieldName = qtn_phob_lbl_last_reading;
            },
        FIELD   // First Name Reading
            {
            fieldStorageType = KStorageTypeText;
            contactFieldType = KUidContactFieldGivenNamePronunciationValue;
            vCardMapping = KIntContactFieldVCardMapUnusedN;
            category = EContactCategoryHome;
            fieldName = qtn_phob_lbl_first_reading;
            }
        };
    }

/**
 * Japanese reading fields phonebook fields definition.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phonebook_add_japanese_reading_field_properties
    {
    items=
        {
        PHONEBOOK_FIELD     // Last Name Reading
            {
            Id                  = EPbkFieldIdLastNameReading;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = KPbkNameMaxLength;
            EditMode            = EPbkFieldEditModeAlpha;
            DefaultCase         = EPbkFieldDefaultCaseText;
            IconId              = EPbkqgn_prop_nrtyp_empty;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagDefTemplate | KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupNames;
            OrderingItem        = EPbkOrderingItemLastNameReading;
            AddItemOrdering     = EPbkAddItemOrderLastNameReading;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyCDesCArray;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KUidContactFieldFamilyNamePronunciationValue;
                    parameters  = {};
                    }
                };
            ExcludeParameters       = {};
            GroupId             = EPbkFieldGroupIdLastName;
            },
        PHONEBOOK_FIELD     // First Name Reading
            {
            Id                  = EPbkFieldIdFirstNameReading;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = KPbkNameMaxLength;
            EditMode            = EPbkFieldEditModeAlpha;
            DefaultCase         = EPbkFieldDefaultCaseText;
            IconId              = EPbkqgn_prop_nrtyp_empty;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagDefTemplate | KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupNames;
            OrderingItem        = EPbkOrderingItemFirstNameReading;
            AddItemOrdering     = EPbkAddItemOrderFirstNameReading;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyCDesCArray;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KUidContactFieldGivenNamePronunciationValue;
                    parameters  = {};
                    }
                };
            ExcludeParameters       = {};
            GroupId             = EPbkFieldGroupIdFirstName;
            }
        };
    }

/**
 * VOIP fields cnt model definitions.
 */
RESOURCE ARRAY r_cntui_add_voip_field_defns
    {
    items=
        {
//=============================================================================
// Fields for SIP identity. These are the > 3.0 field types for the fields.
//=============================================================================
        FIELD   // VoIP (Home)
            {
            fieldStorageType=KStorageTypeText;
            contactFieldType=KUidContactFieldSIPIDValue;
            vCardMapping=KIntContactFieldVCardMapSIPID;
            extraMapping=
                {
                MAPPING { mapping=KIntContactFieldVCardMapVOIP; },
                MAPPING { mapping=KIntContactFieldVCardMapHOME; }
                };
            category=EContactCategoryHome;
            fieldName=qtn_phob_lbl_voip_home;
            },
        FIELD   // VoIP (Work)
            {
            fieldStorageType=KStorageTypeText;
            contactFieldType=KUidContactFieldSIPIDValue;
            vCardMapping=KIntContactFieldVCardMapSIPID;
            extraMapping=
                {
                MAPPING { mapping=KIntContactFieldVCardMapVOIP; },
                MAPPING { mapping=KIntContactFieldVCardMapWORK; }
                };
            category=EContactCategoryWork;
            fieldName=qtn_phob_lbl_voip_work;
            },
        FIELD   // VoIP (General)
            {
            fieldStorageType=KStorageTypeText;
            contactFieldType=KUidContactFieldSIPIDValue;
            vCardMapping=KIntContactFieldVCardMapSIPID;
            extraMapping=
                {
                MAPPING { mapping=KIntContactFieldVCardMapVOIP; }
                };
            category=EContactCategoryNone;
            fieldName=qtn_phob_lbl_voip;
            }
        };
    }

/**
 * VOIP fields phonebook fields definition.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phonebook_add_voip_field_properties
    {
    items=
        {
//=============================================================================
// Fields for SIP identity. These are the > 3.0 field types for the fields.
//=============================================================================
        PHONEBOOK_FIELD     // VoIP (home)
            {
            Id                  = EPbkFieldIdVOIP;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkSIPMaxLength;
            EditMode            = EPbkFieldEditModeLatinOnly;
            DefaultCase         = EPbkFieldDefaultCaseLower;
            IconId              = EPbkqgn_prop_nrtyp_voip;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberVOIPHome;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberVOIPHome;
            Location            = EPbkFieldLocationHome;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapSIPID;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapVOIP; },
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapHOME; }
                        };
                    }
                };
            ExcludeParameters   = {};
            },
        PHONEBOOK_FIELD     // VoIP (work)
            {
            Id                  = EPbkFieldIdVOIP;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkSIPMaxLength;
            EditMode            = EPbkFieldEditModeLatinOnly;
            DefaultCase         = EPbkFieldDefaultCaseLower;
            IconId              = EPbkqgn_prop_nrtyp_voip;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberVOIPWork;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberVOIPWork;
            Location            = EPbkFieldLocationWork;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapSIPID;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapVOIP; },
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapWORK; }
                        };
                    }
                };
            ExcludeParameters   = {};
            },
        PHONEBOOK_FIELD     // VoIP (general)
            {
            Id                  = EPbkFieldIdVOIP;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkSIPMaxLength;
            EditMode            = EPbkFieldEditModeLatinOnly;
            DefaultCase         = EPbkFieldDefaultCaseLower;
            IconId              = EPbkqgn_prop_nrtyp_voip;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagDefTemplate | KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberVOIP;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberVOIP;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapSIPID;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapVOIP; }
                        };
                    }
                };
            ExcludeParameters   =
                {
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapWORK; },
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapHOME; }
                };
            }
        };
    }

/**
 * POC/PTT (Push To Talk Over Cellular) field cnt model definition.
 */
RESOURCE ARRAY r_cntui_add_poc_field_defns
    {
    items=
        {
        FIELD   // Push-to-talk
            {
            fieldStorageType=KStorageTypeText;
            contactFieldType=KUidContactFieldSIPIDValue;
            vCardMapping=KIntContactFieldVCardMapSIPID;
            extraMapping=
                {
                MAPPING { mapping=KIntContactFieldVCardMapPOC; }
                };
            category=EContactCategoryNone;
            fieldName=qtn_phob_lbl_poc;
            }
        };
    }

/**
 * POC/PTT (Push To Talk Over Cellular) field phonebook definition.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phonebook_add_poc_field_properties
    {
    items=
        {
        PHONEBOOK_FIELD     // Push-to-talk
            {
            Id                  = EPbkFieldIdPushToTalk;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkSIPMaxLength;
            EditMode            = EPbkFieldEditModeLatinOnly;
            DefaultCase         = EPbkFieldDefaultCaseLower;
            IconId              = EPbkqgn_prop_nrtyp_poc;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagDefTemplate | KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberPushToTalk;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberPushToTalk;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapSIPID;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapPOC; }
                        };
                    }
                };
            ExcludeParameters   =
                {
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapWORK; },
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapHOME; }
                };
            }
        };
    }

/**
 * Share View/SWIS(See What I See) field cnt model definitions.
 */
RESOURCE ARRAY r_cntui_add_share_view_field_defns
    {
    items=
        {
        FIELD   // Share view
            {
            fieldStorageType=KStorageTypeText;
            contactFieldType=KUidContactFieldSIPIDValue;
            vCardMapping=KIntContactFieldVCardMapSIPID;
            extraMapping=
                {
                MAPPING { mapping=KIntContactFieldVCardMapSWIS; }
                };
            category=EContactCategoryNone;
            fieldName=qtn_phob_lbl_swis;
            }
        };
    }

/**
 * Share View/SWIS(See What I See) fields phonebook fields definition.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phonebook_add_share_view_field_properties
    {
    items=
        {
        PHONEBOOK_FIELD     // Share view
            {
            Id                  = EPbkFieldIdShareView;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkSIPMaxLength;
            EditMode            = EPbkFieldEditModeLatinOnly;
            DefaultCase         = EPbkFieldDefaultCaseLower;
            IconId              = EPbkqgn_prop_nrtyp_swis;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberShareView;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberShareView;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapSIPID;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapSWIS; }
                        };
                    }
                };
            ExcludeParameters   =
                {
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapWORK; },
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapHOME; }
                };
            }
        };
    }

/**
 * Generic SIP fields cnt model definition.
 */
RESOURCE ARRAY r_cntui_add_sip_field_defns
    {
    items=
        {
        FIELD   // SIP ID, for generic unspecified usage
            {
            fieldStorageType = KStorageTypeText;
            contactFieldType = KUidContactFieldSIPIDValue;
            vCardMapping = KIntContactFieldVCardMapSIPID;
            extraMapping=
                {
                MAPPING { mapping=KIntContactFieldVCardMapSIPID; }
                };
            category = EContactCategoryNone;
            fieldName = qtn_phob_lbl_sip;
            }
        };
    }

/**
 * Generic SIP fields phonebook fields definition.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phonebook_add_sip_field_properties
    {
    items=
        {
        PHONEBOOK_FIELD     // SIP ID
            {
            Id                  = EPbkFieldIdSIPID;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkSIPMaxLength;
            EditMode            = EPbkFieldEditModeLatinOnly;
            DefaultCase         = EPbkFieldDefaultCaseLower;
            IconId              = EPbkqgn_prop_nrtyp_sip;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberSIPID;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberSIPID;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapSIPID;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapSIPID; }
                        };
                    }
                };
            ExcludeParameters   =
                {
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapWORK; },
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapHOME; }
                };
            }
        };
    }

/**
 * OLD VOIP fields cnt model definition.
 *
 * These were released in S60 2.8 release and must be supported
 * for compatibility of 2.8 & 3.x databases.
 */
RESOURCE ARRAY r_cntui_add_old_voip_field_defns
    {
    items=
        {
        //===========================================================
        // Following fields are SIP identity which are needed when
        // a2.8 contact db is imported e.g. with help of MMC.
        //===========================================================
        FIELD   // VoIP (Home) - Lecacy support
            {
            fieldStorageType = KStorageTypeText;
            contactFieldType = KUidContactFieldSIPIDValue;
            vCardMapping = KIntContactFieldVCardMapVOIP;
            extraMapping=
                {
                // NOTE: Ordering differs from contact model default template
                MAPPING { mapping=KIntContactFieldVCardMapVOIP; },
                MAPPING { mapping=KIntContactFieldVCardMapHOME; }
                };
            category = EContactCategoryHome;
            fieldName = qtn_phob_lbl_voip_home;
            },
        FIELD   // VoIP  (Work) - Lecacy support
            {
            fieldStorageType = KStorageTypeText;
            contactFieldType = KUidContactFieldSIPIDValue;
            vCardMapping = KIntContactFieldVCardMapVOIP;
            extraMapping=
                {
                // NOTE: Contact model default template has mapping: WORK,VOICE,CELL
                MAPPING { mapping=KIntContactFieldVCardMapVOIP; },
                MAPPING { mapping=KIntContactFieldVCardMapWORK; }
                };
            category = EContactCategoryWork;
            fieldName = qtn_phob_lbl_voip_work;
            },
        FIELD   // VoIP (general) - Lecacy support
            {
            fieldStorageType = KStorageTypeText;
            contactFieldType = KUidContactFieldSIPIDValue;
            vCardMapping = KIntContactFieldVCardMapVOIP;
            extraMapping=
                {
                MAPPING { mapping=KIntContactFieldVCardMapVOIP; }
                };

            category = EContactCategoryNone;
            fieldName = qtn_phob_lbl_voip;
            }
        };
    }

/**
 * OLD VOIP fields phonebook fields definition.
 *
 * These were released in S60 2.8 release and must be supported
 * for compatibility of 2.8 & 3.x databases.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phonebook_add_old_voip_field_properties
    {
    items=
        {
        //===========================================================
        // Following fields are SIP identity which are needed when
        // a2.8 contact db is imported e.g. with help of MMC.
        //===========================================================
        PHONEBOOK_FIELD     // VoIP (home) - Lecagy support
            {
            Id                  = EPbkFieldIdVOIP;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkSIPMaxLength;
            EditMode            = EPbkFieldEditModeLatinOnly;
            DefaultCase         = EPbkFieldDefaultCaseLower;
            IconId              = EPbkqgn_prop_nrtyp_voip;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagNull;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberVOIPHome2;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberVOIPHome;
            Location            = EPbkFieldLocationHome;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapVOIP;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapVOIP; },
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapHOME; }
                        };
                    }

                };
            ExcludeParameters   = { };
            },
        PHONEBOOK_FIELD     // VoIP (work) - Lecagy support
            {
            Id                  = EPbkFieldIdVOIP;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkSIPMaxLength;
            EditMode            = EPbkFieldEditModeLatinOnly;
            DefaultCase         = EPbkFieldDefaultCaseLower;
            IconId              = EPbkqgn_prop_nrtyp_voip;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagNull;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberVOIPWork2;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberVOIPWork;
            Location            = EPbkFieldLocationWork;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapVOIP;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapVOIP; },
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapWORK; }
                        };
                    }
                };
            ExcludeParameters   = { };
            },
        PHONEBOOK_FIELD     // VoIP (general) - Lecagy support
            {
            Id                  = EPbkFieldIdVOIP;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkSIPMaxLength;
            EditMode            = EPbkFieldEditModeLatinOnly;
            DefaultCase         = EPbkFieldDefaultCaseLower;
            IconId              = EPbkqgn_prop_nrtyp_voip;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagNull;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberVOIP2;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberVOIP;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapVOIP;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapVOIP; }
                        };
                    }
                };
            ExcludeParameters   =
                {
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapWORK; },
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapHOME; }
                };
            }
        };
    }

/**
 * OLD POC/PTT fields cnt model definition.
 *
 * These were released in S60 2.8 release and must be supported
 * for compatibility of 2.8 & >3.0 databases.
 */
RESOURCE ARRAY r_cntui_add_old_poc_field_defns
    {
    items=
        {
        FIELD   // Push-to-talk - Lecacy support
            {
            fieldStorageType = KStorageTypeText;
            contactFieldType = KUidContactFieldSIPIDValue;
            vCardMapping = KIntContactFieldVCardMapPOC;
            extraMapping=
                {
                MAPPING { mapping=KIntContactFieldVCardMapPOC; }
                };
            category = EContactCategoryNone;
            fieldName = qtn_phob_lbl_poc;
            }
        };
    }

/**
 * OLD POC/PTT fields phonebook fields definition.
 *
 * These were released in S60 2.8 release and must be supported
 * for compatibility of 2.8 & >3.0 databases.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phonebook_add_old_poc_field_properties
    {
    items=
        {
        //===========================================================
        // Following fields are SIP identity which are needed when
        // a2.8 contact db is imported e.g. with help of MMC.
        //===========================================================
        
    PHONEBOOK_FIELD     // Push-to-talk - Lecagy support
            {
            Id                  = EPbkFieldIdPushToTalk;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkSIPMaxLength;
            EditMode            = EPbkFieldEditModeLatinOnly;
            DefaultCase         = EPbkFieldDefaultCaseLower;
            IconId              = EPbkqgn_prop_nrtyp_poc;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagNull;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberPushToTalk2;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberPushToTalk;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapPOC;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapPOC; }
                        };
                    }
                };
            ExcludeParameters   =
                {
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapWORK; },
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapHOME; }
                };
            }
        };
    }

/**
 * OLD Share View/SWIS(See What I See) fields cnt model definition.
 *
 * These were released in S60 2.8 release and must be supported
 * for compatibility of 2.8 & >3.0 databases.
 */
RESOURCE ARRAY r_cntui_add_old_share_view_field_defns
    {
    items=
        {
        FIELD   // Share view - Lecacy support
            {
            fieldStorageType = KStorageTypeText;
            contactFieldType = KUidContactFieldSIPIDValue;
            vCardMapping = KIntContactFieldVCardMapSWIS;
           extraMapping=
                {
                MAPPING { mapping=KIntContactFieldVCardMapSWIS; }
                };

            category = EContactCategoryNone;
            fieldName = qtn_phob_lbl_swis;
            }
        };
    }


/**
 * OLD Share View/SWIS(See What I See) fields phonebook fields definition.
 *
 * These were released in S60 2.8 release and must be supported
 * for compatibility of 2.8 & >3.0 databases.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phonebook_add_old_share_view_field_properties
    {
    items=
        {
        //===========================================================
        // Following fields are SIP identity which are needed when
        // a2.8 contact db is imported e.g. with help of MMC.
        //===========================================================
        PHONEBOOK_FIELD     // Share view - Lecagy support
            {
            Id                  = EPbkFieldIdShareView;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkSIPMaxLength;
            EditMode            = EPbkFieldEditModeLatinOnly;
            DefaultCase         = EPbkFieldDefaultCaseLower;
            IconId              = EPbkqgn_prop_nrtyp_swis;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagNull;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemPhoneNumberShareView2;
            AddItemOrdering     = EPbkAddItemOrderPhoneNumberShareView;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapSWIS;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapSWIS; }
                        };
                    }
                };
            ExcludeParameters   =
                {
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapWORK; },
                PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapHOME; }
                };
            }
        };
    }

/**
 * Object for call field cnt model definition.
 */
RESOURCE ARRAY r_cntui_add_cod_field_defns
    {
    items=
        {
        FIELD   // Text
            {
            fieldStorageType    = KStorageTypeText;
            contactFieldType    = KUidContactFieldCodTextValue;
            vCardMapping        = KIntContactFieldVCardMapUnknown;
            category            = EContactCategoryOther;
            fieldName           = qtn_phob_lbl_text;
            flags               = EContactFieldFlagDisabled;
            },
        FIELD   // Image
            {
            fieldStorageType    = KStorageTypeText;
            contactFieldType    = KUidContactFieldCodImageValue;
            vCardMapping        = KIntContactFieldVCardMapUnknown;
            category            = EContactCategoryOther;
            fieldName           = qtn_phob_lbl_image;
            flags               = EContactFieldFlagDisabled;
            }
        };
    }

/**
 * COD fields phonebook fields definition.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phonebook_add_cod_field_properties
    {
    items=
        {
        PHONEBOOK_FIELD     // text
            {
            Id                  = EPbkFieldIdCodTextID;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = KPbkCodTextMaxLength;
            EditMode            = EPbkFieldEditModeAlpha;
            DefaultCase         = EPbkFieldDefaultCaseText;
            IconId              = EPbkqgn_prop_nrtyp_empty;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagDisableEdit;
            OrderingGroup       = EPbkOrderingGroupObjectForCall;
            OrderingItem        = EPbkOrderingItemCODText;
            AddItemOrdering     = EPbkAddItemOrderCODText;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    = {}; // no eiks täs pitäis olla jotain
            ExcludeParameters   = {};
            },
        PHONEBOOK_FIELD     // Image
            {
            Id                  = EPbkFieldIdCodImageID;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = KPbkMaxFileName;
            EditMode            = EPbkFieldEditModeAlpha;
            DefaultCase         = EPbkFieldDefaultCaseNone;
            IconId              = EPbkqgn_prop_nrtyp_empty;
            CtrlType            = EPbkFieldCtrlTypeNone;
            Flags               = KPbkFieldFlagDisableEdit;
            OrderingGroup       = EPbkOrderingGroupObjectForCall;
            OrderingItem        = EPbkOrderingItemCODImage;
            AddItemOrdering     = EPbkAddItemOrderCODImage;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyBinary;
            ImportProperties    = {}; // no eiks täs pitäis olla jotain
            ExcludeParameters   = {};
            }
         };
    }

/**
 * Mega Operator fields cnt model definition.
 */
RESOURCE ARRAY r_cntui_add_megaop_field_defns
    {
    items =
        {
        FIELD   // Middle name
            {
            fieldStorageType=KStorageTypeText;
            contactFieldType=KUidContactFieldAdditionalNameValue;
            vCardMapping=KIntContactFieldVCardMapUnusedN;
            category=EContactCategoryHome;
            fieldName=qtn_phob_lbl_middle_name;
            },
        FIELD   // Department
            {
            fieldStorageType=KStorageTypeText;
            contactFieldType=KUidContactFieldDepartmentNameValue;
            vCardMapping=KIntContactFieldVCardMapDepartment;
            category=EContactCategoryWork;
            fieldName=qtn_phob_lbl_dept_name;
            },
        FIELD   // Assistant
            {
            fieldStorageType=KStorageTypeText;
            contactFieldType=KUidContactFieldAssistantValue;
            vCardMapping=KIntContactFieldVCardMapAssistant;
            category=EContactCategoryWork;
            fieldName=qtn_phob_lbl_assistant_name;
            },
        FIELD   // Assistant Tel
            {
            fieldStorageType=KStorageTypeText;
            contactFieldType=KUidContactFieldPhoneNumberValue;
            vCardMapping=KIntContactFieldVCardMapAssistantTel;
            category=EContactCategoryWork;
            fieldName=qtn_phob_lbl_number_assistant;
            },
        FIELD   // Car Phone
            {
            fieldStorageType=KStorageTypeText;
            contactFieldType=KUidContactFieldPhoneNumberValue;
            vCardMapping=KIntContactFieldVCardMapTEL;
            extraMapping=
                {
                // NOTE: Contact model default template has mapping: HOME,VOICE,CAR
                MAPPING { mapping=KIntContactFieldVCardMapVOICE; },        
                MAPPING { mapping=KIntContactFieldVCardMapCAR; }
                };
            category=EContactCategoryNone;
            fieldName=qtn_phob_lbl_car_tel;
            },
        FIELD   // Spouse
            {
            fieldStorageType=KStorageTypeText;
            contactFieldType=KUidContactFieldSpouseValue;
            vCardMapping=KIntContactFieldVCardMapSpouse;
            category=EContactCategoryHome;
            fieldName=qtn_phob_lbl_spouse;
            },
        FIELD   // Children
            {
            fieldStorageType=KStorageTypeText;
            contactFieldType=KUidContactFieldChildrenValue;
            vCardMapping=KIntContactFieldVCardMapChildren;
            category=EContactCategoryHome;
            fieldName=qtn_phob_lbl_children;
            },
        FIELD   // Syncronization
            {
            fieldStorageType=KStorageTypeText;
            contactFieldType=KUidContactFieldClassValue;
            vCardMapping=KIntContactFieldVCardMapClass;
            category=EContactCategoryOther;
            fieldName=qtn_phob_lbl_synchronization;
            },
        FIELD   // Anniversary
            {
            fieldStorageType=KStorageTypeDateTime;
            contactFieldType=KUidContactFieldAnniversaryValue;
            vCardMapping=KIntContactFieldVCardMapAnniversary;
            category=EContactCategoryOther;
            fieldName=qtn_phob_lbl_anniversary;
            }
        };
    }

/**
 * Mega Operator fields phonebook fields definition.
 */
RESOURCE PHONEBOOK_FIELD_ARRAY r_phoneboook_add_megaop_field_properties
    {
    items=
        {
        PHONEBOOK_FIELD     // Middle name
            {
            Id                  = EPbkFieldIdMiddleName;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = KPbkNameMaxLength;
            EditMode            = EPbkFieldEditModeAlpha;
            DefaultCase         = EPbkFieldDefaultCaseText;
            IconId              = EPbkqgn_prop_nrtyp_empty;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupNames;
            OrderingItem        = EPbkOrderingItemMiddleName;
            AddItemOrdering     = EPbkAddItemOrderMiddleName;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KUidContactFieldAdditionalNameValue;
                    parameters  = {};
                    }
                };
            ExcludeParameters   = {};
            },
        PHONEBOOK_FIELD     // Department
            {
            Id                  = EPbkFieldIdDepartment;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = KPbkNameMaxLength;
            EditMode            = EPbkFieldEditModeAlpha;
            DefaultCase         = EPbkFieldDefaultCaseText;
            IconId              = EPbkqgn_prop_nrtyp_empty;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupNames;
            OrderingItem        = EPbkOrderingItemDepartment;
            AddItemOrdering     = EPbkAddItemOrderDepartment;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyCDesCArray;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapDepartment;
                    parameters  = {};
                    }
                };
            ExcludeParameters       = {};
            },
        PHONEBOOK_FIELD     // Assistant
            {
            Id                  = EPbkFieldIdAssistantName;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = KPbkNameMaxLength;
            EditMode            = EPbkFieldEditModeAlpha;
            DefaultCase         = EPbkFieldDefaultCaseText;
            IconId              = EPbkqgn_prop_nrtyp_empty;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupNames;
            OrderingItem        = EPbkOrderingItemAssistantName;
            AddItemOrdering     = EPbkAddItemOrderAssistantName;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KUidContactFieldAssistantValue;
                    parameters  = {};
                    }
                };
            ExcludeParameters   = {};
            },
        PHONEBOOK_FIELD     // Assistant Tel
            {
            Id                  = EPbkFieldIdAssistantNumber;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkPhoneNumberMaxLength;
            EditMode            = EPbkFieldEditModeNumeric;
            DefaultCase         = EPbkFieldDefaultCaseNone;
            IconId              = EPbkqgn_prop_nrtyp_assistant;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemAssistantPhoneNumber;
            AddItemOrdering     = EPbkAddItemOrderAssistantPhone;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapAssistantTel;
                    }
                };
            ExcludeParameters       = {};
            },
        PHONEBOOK_FIELD     // Car Tel
            {
            Id                  = EPbkFieldIdCarNumber;
            Multiplicity        = EPbkFieldMultiplicityMany;
            MaxLength           = KPbkPhoneNumberMaxLength;
            EditMode            = EPbkFieldEditModeNumeric;
            DefaultCase         = EPbkFieldDefaultCaseNone;
            IconId              = EPbkqgn_prop_nrtyp_car;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupPhoneNumbers;
            OrderingItem        = EPbkOrderingItemCarPhoneNumber;
            AddItemOrdering     = EPbkAddItemOrderCarPhone;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KIntContactFieldVCardMapTEL;
                    parameters  =
                        {
                        PBK_VCARD_PARAMETER { param=KIntContactFieldVCardMapCAR; }
                        };
                    }
                };
            ExcludeParameters       = {};
            },
        PHONEBOOK_FIELD     // Spouse
            {
            Id                  = EPbkFieldIdSpouse;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = KPbkNameMaxLength;
            EditMode            = EPbkFieldEditModeAlpha;
            DefaultCase         = EPbkFieldDefaultCaseText;
            IconId              = EPbkqgn_prop_nrtyp_empty;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupNames;
            OrderingItem        = EPbkOrderingItemSpouse;
            AddItemOrdering     = EPbkAddItemOrderSpouse;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KUidContactFieldSpouseValue;
                    parameters  = {};
                    }
                };
            ExcludeParameters       = {};
            },
        PHONEBOOK_FIELD     // Children
            {
            Id                  = EPbkFieldIdChildren;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = KPbkNameMaxLength;
            EditMode            = EPbkFieldEditModeAlpha;
            DefaultCase         = EPbkFieldDefaultCaseText;
            IconId              = EPbkqgn_prop_nrtyp_empty;
            CtrlType            = EPbkFieldCtrlTypeTextEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupNames;
            OrderingItem        = EPbkOrderingItemChildren;
            AddItemOrdering     = EPbkAddItemOrderChildren;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KUidContactFieldChildrenValue;
                    parameters  = {};
                    }
                };
            ExcludeParameters       = {};
            },
        PHONEBOOK_FIELD     // Syncronization
            {
            Id                  = EPbkFieldIdSyncronization;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = KPbkCodTextMaxLength;
            EditMode            = EPbkFieldEditModeSelector;
            DefaultCase         = EPbkFieldDefaultCaseText;
            IconId              = EPbkqgn_prop_nrtyp_empty;
            CtrlType            = EPbkFieldCtrlTypeChoiseItems;
            Flags               = KPbkFieldFlagDefTemplate | KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupChoiceItems;
            OrderingItem        = EPbkOrderingItemSyncronization;
            AddItemOrdering     = EPbkAddItemOrderSyncronization;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyHBufC;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KUidContactFieldClassValue;
                    parameters  = {};
                    }
                };
            ExcludeParameters       = {};
            },
        PHONEBOOK_FIELD     // Anniversary
            {
            Id                  = EPbkFieldIdAnniversary;
            Multiplicity        = EPbkFieldMultiplicityOne;
            MaxLength           = 0;  // not applicable
            EditMode            = EPbkFieldEditModeDate;
            DefaultCase         = EPbkFieldDefaultCaseNone;
            IconId              = EPbkqgn_prop_nrtyp_date;
            CtrlType            = EPbkFieldCtrlTypeDateEditor;
            Flags               = KPbkFieldFlagUserCanAddField;
            OrderingGroup       = EPbkOrderingGroupDates;
            OrderingItem        = EPbkOrderingItemAnniversary;
            AddItemOrdering     = EPbkAddItemOrderAnniversary;
            Location            = EPbkFieldLocationNone;
            VersitStorageType   = EPbkVersitPropertyDateTime;
            ImportProperties    =
                {
                PHONEBOOK_VCARD_PROPERTY
                    {
                    name        = KUidContactFieldAnniversaryValue;
                    parameters  = {};
                    }
                };
            ExcludeParameters       = {};
            }
         };
    }


// End of File
