/*
* Copyright (c) 2008 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 Details view plugin
*
*/


//  RESOURCE IDENTIFIER
NAME CCDW // 4 letter ID

//  INCLUDES
#include <bldvariant.hrh>
#include <data_caging_paths_strings.hrh>

#include <eikon.rh>
#include <avkon.rh>

#include <EIKCORE.rsg>
#include <eikon.rsg>
#include <avkon.hrh>
#include <avkon.rsg>
#include <avkon.mbg>
#include <avkon.loc>

#include <AiwCommon.hrh>
#include <AiwCommon.rh>
#include <AiwGenericParam.hrh>

#include <VPbkFieldType.rh>
#include <Pbk2IconInfo.rh>
#include <Pbk2IconId.rh>

// Usually plugins should have their own localisation file, but this one uses ccapp's and phonebook2's
#include <phonebook2.loc>
#include <phonebook2ece.loc>

#include "ccappdetailsview.hrh"
#include "ccappdetailsviewpluginuids.hrh"
#include <ccappdetailsviewplugin.mbg>

//// Details view bitmap file location and name
#define detailsview_mbm_file_location     "z:\\resource\\apps\\ccappdetailsviewplugin.mif"

//  RESOURCE DEFINITIONS

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


// --------------------------------------------------------------------------
// r_ccappdetailsview_softkeys_options_back_empty: Options - <Empty> - Back
// --------------------------------------------------------------------------
//
RESOURCE CBA r_ccappdetailsview_softkeys_options_back_empty
{
    flags = 0;
    buttons =
    {
        CBA_BUTTON
        {
            id = EAknSoftkeyOptions;
            txt = text_softkey_option;
        },
        CBA_BUTTON
        {
            id = EAknSoftkeyBack;
            txt = text_softkey_back;
        },
        CBA_BUTTON
        {
        }
    };
}


// --------------------------------------------------------------------------
// r_ccappdetailsview_softkeys_options_back_edit: Options - Edit - Back
// --------------------------------------------------------------------------
//
RESOURCE CBA r_ccappdetailsview_softkeys_options_back_edit
{
    flags = 0;
    buttons =
    {
        CBA_BUTTON
        {
            id = EAknSoftkeyOptions;
            txt = text_softkey_option;
        },
        CBA_BUTTON
        {
            id = EAknSoftkeyBack;
            txt = text_softkey_back;
        },
        CBA_BUTTON
        {
            id = EAknSoftkeyEdit;
            txt = text_softkey_edit;
        }
    };
}

// --------------------------------------------------------------------------
// AVKON_VIEW
// Main view.
// --------------------------------------------------------------------------
//
RESOURCE AVKON_VIEW r_ccappdetailsview_mainview
{
    menubar = r_ccappdetailsview_menubar;
    cba = r_ccappdetailsview_softkeys_options_back_empty;
}

// ---------------------------------------------------------------------------
// r_ccappdetailsview_menubar
// ---------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_ccappdetailsview_menubar
{
    titles =
    {
        MENU_TITLE
        {
            menu_pane = r_ccappdetailsview_menupane;
        }
    };
}

// ---------------------------------------------------------------------------
// r_ccappdetailsview_menupane
// ---------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_ccappdetailsview_menupane
{
    items =
    {
        MENU_ITEM
        {
            // KAiwCmdAssign AIW service cmd used as Edit Options-menu item
            command = KAiwCmdAssign;
            txt = qtn_phob_opt_entry_edit;
        },
        /*
        MENU_ITEM
        {
            command = ECCAppDetailsViewImageCmd;
            txt = qtn_cca_options_view_image;
        },*/
        MENU_ITEM
        {
            command = ECCAppDetailsViewCopyDetailCmd;
            txt = qtn_cca_options_copy_detail;
            flags = EEikMenuItemSpecific;
        },
        MENU_ITEM
        {
            command = ECCAppDetailsViewNumberCmd;
            txt = qtn_cca_options_number;
            cascade = r_detailsview_detail_menupane;
            flags = EEikMenuItemSpecific;
        },

        MENU_ITEM
        {
            command = ECCAppDetailsViewFindOnMapCmd;
            txt = qtn_phob_contact_details_view_om_find_on_map;
            flags = EEikMenuItemSpecific;
        },
        MENU_ITEM
        {
            command = ECCAppDetailsViewShowOnMapCmd;
            txt = qtn_phob_contact_details_view_om_show_on_map;
            flags = EEikMenuItemSpecific;
        },

        
        MENU_ITEM
        {
            command = ECCAppDetailsViewAddressCmd;
            txt = qtn_cca_options_address;
            cascade = r_detailsview_detail_menupane;
            flags = EEikMenuItemSpecific;
        },
        
        MENU_ITEM
        {
            command = ECCAppDetailsViewSendBusinessCardCmd;
            txt = qtn_bcard_opt_send_entry_via;
        },
        /*
        MENU_ITEM
        {
            command = ECCAppDetailsViewSetTopContactCmd;
            txt = qtn_phob_opt_add_favourites; // qtn_cca_options_assign_as_favorite
        },
        MENU_ITEM
        {
            command = ECCAppDetailsViewRemoveTopContactCmd;
            txt = qtn_phob_opt_drop_from_favourites; // qtn_cca_options_unassign_favorite
        },
        */
        MENU_ITEM
        {
            command = ECCAppDetailsViewDeleteCmd;
            txt = qtn_cca_options_delete_contact; // qtn_phob_opt_entry_delete
        },
        MENU_ITEM
        {
            command = ECCAppDetailsViewCopyCmd;
            txt = qtn_phob_opt_copy;
        },
#ifdef __SERIES60_HELP
        MENU_ITEM
        {
            command = EAknCmdHelp;
            txt = qtn_options_help;
        },
#endif  // __SERIES60_HELP
        MENU_ITEM
        {
            command = EAknCmdExit;
            txt = qtn_options_exit;
        }
    };
}

