/*
* Copyright (c) 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:  Resource file for CCA MyCard plugin
*
*/


//  RESOURCE IDENTIFIER (4 letter ID)
NAME    MYCD 

//  INCLUDES
#include <eikon.rh>
#include <EIKCORE.rsg>
#include <eikon.rsg>

#include <avkon.rh>
#include <avkon.hrh>
#include <avkon.rsg>
#include <avkon.mbg>
#include <avkon.loc>

#include <phonebook2.loc>//business card
#include <AiwCommon.rh>
#include <AiwGenericParam.hrh>

#include <VPbkFieldType.rh>
#include <phonebook2ece.loc>

#include "ccappmycard.hrh"

// includes for the field resource
#include <VPbkEng.rsg>
#include <VPbkFieldType.rh>
#include <Pbk2UID.h>
#include <Pbk2FieldProperty.hrh>
#include <Pbk2FieldProperty.rh>
#include <Pbk2IconId.rh>


// Todo: This will be read from loc file after localization
#define qtn_mycard_default_status "My Profile in Ovi"
//  RESOURCE DEFINITIONS 

// ---------------------------------------------------------------------------
// RSS_SIGNATURE
// ---------------------------------------------------------------------------
//
RESOURCE RSS_SIGNATURE {}

// ---------------------------------------------------------------------------
// r_ccamycard_view
// ---------------------------------------------------------------------------
//
RESOURCE AVKON_VIEW r_ccamycard_view
    {
    menubar = r_ccamycard_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
    }

// ---------------------------------------------------------------------------
// r_ccamycard_menubar
// ---------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_ccamycard_menubar
    {
    titles = 
        {
        MENU_TITLE { menu_pane = r_ccamycard_menupane; }
        };
    }

// ---------------------------------------------------------------------------
// r_ccamycard_menupane
// ---------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_ccamycard_menupane
    {
    items =
        {       
        MENU_ITEM 
            { 
            command = ECCAppMyCardCmdEdit;
            txt = "Edit";
            },         
        MENU_ITEM 
            { 
            command = ECCappMyCardCmdSendVCard;
            txt = qtn_bcard_opt_send_entry_via;	//from phonebook2.loc
            },  
        MENU_ITEM 
            { 
            command = ECCappMyCardCmdDelete;
            txt = qtn_phob_opt_entry_delete;	
            }, 	        	        	
        MENU_ITEM 
            { 
            command = EAknCmdHelp;
            txt = qtn_options_help; 
            },         
        MENU_ITEM 
            { 
            command = EAknCmdExit; 
            txt = qtn_options_exit; 
            }
        };
    }

// ---------------------------------------------------------------------------
// r_mycard_aiw_service_interests
// ---------------------------------------------------------------------------
//
RESOURCE AIW_INTEREST r_mycard_aiw_service_interests
{
    items=
    {
        AIW_CRITERIA_ITEM
        {
            id = KAiwCmdAssign;// serviceCmd used here also as ID
            serviceCmd = KAiwCmdAssign;
            contentType = EGenericParamContactLinkArrayStr;
            serviceClass = KAiwClassMenu;//not working with KAiwClassBase altough used as service cmd
            maxProviders    = 1;
        }
        // Add here other possible AIW service criterias..
    };
}

// --------------------------------------------------------------------------
// r_mycard_el_address_selector
// --------------------------------------------------------------------------
//
RESOURCE VPBK_FIELD_TYPE_SELECTOR r_mycard_clip_field_selector
{
    versitProperties =
    {
        // email fields
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameEMAIL;
        },
        // SIP fields (POC, SWIS, VoIP, etc.)
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameX;
            extensionName = "X-SIP";
        },
        // xSP fields
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameIMPP;
        },
        // telephone
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameTEL;
        },
        // telephone
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameX;
            extensionName = "X-ASSISTANT-TEL";
        }
    };
}

// --------------------------------------------------------------------------
// r_qtn_mycard_title
// --------------------------------------------------------------------------
//
RESOURCE TBUF r_qtn_mycard_title
{
    // TODO: localization
    buf = "MyCard";
}
// --------------------------------------------------------------------------
// r_qtn_mycard_editor_title
// --------------------------------------------------------------------------
//
RESOURCE TBUF r_qtn_mycard_editor_title
{    
    buf = qtn_cca_mc_title_edit_my_card;
}

// ---------------------------------------------------------------------------
// r_qtn_mycard_default_status
// ---------------------------------------------------------------------------
// 
RESOURCE TBUF r_qtn_mycard_default_status 			   
	{ 
	buf = qtn_mycard_default_status; 
	}

