stifui/avkon/stifui/inc/StatisticsContainer.h
branchRCL_3
changeset 9 404ad6c9bc20
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 CStatisticsContainer class
       
    15 * declaration.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CSTATISTICSCONTAINER_H
       
    20 #define CSTATISTICSCONTAINER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "Container.h"
       
    24 
       
    25 #include <coecntrl.h>
       
    26 #include <eiklbo.h>     // MEikListBoxObserver
       
    27 #include <bamdesca.h>   // MDesCArray
       
    28 #include <aknsfld.h>
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CEikTextListBox;
       
    32 class CDesC16Array;
       
    33 
       
    34 class CStartCasesView;
       
    35 class CEikColumnListBox;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 /**
       
    39 *  StatisticsContainer container control class.
       
    40 *  
       
    41 */
       
    42 class CStatisticsContainer : public CContainer//public CCoeControl /*, MEikListBoxObserver */ /* MCoeControlObserver */
       
    43     {
       
    44     public: // Constructors and destructor
       
    45         
       
    46         /**
       
    47         * Symbian OS default constructor.
       
    48         * @param aRect Frame rectangle for container.
       
    49         */
       
    50         void ConstructL(const TRect& aRect, MEikListBoxObserver* aListBoxObserver);
       
    51 
       
    52         /**
       
    53         * Destructor.
       
    54         */
       
    55         ~CStatisticsContainer();
       
    56 
       
    57     public: // New functions
       
    58 
       
    59         /**
       
    60          * Stores current position of focus of iListBox to the CAppUiAppUi object
       
    61          */
       
    62         void SaveActiveLine();
       
    63 
       
    64     public: // Functions from base classes
       
    65 
       
    66     private: // Functions from base classes
       
    67 
       
    68         /**
       
    69         * From CoeControl,SizeChanged.
       
    70         * Called by framework when the view size is changed.
       
    71         */
       
    72         void SizeChanged();
       
    73 
       
    74         /**
       
    75         * From CoeControl,CountComponentControls.
       
    76         * Gets a count of the component controls of this list box control.
       
    77         * This information is used for DrawNow().
       
    78         */
       
    79         TInt CountComponentControls() const;
       
    80 
       
    81         /**
       
    82         * From CCoeControl,ComponentControl.
       
    83         * Gets a pointer to the specified component control.
       
    84         * @param aIndex Index of the component control to look up.
       
    85         * @return The control at aIndex.
       
    86         */
       
    87         CCoeControl* ComponentControl(TInt aIndex) const;
       
    88 
       
    89         /**
       
    90         * From CCoeControl,Draw.
       
    91         * Draw a control, called by window server.
       
    92         * @param aRect The region of the control to be redrawn. Co-ordinates
       
    93         *              are relative to the control's origin (top left corner).
       
    94         */
       
    95         void Draw(const TRect& aRect) const;
       
    96 
       
    97         /**
       
    98         * From CCoeControl,OfferKeyEventL
       
    99         * Handles key events.
       
   100         * @param aKeyEvent The key event.
       
   101         * @param aType The type of key event.
       
   102         * @return Indicates whether or not the key event was used 
       
   103         *         by this control.
       
   104         */
       
   105 		TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
       
   106 		        
       
   107     private: //data
       
   108         
       
   109         CStartCasesView*            iParentView;
       
   110         CDesC16ArrayFlat*           iTestCaseArray;
       
   111     };
       
   112 
       
   113 #endif // CSTATISTICSCONTAINER_H
       
   114 
       
   115 // End of File