// ---------------------------------------------------------------------------
// r_detailsview_detail_menupane
// ---------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_detailsview_detail_menupane
{
    items =
    {
    
        MENU_ITEM
        {
            command = ECCAppDetailsViewCopyNumberCmd;
            txt = qtn_cca_options_copy_number;
        },
        MENU_ITEM
        {
            command = ECCAppDetailsViewCopyAddressCmd;
            txt = qtn_cca_options_copy_address;
        },
        
        MENU_ITEM
        {
            command = ECCAppDetailsViewAssignSpeedDialCmd;
            txt = qtn_phob_opt_speed_dial_add;
        },
        MENU_ITEM
        {
            command = ECCAppDetailsViewUnassignSpeedDialCmd;
            txt = qtn_phob_opt_speed_dial_remove;
        },
        /*
        MENU_ITEM
        {
            command = ECCAppDetailsViewSetAsDefaultCmd;
            txt = qtn_cca_options_set_as_default;
        },
        */
        MENU_ITEM
        {
            command = ECCAppDetailsViewPrependCmd;
            txt = qtn_logs_opt_use_prepend;
        }
    };
}

// ---------------------------------------------------------------------------
// r_detailsview_aiw_service_interests
// ---------------------------------------------------------------------------
//
RESOURCE AIW_INTEREST r_detailsview_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_detailsview_callui_aiw_interest
// ---------------------------------------------------------------------------
//
RESOURCE AIW_INTEREST r_detailsview_callui_aiw_interest
{
    items=
    {
        AIW_CRITERIA_ITEM
        {
            id = KAiwCmdCall;  // serviceCmd used here also as ID
            serviceCmd = KAiwCmdCall;
            contentType = "*";
            serviceClass = KAiwClassMenu;
            maxProviders = 1;
        }
    };
}


// --------------------------------------------------------------------------
//  Selector for phone number fields
// --------------------------------------------------------------------------
//
RESOURCE VPBK_FIELD_TYPE_SELECTOR r_detailsview_phonenumber_selector
{
    versitProperties =
    {
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameTEL;
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameX;
            extensionName = "X-ASSISTANT-TEL";
        }
    };
}

// --------------------------------------------------------------------------
//  Selector for all image fields
// --------------------------------------------------------------------------
//
RESOURCE VPBK_FIELD_TYPE_SELECTOR r_detailsview_image_fields_selector
{
    versitProperties =
    {
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNamePHOTO;
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameLOGO;
        }
    };
    nonVersitType =
    {
        EVPbkNonVersitTypeCodImage
    };
}

// --------------------------------------------------------------------------
//  Selector for electronic address fields
// --------------------------------------------------------------------------
//
RESOURCE VPBK_FIELD_TYPE_SELECTOR r_detailsview_el_address_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;
        }
    };
}

// --------------------------------------------------------------------------
//  Selector for url fields
// --------------------------------------------------------------------------
//
RESOURCE VPBK_FIELD_TYPE_SELECTOR r_detailsview_url_selector
{
    versitProperties =
    {
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameURL;
        }
    };
}
// --------------------------------------------------------------------------
//  Selector for general address fields
// --------------------------------------------------------------------------
//
RESOURCE VPBK_FIELD_TYPE_SELECTOR r_detailsview_general_address_selector
{
    versitProperties =
    {
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldCountry;
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldLocality;
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldStreet;
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldPostalCode;
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldRegion;
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldExtendedAddress;
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldPostOfficeAddress;
        }
    };

    excludedParameters =
    {
        EVPbkVersitParamHOME,
        EVPbkVersitParamHOME
    };
}