// --------------------------------------------------------------------------
// Social Phonebook field properties for the contact editor
// @original resource: R_PHONEBOOK_FIELD_PROPERTIES
// --------------------------------------------------------------------------
//
RESOURCE PHONEBOOK2_FIELD_PROPERTY_ARRAY r_social_phonebook_field_properties
    {
    items =
        {
        /// Last name
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_LASTNAME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagTemplateField | KPbk2FieldFlagUserCanAddField |
                    KPbk2FieldFlagCanNotBeRemoved;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdLastName;
            defaultLabel = qtn_phob_lbl_last_name;
            },
        /// Last name reading
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_LASTNAMEREADING;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeReadingEditor;
            flags = KPbk2FieldFlagTemplateField | KPbk2FieldFlagUserCanAddField |
                    KPbk2FieldFlagCanNotBeRemoved;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdLastName;
            defaultLabel = qtn_phob_lbl_last_reading;
            },
        /// First name
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_FIRSTNAME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagTemplateField | KPbk2FieldFlagUserCanAddField |
                    KPbk2FieldFlagCanNotBeRemoved;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdFirstName;
            defaultLabel = qtn_phob_lbl_first_name;
            },
        /// First name reading
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_FIRSTNAMEREADING;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeReadingEditor;
            flags = KPbk2FieldFlagTemplateField | KPbk2FieldFlagUserCanAddField |
                    KPbk2FieldFlagCanNotBeRemoved;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdFirstName;
            defaultLabel = qtn_phob_lbl_first_reading;
            },
        /// Prefix
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_PREFIX;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 10;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdNone;
            defaultLabel = qtn_phob_lbl_prefix;
            },
        /// Suffix
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_SUFFIX;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 10;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdNone;
            defaultLabel = qtn_phob_lbl_suffix;
            },
        /// Nick name
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_SECONDNAME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_simp_lbl_nick;
            },
        /// Landline phone (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_LANDPHONEHOME;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_phone;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationHome;
            defaultLabel = qtn_phob_lbl_number_home;
            },
        /// Mobile phone (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_MOBILEPHONEHOME;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_mobile;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationHome;
            defaultLabel = qtn_phob_lbl_number_mobile_home;
            },
        /// Video number (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_VIDEONUMBERHOME;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_video;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationHome;
            defaultLabel = qtn_phob_lbl_video_home;
            },
        /// Fax number (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_FAXNUMBERHOME;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_fax;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationHome;
            defaultLabel = qtn_phob_lbl_fax_home;
            },
        /// VOIP (Tel. Internet) (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_VOIPHOME;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 100;
            editMode = EPbk2FieldEditModeLatinOnly;
            defaultCase = EPbk2FieldDefaultCaseLower;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_voip;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationHome;
            defaultLabel = qtn_phob_lbl_voip_home;
            },
        /// Email address (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_EMAILHOME;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 150;
            editMode = EPbk2FieldEditModeLatinOnly;
            defaultCase = EPbk2FieldDefaultCaseLower;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_email;
                };
            ctrlType = EPbk2FieldCtrlEmailEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationHome;
            defaultLabel = qtn_phob_lbl_email_home;
            },
        /// URL (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_URLHOME;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 1000;
            editMode = EPbk2FieldEditModeLatinOnly;
            defaultCase = EPbk2FieldDefaultCaseLower;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_url;
                };
            ctrlType = EPbk2FieldCtrlURLEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationHome;
            defaultLabel = qtn_phob_lbl_url_home;
            },
        /// Address label (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRLABELHOME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 250;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_address;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagNull;
            location = EPbk2FieldLocationHome;
            defaultLabel = qtn_phob_lbl_address_home;
            },
        /// Address postoffice (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRPOHOME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 20;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_pobox_home;
            location = EPbk2FieldLocationHome;
            groupId = EPbk2FieldGroupIdHomeAddress;
            defaultLabel = qtn_phob_lbl_pobox_home;
            },
        /// Address extension (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDREXTHOME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_extension_home;
            location = EPbk2FieldLocationHome;
            groupId = EPbk2FieldGroupIdHomeAddress;
            defaultLabel = qtn_phob_lbl_extencion_home;
            },
        /// Address street (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRSTREETHOME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_street_home;
            location = EPbk2FieldLocationHome;
            groupId = EPbk2FieldGroupIdHomeAddress;
            defaultLabel = qtn_phob_lbl_street_home;
            },
        /// Address city (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRLOCALHOME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_city_home;
            location = EPbk2FieldLocationHome;
            groupId = EPbk2FieldGroupIdHomeAddress;
            defaultLabel = qtn_phob_lbl_city_home;
            },
        /// Address region (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRREGIONHOME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_state_home;
            location = EPbk2FieldLocationHome;
            groupId = EPbk2FieldGroupIdHomeAddress;
            defaultLabel = qtn_phob_lbl_state_home;
            },
        /// Address postal code (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRPOSTCODEHOME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 20;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlPostalCodeEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_postal_code_home;
            location = EPbk2FieldLocationHome;
            groupId = EPbk2FieldGroupIdHomeAddress;
            defaultLabel = qtn_phob_lbl_postal_code_home;
            },
        /// Address country (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRCOUNTRYHOME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_country_home;
            location = EPbk2FieldLocationHome;
            groupId = EPbk2FieldGroupIdHomeAddress;
            defaultLabel = qtn_phob_lbl_country_home;
            },
        /// Job title
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_JOBTITLE;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagTemplateField |
                    KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_job_title;
            },
        /// Company name
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_COMPANYNAME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagTemplateField |
                    KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_company_name;
            },

        /// Landline phone (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_LANDPHONEWORK;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_phone;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationWork;
            defaultLabel = qtn_phob_lbl_number_work;
            },
        /// Mobile phone (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_MOBILEPHONEWORK;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_mobile;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationWork;
            defaultLabel = qtn_phob_lbl_number_mobile_work;
            },
        /// Video number (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_VIDEONUMBERWORK;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_video;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationWork;
            defaultLabel = qtn_phob_lbl_video_work;
            },
        /// Fax number (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_FAXNUMBERWORK;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_fax;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationWork;
            defaultLabel = qtn_phob_lbl_fax_work;
            },
        /// VOIP (Tel. Internet) (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_VOIPWORK;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 100;
            editMode = EPbk2FieldEditModeLatinOnly;
            defaultCase = EPbk2FieldDefaultCaseLower;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_voip;
                };
            ctrlType = EPbk2FieldCtrlEmailEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationWork;
            defaultLabel = qtn_phob_lbl_voip_work;
            },
        /// Email address (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_EMAILWORK;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 150;
            editMode = EPbk2FieldEditModeLatinOnly;
            defaultCase = EPbk2FieldDefaultCaseLower;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_email;
                };
            ctrlType = EPbk2FieldCtrlEmailEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationWork;
            defaultLabel = qtn_phob_lbl_email_work;
            },
        /// URL (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_URLWORK;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 1000;
            editMode = EPbk2FieldEditModeLatinOnly;
            defaultCase = EPbk2FieldDefaultCaseLower;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_url;
                };
            ctrlType = EPbk2FieldCtrlURLEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationWork;
            defaultLabel = qtn_phob_lbl_url_work;
            },
        /// Address label (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRLABELWORK;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 250;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_address;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagNull;
            location = EPbk2FieldLocationWork;
            defaultLabel = qtn_phob_lbl_address_work;
            },
        /// Address postoffice (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRPOWORK;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 20;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_pobox_work;
            location = EPbk2FieldLocationWork;
            groupId = EPbk2FieldGroupIdCompanyAddress;
            defaultLabel = qtn_phob_lbl_pobox_work;
            },
        /// Address extension (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDREXTWORK;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_extension_work;
            location = EPbk2FieldLocationWork;
            groupId = EPbk2FieldGroupIdCompanyAddress;
            defaultLabel = qtn_phob_lbl_extencion_work;
            },
        /// Address street (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRSTREETWORK;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_street_work;
            location = EPbk2FieldLocationWork;
            groupId = EPbk2FieldGroupIdCompanyAddress;
            defaultLabel = qtn_phob_lbl_street_work;
            },
        /// Address city (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRLOCALWORK;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_city_work;
            location = EPbk2FieldLocationWork;
            groupId = EPbk2FieldGroupIdCompanyAddress;
            defaultLabel = qtn_phob_lbl_city_work;
            },
        /// Address region (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRREGIONWORK;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_state_work;
            location = EPbk2FieldLocationWork;
            groupId = EPbk2FieldGroupIdCompanyAddress;
            defaultLabel = qtn_phob_lbl_state_work;
            },
        /// Address postal code (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRPOSTCODEWORK;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 20;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlPostalCodeEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_postal_code_work;
            location = EPbk2FieldLocationWork;
            groupId = EPbk2FieldGroupIdCompanyAddress;
            defaultLabel = qtn_phob_lbl_postal_code_work;
            },
        /// Address country (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRCOUNTRYWORK;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_country_work;
            location = EPbk2FieldLocationWork;
            groupId = EPbk2FieldGroupIdCompanyAddress;
            defaultLabel = qtn_phob_lbl_country_work;
            },
        /// Landline phone (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_LANDPHONEGEN;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_phone;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagTemplateField |
                    KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_number_standard;
            },
        /// Mobile phone (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_MOBILEPHONEGEN;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_mobile;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagTemplateField |
                    KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_number_mobile;
            },
        /// Video number (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_VIDEONUMBERGEN;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_video;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagTemplateField |
                    KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_video;
            },
        /// Fax number (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_FAXNUMBERGEN;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_fax;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_fax;
            },
        /// VOIP (Tel. Internet) (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_VOIPGEN;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 100;
            editMode = EPbk2FieldEditModeLatinOnly;
            defaultCase = EPbk2FieldDefaultCaseLower;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_voip;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagTemplateField |
                    KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_voip;
            },
        /// PTT (POC)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_POC;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 100;
            editMode = EPbk2FieldEditModeLatinOnly;
            defaultCase = EPbk2FieldDefaultCaseLower;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_poc;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagTemplateField |
                    KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_poc;
            },
        /// SWIS (Share view)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_SWIS;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 100;
            editMode = EPbk2FieldEditModeLatinOnly;
            defaultCase = EPbk2FieldDefaultCaseLower;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_swis;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_swis;
            },
        /// SIP
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_SIP;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 100;
            editMode = EPbk2FieldEditModeLatinOnly;
            defaultCase = EPbk2FieldDefaultCaseLower;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_sip;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_sip;
            },

        /// Email address (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_EMAILGEN;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 150;
            editMode = EPbk2FieldEditModeLatinOnly;
            defaultCase = EPbk2FieldDefaultCaseLower;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_email;
                };
            ctrlType = EPbk2FieldCtrlEmailEditor;
            flags = KPbk2FieldFlagTemplateField |
                    KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_email;
            },
        /// URL (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_URLGEN;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 1000;
            editMode = EPbk2FieldEditModeLatinOnly;
            defaultCase = EPbk2FieldDefaultCaseLower;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_url;
                };
            ctrlType = EPbk2FieldCtrlURLEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_url;
            },
        /// Address label (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRLABELGEN;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 250;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_address;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagNull;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_address;
            },
        /// Address postoffice (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRPOGEN;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 20;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_pobox;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdPostalAddress;
            defaultLabel = qtn_phob_lbl_address;
            },
        /// Address extension (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDREXTGEN;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_extension;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdPostalAddress;
            defaultLabel = qtn_phob_lbl_extencion;
            },
        /// Address street (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRSTREETGEN;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_street;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdPostalAddress;
            defaultLabel = qtn_phob_lbl_street;
            },
        /// Address city (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRLOCALGEN;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_city;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdPostalAddress;
            defaultLabel = qtn_phob_lbl_city;
            },
        /// Address region (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRREGIONGEN;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_state;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdPostalAddress;
            defaultLabel = qtn_phob_lbl_state;
            },
        /// Address postal code (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRPOSTCODEGEN;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 20;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlPostalCodeEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_postal_code;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdPostalAddress;
            defaultLabel = qtn_phob_lbl_postal_code;
            },
        /// Address country (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ADDRCOUNTRYGEN;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            addItemText = qtn_phob_lbl2_country;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdPostalAddress;
            defaultLabel = qtn_phob_lbl_country;
            },
        /// Pager number
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_PAGERNUMBER;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_pager;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagTemplateField |
                    KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_pager;
            },
        /// DTMF string
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_DTMFSTRING;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 60;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeDTMFEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_dtmf;
            },

        /// Wv(IM) address field - will be inserted by PEC & IM

        /// Date
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_DATE;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 48;
            editMode = EPbk2FieldEditModeDate;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_date;
                };
            ctrlType = EPbk2FieldCtrlTypeDateEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_date;
            },
        /// Note
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_NOTE;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 1000;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_note;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_note;
            },
        /// Thumbnail photo
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_THUMBNAILPIC;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 0;
            editMode = EPbk2FieldEditModeSelector;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeNone;
            flags = KPbk2FieldFlagDisableEdit |
                    KPbk2FieldFlagHideFromDetailsView;
            location = EPbk2FieldLocationNone;
            },
        /// Caller object image
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_CALLEROBJIMG;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 256;
            editMode = EPbk2FieldEditModeSelector;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeImageEditor;  
            flags = KPbk2FieldFlagTemplateField | KPbk2FieldFlagCanNotBeRemoved | KPbk2FieldFlagUserCanAddField; 
            location = EPbk2FieldLocationNone;
            defaultLabel = qtn_phob_lbl_image;
            },
        /// Middle name
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_MIDDLENAME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdLastName;
            defaultLabel = qtn_phob_lbl_middle_name;
            },
        /// Department
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_DEPARTMENT;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdNone;
            defaultLabel = qtn_phob_lbl_dept_name;
            },
        /// Assistant name
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ASSTNAME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdNone;
            defaultLabel = qtn_phob_lbl_assistant_name;
            },
        /// Spouse
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_SPOUSE;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdNone;
            defaultLabel = qtn_phob_lbl_spouse;
            },
        /// Children
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_CHILDREN;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseText;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdNone;
            defaultLabel = qtn_phob_lbl_children;
            },
        /// Assistant phone
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ASSTPHONE;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_assistant;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdNone;
            defaultLabel = qtn_phob_lbl_number_assistant;
            },

        /// Car phone
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_CARPHONE;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 48;
            editMode = EPbk2FieldEditModeNumeric;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_car;
                };
            ctrlType = EPbk2FieldCtrlTypePhoneNumberEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdNone;
            defaultLabel = qtn_phob_lbl_car_tel;
            },
        /// Anniversary
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_ANNIVERSARY;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 0;
            editMode = EPbk2FieldEditModeDate;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_date;
                };
            ctrlType = EPbk2FieldCtrlTypeDateEditor;
            flags = KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdNone;
            defaultLabel = qtn_phob_lbl_anniversary;
            },
        /// Synchronization
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_SYNCCLASS;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 10;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeChoiceItems;
            flags = KPbk2FieldFlagTemplateField |
                    KPbk2FieldFlagCanNotBeRemoved |
                    KPbk2FieldFlagHideFromDetailsView;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdNone;
            defaultLabel = qtn_phob_lbl_synchronization;
            },
        /// Top contact field
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_TOPCONTACT;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 0;
            editMode = EPbk2FieldEditModeSelector;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeNone;
            flags = KPbk2FieldFlagDisableEdit |
                    KPbk2FieldFlagCanNotBeRemoved  |
                    KPbk2FieldFlagHideFromDetailsView;
            location = EPbk2FieldLocationNone;
            },
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_IMPP;
            multiplicity = EPbk2FieldMultiplicityMany;
            maxLength = 100;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseLower;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeIMPPEditor;
            flags = KPbk2FieldFlagTemplateField | KPbk2FieldFlagUserCanAddField;
            location = EPbk2FieldLocationNone;
            },
        /// Geographic coordinates (home)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_GEOHOME;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagDisableEdit
                | KPbk2FieldFlagHideFromDetailsView;
            location = EPbk2FieldLocationHome;
            groupId = EPbk2FieldGroupIdNone;
            },
        /// Geographic coordinates (work)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_GEOWORK;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagDisableEdit
                | KPbk2FieldFlagHideFromDetailsView;
            location = EPbk2FieldLocationWork;
            groupId = EPbk2FieldGroupIdNone;
            },
        /// Geographic coordinates (general)
        PHONEBOOK2_FIELD_PROPERTY
            {
            fieldTypeLink = R_VPBK_FIELD_TYPE_GEOGEN;
            multiplicity = EPbk2FieldMultiplicityOne;
            maxLength = 50;
            editMode = EPbk2FieldEditModeAlpha;
            defaultCase = EPbk2FieldDefaultCaseNone;
            iconId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2qgn_prop_nrtyp_empty;
                };
            ctrlType = EPbk2FieldCtrlTypeTextEditor;
            flags = KPbk2FieldFlagDisableEdit
                | KPbk2FieldFlagHideFromDetailsView;
            location = EPbk2FieldLocationNone;
            groupId = EPbk2FieldGroupIdNone;
            }
        };
    }
// ---------------------------------------------------------------------------
// r_ccacommlauncher_contact_image_stylus_menu
// ---------------------------------------------------------------------------
//
RESOURCE STYLUS_POPUP_MENU r_mycard_contact_image_stylus_menu
    {
    items =
        {
        STYLUS_POPUP_MENU_ITEM { txt = qtn_cca_stylus_popup_view_image; 
                             command = ECCAppMyCardCmdStylusViewImageCmd; },
        STYLUS_POPUP_MENU_ITEM { txt = qtn_cca_stylus_popup_change_image; 
                             command = ECCAppMyCardCmdStylusChangeImageCmd; },
        STYLUS_POPUP_MENU_ITEM { txt = qtn_cca_stylus_popup_remove_image; 
                             command = ECCAppMyCardCmdStylusRemoveImageCmd; },
        STYLUS_POPUP_MENU_ITEM { txt = qtn_cca_stylus_popup_add_image; 
                             command = ECCAppMyCardCmdStylusAddImageCmd; }
        };
    }

//End of File
