stifui/stifui/inc/StatisticsView.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 CStatisticsView class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef STATISTICSVIEW_H
       
    19 #define STATISTICSVIEW_H
       
    20 
       
    21 // INCLUDES
       
    22 #include "View.h"
       
    23 #include <eiklbo.h> // MEikListBoxObserver
       
    24 
       
    25 // CONSTANTS
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CStatisticsContainer;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  CTestCaseMenuView view class.
       
    34 * 
       
    35 */
       
    36 class CStatisticsView : public CView, public MEikListBoxObserver //CAknView
       
    37     {
       
    38     public: // Constructors and destructor
       
    39 
       
    40         /**
       
    41         * Symbian OS default constructor.
       
    42         */
       
    43         void ConstructL();
       
    44 
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48         ~CStatisticsView();
       
    49 
       
    50     public: // Functions from base classes
       
    51         
       
    52         /**
       
    53         * Returns view´s id.
       
    54         * @return View id.
       
    55         */
       
    56         TUid Id() const;
       
    57 
       
    58         /**
       
    59         * Handles a command.
       
    60         * @param aCommand A command ID.
       
    61         */
       
    62         void HandleCommandL( TInt aCommand );
       
    63 
       
    64         /**
       
    65         * Handles client rect changes.
       
    66         */
       
    67         void HandleClientRectChange();
       
    68 
       
    69         /**
       
    70         * Handles a list box event.
       
    71         * @param aListBox A pointer to list box.
       
    72         * @param aEventType Type of list box event.
       
    73         */
       
    74         void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);
       
    75 
       
    76     public: // New functions
       
    77 
       
    78         /** 
       
    79         * Starts test case.
       
    80         */
       
    81         void StartTestCasesL();
       
    82 
       
    83     private:
       
    84 
       
    85         /**
       
    86         * Initializes view when activated.
       
    87         * @param aPrevViewId Id of the previous view (not used).
       
    88         * @param aCustomMessageId Custom message id (not used).
       
    89         * @param aCustomMessage Custom message (not used).
       
    90         */
       
    91         void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
       
    92             const TDesC8& aCustomMessage);
       
    93 
       
    94         /**
       
    95         * Deactivates view.
       
    96         */
       
    97         void DoDeactivate();
       
    98 
       
    99         /** From MEikMenuObserver
       
   100         * Initializes menu pane.
       
   101         * @param aResourceId Menu pane resource ID
       
   102         * @param aMenuPane Menu pane pointer
       
   103         */
       
   104         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
       
   105 
       
   106 
       
   107     private: // Data
       
   108         CAknNavigationDecorator*    iNaviDecorator;
       
   109         CStatisticsContainer*       iContainer;
       
   110         TInt                        iCurrentTestCase;
       
   111     };
       
   112 
       
   113 #endif //STATISTICSVIEW_H
       
   114 
       
   115 // End of File