// --------------------------------------------------------------------------
//  Selector for home address fields
// --------------------------------------------------------------------------
//
RESOURCE VPBK_FIELD_TYPE_SELECTOR r_detailsview_home_address_selector
{
    versitProperties =
    {
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldCountry;
            parameters =
            {
                EVPbkVersitParamHOME
            };
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldLocality;
            parameters =
            {
                EVPbkVersitParamHOME
            };
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldStreet;
            parameters =
            {
                EVPbkVersitParamHOME
            };
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldPostalCode;
            parameters =
            {
                EVPbkVersitParamHOME
            };
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldRegion;
            parameters =
            {
                EVPbkVersitParamHOME
            };
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldExtendedAddress;
            parameters =
            {
                EVPbkVersitParamHOME
            };
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldPostOfficeAddress;
            parameters =
            {
                EVPbkVersitParamHOME
            };
        }
    };
}

// --------------------------------------------------------------------------
//  Selector for work address fields
// --------------------------------------------------------------------------
//
RESOURCE VPBK_FIELD_TYPE_SELECTOR r_detailsview_work_address_selector
{
    versitProperties =
    {
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldCountry;
            parameters =
            {
                EVPbkVersitParamWORK
            };
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldLocality;
            parameters =
            {
                EVPbkVersitParamWORK
            };
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldStreet;
            parameters =
            {
                EVPbkVersitParamWORK
            };
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldPostalCode;
            parameters =
            {
                EVPbkVersitParamWORK
            };
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldRegion;
            parameters =
            {
                EVPbkVersitParamWORK
            };
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldExtendedAddress;
            parameters =
            {
                EVPbkVersitParamWORK
            };
        },
        VBK_FIELD_VERSIT_PROPERTY
        {
            name = EVPbkVersitNameADR;
            subField = EVPbkVersitSubFieldPostOfficeAddress;
            parameters =
            {
                EVPbkVersitParamWORK
            };
        }
    };
}

// --------------------------------------------------------------------------
// Details view icon info array
// --------------------------------------------------------------------------
//
RESOURCE ARRAY r_detailsview_icon_info_array
{
    items =
    {
        PBK2_ICON_INFO
        {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
            {
                ownerUid = KCCADetailsViewPluginImplmentationUid;
                id = ECCAppDetailsViewQgn_indi_qdial_one_add;
            };
            mbmFileName = detailsview_mbm_file_location;
            iconId = EMbmCcappdetailsviewpluginQgn_indi_qdial_one_add;
            maskId = EMbmCcappdetailsviewpluginQgn_indi_qdial_one_add_mask;
        },
        PBK2_ICON_INFO
        {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
            {
                ownerUid = KCCADetailsViewPluginImplmentationUid;
                id = ECCAppDetailsViewQgn_indi_qdial_two_add;
            };
            mbmFileName = detailsview_mbm_file_location;
            iconId = EMbmCcappdetailsviewpluginQgn_indi_qdial_two_add;
            maskId = EMbmCcappdetailsviewpluginQgn_indi_qdial_two_add_mask;
        },
        PBK2_ICON_INFO
        {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
            {
                ownerUid = KCCADetailsViewPluginImplmentationUid;
                id = ECCAppDetailsViewQgn_indi_qdial_three_add;
            };
            mbmFileName = detailsview_mbm_file_location;
            iconId = EMbmCcappdetailsviewpluginQgn_indi_qdial_three_add;
            maskId = EMbmCcappdetailsviewpluginQgn_indi_qdial_three_add_mask;
        },
        PBK2_ICON_INFO
        {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
            {
                ownerUid = KCCADetailsViewPluginImplmentationUid;
                id = ECCAppDetailsViewQgn_indi_qdial_four_add;
            };
            mbmFileName = detailsview_mbm_file_location;
            iconId = EMbmCcappdetailsviewpluginQgn_indi_qdial_four_add;
            maskId = EMbmCcappdetailsviewpluginQgn_indi_qdial_four_add_mask;
        },
        PBK2_ICON_INFO
        {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
            {
                ownerUid = KCCADetailsViewPluginImplmentationUid;
                id = ECCAppDetailsViewQgn_indi_qdial_five_add;
            };
            mbmFileName = detailsview_mbm_file_location;
            iconId = EMbmCcappdetailsviewpluginQgn_indi_qdial_five_add;
            maskId = EMbmCcappdetailsviewpluginQgn_indi_qdial_five_add_mask;
        },
        PBK2_ICON_INFO
        {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
            {
                ownerUid = KCCADetailsViewPluginImplmentationUid;
                id = ECCAppDetailsViewQgn_indi_qdial_six_add;
            };
            mbmFileName = detailsview_mbm_file_location;
            iconId = EMbmCcappdetailsviewpluginQgn_indi_qdial_six_add;
            maskId = EMbmCcappdetailsviewpluginQgn_indi_qdial_six_add_mask;
        },
        PBK2_ICON_INFO
        {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
            {
                ownerUid = KCCADetailsViewPluginImplmentationUid;
                id = ECCAppDetailsViewQgn_indi_qdial_seven_add;
            };
            mbmFileName = detailsview_mbm_file_location;
            iconId = EMbmCcappdetailsviewpluginQgn_indi_qdial_seven_add;
            maskId = EMbmCcappdetailsviewpluginQgn_indi_qdial_seven_add_mask;
        },
        PBK2_ICON_INFO
        {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
            {
                ownerUid = KCCADetailsViewPluginImplmentationUid;
                id = ECCAppDetailsViewQgn_indi_qdial_eight_add;
            };
            mbmFileName = detailsview_mbm_file_location;
            iconId = EMbmCcappdetailsviewpluginQgn_indi_qdial_eight_add;
            maskId = EMbmCcappdetailsviewpluginQgn_indi_qdial_eight_add_mask;
        },
        PBK2_ICON_INFO
        {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
            {
                ownerUid = KCCADetailsViewPluginImplmentationUid;
                id = ECCAppDetailsViewQgn_indi_qdial_nine_add;
            };
            mbmFileName = detailsview_mbm_file_location;
            iconId = EMbmCcappdetailsviewpluginQgn_indi_qdial_nine_add;
            maskId = EMbmCcappdetailsviewpluginQgn_indi_qdial_nine_add_mask;
        },
        PBK2_ICON_INFO
        {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
            {
                ownerUid = KCCADetailsViewPluginImplmentationUid;
                id = ECCAppDetailsViewQgn_indi_default_conn_add;
            };
            mbmFileName = detailsview_mbm_file_location;
            iconId = EMbmCcappdetailsviewpluginQgn_indi_default_conn_add;
            maskId = EMbmCcappdetailsviewpluginQgn_indi_default_conn_add_mask;
        }
    };
}

