stifui/stifui/inc/TestSetBaseMenuView.h
branchRCL_3
changeset 9 404ad6c9bc20
parent 8 87e9ebfbe96a
child 11 454d022d514b
equal deleted inserted replaced
8:87e9ebfbe96a 9:404ad6c9bc20
     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 CTestSetBaseMenuView class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TESTSETBASEMENUVIEW_H
       
    19 #define TESTSETBASEMENUVIEW_H
       
    20 
       
    21 // INCLUDES
       
    22 #include "View.h"
       
    23 #include <eiklbo.h> // MEikListBoxObserver
       
    24 #include <aknnavide.h> 
       
    25 
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CTestSetBaseMenuContainer;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  CTestSetBaseMenuView view class.
       
    36 * 
       
    37 */
       
    38 class CTestSetBaseMenuView : public CView, public MEikListBoxObserver
       
    39     {
       
    40     public: // Constructors and destructor
       
    41 
       
    42         /**
       
    43         * Symbian OS default constructor.
       
    44         */
       
    45         void ConstructL();
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         ~CTestSetBaseMenuView();
       
    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         /**
       
    72         * Handles a list box event.
       
    73         * @param aListBox A pointer to list box.
       
    74         * @param aEventType Type of list box event.
       
    75         */
       
    76         void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);
       
    77 
       
    78     private:
       
    79 
       
    80         /**
       
    81         * Initializes view when activated.
       
    82         * @param aPrevViewId Id of the previous view (not used).
       
    83         * @param aCustomMessageId Custom message id (not used).
       
    84         * @param aCustomMessage Custom message (not used).
       
    85         */
       
    86         void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
       
    87             const TDesC8& aCustomMessage);
       
    88 
       
    89         /**
       
    90         * Deactivates view.
       
    91         */
       
    92         void DoDeactivate();
       
    93 
       
    94     private: // Data
       
    95         CAknNavigationDecorator*    iNaviDecorator;
       
    96         CTestSetBaseMenuContainer*  iContainer;
       
    97     };
       
    98 
       
    99 #endif
       
   100 
       
   101 // End of File