/*
* Copyright (c) 2005-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:  Phonebook 2 view navigation graph definitions.
*
*/


// INCLUDE FILES
#include <Pbk2IconInfo.rh>
#include <Pbk2Icons.hrh>
#include <Pbk2UID.h>
#include <Pbk2ViewGraph.rh>
#include <Pbk2IconId.rh>
#include <Pbk2ViewId.hrh>
#include <Pbk2ViewInfo.hrh>

// --------------------------------------------------------------------------
// Names list view tab groups
// --------------------------------------------------------------------------
//
RESOURCE PBK2_VIEW_NODE_TAB_ARRAY r_pbk2_names_list_view_tabs
    {
    items =
        {
        PBK2_VIEW_NODE_TAB
            {
            version = 0;
            tabsInGroup = 1;
            tab = r_pbk2_names_list_view_tab1;
            iconId = r_pbk2_names_list_view_tab1_icon;
            },
        PBK2_VIEW_NODE_TAB
            {
            version = 0;
            tabsInGroup = 2;
            tab = r_pbk2_names_list_view_tab2;
            iconId = r_pbk2_names_list_view_tab2_icon;
            },
        PBK2_VIEW_NODE_TAB
            {
            version = 0;
            tabsInGroup = 3;
            tab = r_pbk2_names_list_view_tab3;
            iconId = r_pbk2_names_list_view_tab3_icon;
            },
        PBK2_VIEW_NODE_TAB
            {
            version = 0;
            tabsInGroup = 4;
            tab = r_pbk2_names_list_view_tab3;
            iconId = r_pbk2_names_list_view_tab3_icon;
            }
        };
    }

// --------------------------------------------------------------------------
// Names list view tab icon 1
// --------------------------------------------------------------------------
//
RESOURCE ARRAY r_pbk2_names_list_view_tab1_icon
    {
    items =
        {
        PBK2_ICON_INFO
            {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2NamesListViewId;
                };
            mbmFileName = phonebook2_mbm_file_location;
            iconId = qgn_prop_pb_all_tab2;
            maskId = qgn_prop_pb_all_tab2_mask;
            skinIdMajor = EAknsMajorAvkon;
            skinIdMinor = EAknsMinorQgnPropNoteListAlphaTab2;
            }
        };
    }

// --------------------------------------------------------------------------
// Names list view tab 1
// --------------------------------------------------------------------------
//
RESOURCE TAB r_pbk2_names_list_view_tab1
    {
    id = EPbk2NamesListViewId;
    bmpfile = phonebook2_mbm_file_location;
    bmpid = qgn_prop_group_open_tab1;
    bmpmask = qgn_prop_group_open_tab1_mask;
    }

// --------------------------------------------------------------------------
// Names list view tab icon 2
// --------------------------------------------------------------------------
//
RESOURCE ARRAY r_pbk2_names_list_view_tab2_icon
    {
    items =
        {
        PBK2_ICON_INFO
            {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2NamesListViewId;
                };
            mbmFileName = phonebook2_mbm_file_location;
            iconId = qgn_prop_pb_all_tab2;
            maskId = qgn_prop_pb_all_tab2_mask;
            skinIdMajor = EAknsMajorAvkon;
            skinIdMinor = EAknsMinorQgnPropNoteListAlphaTab2;
            }
        };
    }

// --------------------------------------------------------------------------
// Names list view tab 2
// --------------------------------------------------------------------------
//
RESOURCE TAB r_pbk2_names_list_view_tab2
    {
    id = EPbk2NamesListViewId;
    bmpfile = phonebook2_mbm_file_location;
    bmpid = qgn_prop_pb_all_tab2;
    bmpmask = qgn_prop_pb_all_tab2_mask;
    }

// --------------------------------------------------------------------------
// Names list view tab icon 3
// --------------------------------------------------------------------------
//
RESOURCE ARRAY r_pbk2_names_list_view_tab3_icon
    {
    items =
        {
        PBK2_ICON_INFO
            {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2NamesListViewId;
                };
            mbmFileName = phonebook2_mbm_file_location;
            iconId = qgn_prop_pb_all_tab3; 
            maskId = qgn_prop_pb_all_tab3_mask;
            skinIdMajor = EAknsMajorGeneric;
            skinIdMinor = EAknsMinorGenericQgnPropListTab3;
            }
        };
    }

// --------------------------------------------------------------------------
// Names list view tab 3
// --------------------------------------------------------------------------
//
RESOURCE TAB r_pbk2_names_list_view_tab3
    {
    id = EPbk2NamesListViewId;
    bmpfile = phonebook2_mbm_file_location;
    bmpid = qgn_prop_pb_all_tab3;
    bmpmask = qgn_prop_pb_all_tab3_mask;
    }