// --------------------------------------------------------------------------
// Details view icon array
// --------------------------------------------------------------------------
//
RESOURCE PBK2_ICON_ARRAY r_detailsview_icon_array
{
    arrayId = 1;
    icons =
    {
        PHONEBOOK2_ICON_ID
        {
            ownerUid = KCCADetailsViewPluginImplmentationUid;
            id = ECCAppDetailsViewQgn_indi_qdial_one_add;
        },
        PHONEBOOK2_ICON_ID
        {
            ownerUid = KCCADetailsViewPluginImplmentationUid;
            id = ECCAppDetailsViewQgn_indi_qdial_two_add;
        },
        PHONEBOOK2_ICON_ID
        {
            ownerUid = KCCADetailsViewPluginImplmentationUid;
            id = ECCAppDetailsViewQgn_indi_qdial_three_add;
        },
        PHONEBOOK2_ICON_ID
        {
            ownerUid = KCCADetailsViewPluginImplmentationUid;
            id = ECCAppDetailsViewQgn_indi_qdial_four_add;
        },
        PHONEBOOK2_ICON_ID
        {
            ownerUid = KCCADetailsViewPluginImplmentationUid;
            id = ECCAppDetailsViewQgn_indi_qdial_five_add;
        },
        PHONEBOOK2_ICON_ID
        {
            ownerUid = KCCADetailsViewPluginImplmentationUid;
            id = ECCAppDetailsViewQgn_indi_qdial_six_add;
        },
        PHONEBOOK2_ICON_ID
        {
            ownerUid = KCCADetailsViewPluginImplmentationUid;
            id = ECCAppDetailsViewQgn_indi_qdial_seven_add;
        },
        PHONEBOOK2_ICON_ID
        {
            ownerUid = KCCADetailsViewPluginImplmentationUid;
            id = ECCAppDetailsViewQgn_indi_qdial_eight_add;
        },
        PHONEBOOK2_ICON_ID
        {
            ownerUid = KCCADetailsViewPluginImplmentationUid;
            id = ECCAppDetailsViewQgn_indi_qdial_nine_add;
        },
        PHONEBOOK2_ICON_ID
        {
            ownerUid = KCCADetailsViewPluginImplmentationUid;
            id = ECCAppDetailsViewQgn_indi_default_conn_add;
        }
    };
}

// End of File
