basiclocationinfodisplay/blid/ui/inc/CBlidBaseContainer.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2005 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:  Blid application location request view's container 
       
    15 *                class definition.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CBLIDBASECONTAINER_H
       
    20 #define CBLIDBASECONTAINER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <coecntrl.h>
       
    24  
       
    25 // FORWARD DECLARATIONS
       
    26 class MKeyProcessor;
       
    27 class CAknNavigationDecorator;
       
    28 class CAknIconArray;
       
    29 class CEikStatusPane;
       
    30 class CEikListBox;
       
    31 class CAknNavigationControlContainer;
       
    32 class TAknsItemID;
       
    33 class CAknTabGroup;
       
    34 
       
    35 // CLASS DECLARATION
       
    36 /**
       
    37 *  CBlidBaseContainer  container control class.
       
    38 *  
       
    39 */
       
    40 class CBlidBaseContainer : public CCoeControl
       
    41     {
       
    42     public: // Constructors and destructor   
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         ~CBlidBaseContainer();
       
    47 
       
    48     protected: // construction
       
    49         CBlidBaseContainer( MKeyProcessor& aKeyProcessor, 
       
    50                             const TDesC& aHelpContext );
       
    51 
       
    52     public: // new functions
       
    53         /**
       
    54          * Activate navigation decorator.
       
    55          * Method can called if tab needs to be refreshed.
       
    56          * @param aNaviDecorator    navigation decorator
       
    57          * @param aTabId            activated tabulator id             
       
    58          */
       
    59         void ActivateTabL( CAknNavigationDecorator& aNaviDecorator, 
       
    60                             TInt aTabId );
       
    61 
       
    62     public: // from CCoeControl
       
    63         void GetHelpContext( TCoeHelpContext& aContext ) const;
       
    64         TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
       
    65                                     TEventCode aType);
       
    66         void HandleResourceChange(TInt aType);
       
    67        
       
    68     protected: // new functions
       
    69         /**
       
    70          * Create CAknNavigationDecorator, ownership passed to caller.
       
    71          * @param aDefaultNaviPane, ETrue if default, EFalse if tabgroup
       
    72          * @return new instance of object. NULL, if something fails
       
    73          */
       
    74         CAknNavigationDecorator* CreateNaviPaneL( TBool aDefaultNaviPane );
       
    75         
       
    76         /**
       
    77          *  Append icon to icon array. CAknIconArray owns icons so it is 
       
    78          *  easier to it leave safely.
       
    79          *
       
    80          *  @param aIcons                 Icon array
       
    81          *  @param aSkinID                TAknsItemID
       
    82          *  @param aIconFileWithPath      Icon file name with path
       
    83          *  @param aIconGraphicsIndex     Picture index.
       
    84          *  @param aIconGraphicsMaskIndex Mask index.
       
    85          */
       
    86         void AddIconL( CAknIconArray* aIcons,
       
    87                        const TAknsItemID aSkinID,
       
    88                        const TDesC& aIconFileWithPath,
       
    89                        TInt aIconGraphicsIndex,
       
    90                        TInt aIconGraphicsMaskIndex );
       
    91 
       
    92         /**
       
    93          * Make title
       
    94          * @param aResourceText resource to create title
       
    95          */
       
    96         void MakeTitleL( TInt aResourceText );
       
    97         
       
    98         /**
       
    99          * Make title
       
   100          * @param aListbox, listbox instance
       
   101          * @param aResourceText, resourse id
       
   102          */
       
   103         void MakeEmptyTextListBoxL( 
       
   104                 CEikListBox* aListBox,
       
   105                 TInt aResourceText );
       
   106 
       
   107         /**
       
   108          * Appui's status pane getter
       
   109          * @return Statuspane pointer
       
   110          */
       
   111         CEikStatusPane* StatusPane();
       
   112 
       
   113         /** 
       
   114          * Add new tabs to tabgroup
       
   115          * @param aTabGroup
       
   116          */
       
   117         void AddTabsL(CAknTabGroup& aTabGroup);
       
   118         
       
   119     public:        
       
   120         static void SetGPSAvailability(const TBool aAvailability);
       
   121         static TBool IsGPSAvailable();
       
   122         
       
   123     protected: //data
       
   124         MKeyProcessor& iKeyProcessor;
       
   125         TCoeContextName iContextName;
       
   126         static TBool iGPSAvailability;
       
   127     };
       
   128 #endif // CBLIDBASECONTAINER_H
       
   129 
       
   130 
       
   131 // End of File