/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*     This file contains all the resources for ExtensionManager.
*
*/


//  RESOURCE IDENTIFIER
NAME    XMGR // 4 letter ID


// INCLUDES
#include <uikon.rh>
#include <eikon.rh>
#include <avkon.rh>
#include <avkon.hrh>
#include <avkon.rsg>
#include <avkon.loc>

#include "ExtensionManager.hrh"

// Phonebook 2
#include <Pbk2UIExtension.rh>
#include <Pbk2ViewId.hrh>
#include <Pbk2MenuFilteringFlags.hrh>
#include <Pbk2ViewInfo.hrh>
#include <Pbk2ViewGraph.rh>
#include <Pbk2IconInfo.rh>
#include <Pbk2IconId.rh>
#include <Pbk2UID.h>

#include "xSPCommandInfo.rh"
#include "xSPViewInfo.rh"
#include <extensionmanager.loc>
#include "ExtensionManagerUID.H"

//  RESOURCE DEFINITIONS 

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


// --------------------------------------------------------------------------
// Extension information
// --------------------------------------------------------------------------
//
RESOURCE PHONEBOOK2_EXTENSION_INFORMATION
        r_extension_manager_ui_extension_information
    {
    version = 0;

    implementationUid = KEXTENSIONMANAGERIMPLEMENTATIONUID;
    loadingPolicy = KPbk2LoadInStartup;

    menuCommandRange = PHONEBOOK2_EXTENSION_RANGE
        {
        firstId = EExtensionManagerFirstCommand;
        lastId = EExtensionManagerLastCommand;
        };
    overwrittenCommands = {};
    extensionMenus = {};
    
    viewIds =
        {
        PHONEBOOK2_EXTENSION_VIEW_ID
            {
            version = 0;
            viewId = EExtensionManagerSortViewId;
            viewResource = r_extension_manager_sort_view;
            }
        };

    viewGraphModification = r_extension_manager_ui_extension_viewgraph;
    }

RESOURCE PBK2_VIEW_GRAPH r_extension_manager_ui_extension_viewgraph
    {
    nodes =
        {
        /// Sort view
        PBK2_VIEW_NODE
            {
            version = 0;
            viewId = EExtensionManagerSortViewId;
            defaultPrevViewId = EPbk2ExitViewId;
            transitions =
                {
                PBK2_VIEW_TRANSITION
                    {
                    event = EPbk2ViewTransitionBack;
                    targetViewId = EPbk2NullViewId;
                    }
                };
            }
        };
    }

// Basic viewgraph that is used with all xSP views
RESOURCE ARRAY r_extension_manager_basic_viewgraph
    {
    items =
        {
        PBK2_VIEW_TRANSITION
            {
                version = 0;
                event = EPbk2ViewTransitionBack;
                targetViewId = EPbk2NullViewId;
            }
        };
    }


RESOURCE AVKON_VIEW r_extension_manager_basicview
    {
    menubar = r_extension_manager_menubar;
    cba = R_AVKON_SOFTKEYS_EXIT;
    }
    
RESOURCE MENU_PANE r_extension_manager_menu
    {
    items={};
    }  
    
    
RESOURCE MENU_BAR r_extension_manager_menubar
    {
    titles = 
        {
        MENU_TITLE
            {
            menu_pane = r_extension_manager_menu;
            }                                
        };
    }    

/**
 * Names List View example options submenu
 */
RESOURCE MENU_PANE r_sort_names_list_view_menu
    {
    items =
        {
        MENU_ITEM
            {
            command = EExtensionManagerCmdSort;
            txt = qtn_extension_manager_opt_sort;
            }           
        };
    }


RESOURCE CBA r_extension_manager_sort_view_softkeys
    {
    buttons =
        {
        CBA_BUTTON { id = EExtensionManagerCmdMove; txt = qtn_extension_manager_softkey_move; },
        CBA_BUTTON { id = EAknSoftkeyExit; txt = text_softkey_exit; }
        };
    }

RESOURCE AVKON_VIEW r_extension_manager_sort_view
    {
    cba = r_extension_manager_sort_view_softkeys;
    }

RESOURCE XSP_COMMAND_INFO_ARRAY r_extension_manager_command_info
    {
    items =
        {
        XSP_COMMAND_INFO
            {
            oldId = EExtensionManagerCmdSort;
            }
        };  
    }

RESOURCE XSP_VIEW_INFO_ARRAY r_extension_manager_view_info  
    {
    items =
        {
        XSP_VIEW_INFO
            {
            oldId = EExtensionManagerSortViewId;
            }
        };
    }

RESOURCE TBUF r_qtn_extension_manager_shutdown_note { buf = qtn_extension_manager_shutdown_note; }

// End of File