// --------------------------------------------------------------------------
// Contact info view tab groups
// --------------------------------------------------------------------------
//
RESOURCE PBK2_VIEW_NODE_TAB_ARRAY r_pbk2_memory_entry_tabs
    {
    items =
        {
        PBK2_VIEW_NODE_TAB
            {
            version = 0;
            tabsInGroup = 1;
            tab = r_pbk2_memory_entry_tab1;
            iconId = r_pbk2_memory_entry_tab1_icon;
            }
        };
    }

// --------------------------------------------------------------------------
// Contact info view tab icon 1
// --------------------------------------------------------------------------
//
RESOURCE ARRAY r_pbk2_memory_entry_tab1_icon
    {
    items =
        {
        PBK2_ICON_INFO
            {
            version = 0;
            pbk2IconInfoId = PHONEBOOK2_ICON_ID
                {
                ownerUid = KPbk2UID3;
                id = EPbk2ContactInfoViewId;
                };
            mbmFileName = phonebook2_mbm_file_location;
            iconId = qgn_prop_pb_contacts_tab1;
            maskId = qgn_prop_pb_contacts_tab1_mask;
            skinIdMajor = EAknsMajorGeneric;
            skinIdMinor = EAknsMinorGenericQgnPropPbContactsTab1;
            }
        };
    }

// --------------------------------------------------------------------------
// Contact info view tab 1
// --------------------------------------------------------------------------
//
RESOURCE TAB r_pbk2_memory_entry_tab1
    {
    id = EPbk2ContactInfoViewId;
    }

// --------------------------------------------------------------------------
// Settins view tab groups
// --------------------------------------------------------------------------
//
RESOURCE PBK2_VIEW_NODE_TAB_ARRAY r_pbk2_settings_view_tabs
    {
    items =
        {
        PBK2_VIEW_NODE_TAB
            {
            version = 0;
            tabsInGroup = 1;
            tab = r_pbk2_settings_view_tab1;
            }
        };
    }

// --------------------------------------------------------------------------
// Settings view tab 1
// --------------------------------------------------------------------------
//
RESOURCE TAB r_pbk2_settings_view_tab1
    {
    id = EPbk2SettingsViewId;
    }

// --------------------------------------------------------------------------
// View navigation graph
// --------------------------------------------------------------------------
//
RESOURCE PBK2_VIEW_GRAPH r_pbk2_viewnodes
    {
    nodes =
        {
        /// Exit view
        PBK2_VIEW_NODE
            {
            version = 0;
            viewId = EPbk2ExitViewId;
            defaultPrevViewId = EPbk2NullViewId;
            exitNode = 1;
            },

        /// Names list view
        PBK2_VIEW_NODE
            {
            version = 0;
            viewId = EPbk2NamesListViewId;
            defaultPrevViewId = EPbk2ExitViewId;
            transitions =
                {
                PBK2_VIEW_TRANSITION
                    {
                    version = 0;
                    event = EPbk2ViewTransitionBack;
                    targetViewId = EPbk2NullViewId;
                    }
                };
            tabGroupId = EPbk2MainTabGroup;
            tabGroupOrdering = EPbk2NamesListViewTabOrdering;
            tabs = r_pbk2_names_list_view_tabs;
            },

        /// Contact info view
        PBK2_VIEW_NODE
            {
            version = 0;
            viewId = EPbk2ContactInfoViewId;
            defaultPrevViewId = EPbk2NamesListViewId;
            transitions =
                {
                PBK2_VIEW_TRANSITION
                    {
                    version = 0;
                    event = EPbk2ViewTransitionBack;
                    targetViewId = EPbk2NamesListViewId;
                    }
                };
            tabGroupId = EPbk2MemoryEntryTabGroup;
            tabGroupOrdering = EPbk2ContactInfoViewTabOrdering;
            tabs = r_pbk2_memory_entry_tabs;
            },

        /// Settings view
        PBK2_VIEW_NODE
            {
            version = 0;
            viewId = EPbk2SettingsViewId;
            defaultPrevViewId = EPbk2NamesListViewId;
            transitions =
                {
                PBK2_VIEW_TRANSITION
                    {
                    version = 0;
                    event = EPbk2ViewTransitionBack;
                    targetViewId = EPbk2NamesListViewId;
                    }
                };
            tabGroupId = EPbk2SettingsTabGroup;
            tabGroupOrdering = EPbk2SettingsViewTabOrdering;
            tabs = r_pbk2_settings_view_tabs;
            }
        };
    }

// End of File
