bluetoothengine/btui/inc/BTUIAppUi.h
branchRCL_3
changeset 56 9386f31cc85b
parent 0 f63038272f30
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
       
     1 /*
       
     2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTUIAPPUI_H
       
    20 #define BTUIAPPUI_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <aknapp.h>         // AVKON components
       
    24 #include <aknViewAppUi.h>
       
    25 #include <akntabgrp.h>
       
    26 #include <aknnavide.h>
       
    27 #include <AknTabObserver.h>
       
    28 #include "BtuiPluginInterface.h"
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  This class is a base class mandatory for all Symbian OS UI applications.
       
    34 */
       
    35 class CBTUIAppUi : public CAknViewAppUi, 
       
    36                    public MAknTabObserver,
       
    37                    public MBtuiPluginViewActivationObserver
       
    38     {
       
    39     public: // Constructors and destructor
       
    40 
       
    41         /**
       
    42         * Symbian 2nd phase constructor.
       
    43         */
       
    44         void ConstructL();
       
    45 
       
    46         /**
       
    47         * Destructor
       
    48         */
       
    49         virtual ~CBTUIAppUi();
       
    50 
       
    51        
       
    52     public: // Functions from base classes
       
    53 
       
    54         /**
       
    55         * From CAknViewAppUi Handles user commands.
       
    56         * @param aCommand A command id.        
       
    57         * @return None.
       
    58         */
       
    59         void HandleCommandL(TInt aCommand);
       
    60 
       
    61     private: // Functions from base classes
       
    62 
       
    63         /**
       
    64         * From CAknViewAppUi Initializes menu pane dynamically.
       
    65         * @param aResourceId Resource ID identifying the menu pane to initialise.
       
    66         * @param aMenuPane The in-memory representation of the menu pane.
       
    67         * @return None.
       
    68         */
       
    69         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
       
    70         
       
    71         /**
       
    72         * From CAknViewAppUi Handles key events.
       
    73         * @param aKeyEvent The key event that occurred.
       
    74         * @param aType The event type.
       
    75         * @return Response to the key event.
       
    76         */
       
    77         virtual TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent,TEventCode aType );
       
    78         
       
    79         /**
       
    80         * From MBtuiPluginViewActivationObserver
       
    81         * @param aViewId  activated plugin id
       
    82         * @return none
       
    83         */
       
    84         void PluginViewActivated(TPluginViewId aViewId);  
       
    85 
       
    86         /**
       
    87         * From MAknTabObserver Takes care of tab handling.
       
    88         * @param aIndex tab to be handled
       
    89         */
       
    90         virtual void TabChangedL(TInt aIndex); 
       
    91 
       
    92     private: // Data
       
    93 
       
    94 		CAknNavigationControlContainer* iNaviPane;          // pointer to the navi pane control
       
    95         CAknTabGroup*                   iTabGroup;          // Tab group
       
    96         CAknNavigationDecorator*        iDecoratedTabGroup; // Frame for tabgroup                               
       
    97     };
       
    98 
       
    99 #endif
       
   100