uifw/AvKon/aknconf/inc/aknconfappui.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Declares UI class for application.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __AKNCONFAPPUI_H__
       
    20 #define __AKNCONFAPPUI_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include <aknViewAppUi.h>
       
    24 #include <AknTabObserver.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CAknConfView;
       
    28 class CAknNavigationDecorator;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32  * CAknConfAppUi application UI class.
       
    33  * Interacts with the user through the UI and request message processing
       
    34  * from the handler class
       
    35  */
       
    36 class CAknConfAppUi : public CAknViewAppUi, public MAknTabObserver
       
    37     {
       
    38 public:
       
    39     // Constructors and destructor
       
    40 
       
    41     /**
       
    42      * ConstructL.
       
    43      * 2nd phase constructor.
       
    44      */
       
    45     void ConstructL();
       
    46 
       
    47     /**
       
    48      * CAknConfAppUi.
       
    49      * C++ default constructor. This needs to be public due to
       
    50      * the way the framework constructs the AppUi
       
    51      */
       
    52     CAknConfAppUi();
       
    53 
       
    54     /**
       
    55      * ~CAknConfAppUi.
       
    56      * Virtual Destructor.
       
    57      */
       
    58     virtual ~CAknConfAppUi();
       
    59 
       
    60     /**
       
    61      * Sets tab index.
       
    62      */
       
    63     void SetTabIndex( TInt aViewId );
       
    64 
       
    65 // from base class MAknTabObserver
       
    66     /**
       
    67      * Method for handling tab change events in observed classes. 
       
    68      * 
       
    69      * @param aIndex Index of the active tab.
       
    70      *
       
    71      */
       
    72     void TabChangedL( TInt aIndex );
       
    73 
       
    74 
       
    75 private:
       
    76 
       
    77     /**
       
    78      * Activates view. 
       
    79      * 
       
    80      * @param aViewId View id.
       
    81      */
       
    82     void ActivateViewL( TUid aViewId );
       
    83 
       
    84     /**
       
    85      * Returns pointer to active view.
       
    86      * 
       
    87      * @return Pointer to active view.
       
    88      */
       
    89     CAknConfView* CurrentView();
       
    90 
       
    91     // Functions from base classes
       
    92 
       
    93     /**
       
    94      * From CEikAppUi, HandleCommandL.
       
    95      * Takes care of command handling.
       
    96      * @param aCommand Command to be handled.
       
    97      */
       
    98     void HandleCommandL(TInt aCommand);
       
    99 
       
   100     /**
       
   101      *  HandleStatusPaneSizeChange.
       
   102      *  Called by the framework when the application status pane
       
   103      *  size is changed.
       
   104      */
       
   105     void HandleStatusPaneSizeChange();
       
   106 
       
   107 private:
       
   108     // Data
       
   109     /**
       
   110      * Current view id.
       
   111      */
       
   112     TInt iCurrentViewId;
       
   113 
       
   114     /**
       
   115      * Navi decorator.
       
   116      * Own.
       
   117      */
       
   118     CAknNavigationDecorator* iDecorator;
       
   119 
       
   120     };
       
   121 
       
   122 #endif // __AKNCONFAPPUI_H__
       
   123 // End of File