stifui/avkon/stifui/inc/MainMenuView.h
branchRCL_3
changeset 18 48060abbbeaf
parent 17 d40e813b23c0
child 19 b3cee849fa46
equal deleted inserted replaced
17:d40e813b23c0 18:48060abbbeaf
     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: This file contains CMainMenuView class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MAINMENUVIEW_H
       
    19 #define MAINMENUVIEW_H
       
    20 
       
    21 // INCLUDES
       
    22 #include "View.h"
       
    23 #include <aknnavide.h> 
       
    24 
       
    25 // CONSTANTS
       
    26 // UID of view
       
    27 const TUid KMainMenuViewId = {1};
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CMainMenuContainer;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  CMainMenuView view class.
       
    36 * 
       
    37 */
       
    38 class CMainMenuView : public CView //CAknView
       
    39     {
       
    40     public: // Constructors and destructor
       
    41 
       
    42         /**
       
    43         * Symbian OS default constructor.
       
    44         */
       
    45         void ConstructL();
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         ~CMainMenuView();
       
    51 
       
    52     public: // Functions from base classes
       
    53         
       
    54         /**
       
    55         * Returns view´s id.
       
    56         * @return View id.
       
    57         */
       
    58         TUid Id() const;
       
    59 
       
    60         /**
       
    61         * Handles a command.
       
    62         * @param aCommand A command ID.
       
    63         */
       
    64         void HandleCommandL( TInt aCommand );
       
    65 
       
    66         /**
       
    67         * Handles client rect changes.
       
    68         */
       
    69         void HandleClientRectChange();
       
    70 
       
    71     private:
       
    72         
       
    73         /**
       
    74         * Initializes view when activated.
       
    75         * @param aPrevViewId Id of the previous view (not used).
       
    76         * @param aCustomMessageId Custom message id (not used).
       
    77         * @param aCustomMessage Custom message (not used).
       
    78         */
       
    79         void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
       
    80             const TDesC8& aCustomMessage);
       
    81 
       
    82         /**
       
    83         * Deactivates view.
       
    84         */
       
    85         void DoDeactivate();
       
    86 
       
    87     private: // Data
       
    88         CMainMenuContainer*         iContainer;
       
    89         CAknNavigationDecorator*    iNaviDecorator;
       
    90     };
       
    91 
       
    92 #endif
       
    93 
       
    94 // End of File