srsf/speechsynthesis/tsrc/testapplication/inc/testappcontainer.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2004 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: 
       
    15 *     Declares container control for application.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef TESTAPPCONTAINER_H
       
    21 #define TESTAPPCONTAINER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <coecntrl.h>
       
    25    
       
    26 // FORWARD DECLARATIONS
       
    27 class CEikLabel; 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  CTestAppContainer  container control class.
       
    33 *  
       
    34 */
       
    35 class CTestAppContainer : public CCoeControl, MCoeControlObserver
       
    36     {
       
    37     public: // Constructors and destructor
       
    38         
       
    39         /**
       
    40         * EPOC default constructor.
       
    41         * @param aRect Frame rectangle for container.
       
    42         */
       
    43         void ConstructL( const TRect& aRect );
       
    44 
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48         ~CTestAppContainer();
       
    49         
       
    50         void ChangeTextL( TInt aIndex, const TDesC& aText );
       
    51 
       
    52     private: // Functions from base classes
       
    53 
       
    54        /**
       
    55         * From CoeControl,SizeChanged.
       
    56         */
       
    57         void SizeChanged();
       
    58 
       
    59        /**
       
    60         * From CoeControl,CountComponentControls.
       
    61         */
       
    62         TInt CountComponentControls() const;
       
    63 
       
    64        /**
       
    65         * From CCoeControl,ComponentControl.
       
    66         */
       
    67         CCoeControl* ComponentControl( TInt aIndex ) const;
       
    68 
       
    69        /**
       
    70         * From CCoeControl,Draw.
       
    71         */
       
    72         void Draw(const TRect& aRect) const;
       
    73 
       
    74        /**
       
    75         * 
       
    76         */
       
    77         void HandleControlEventL( CCoeControl* aControl,TCoeEvent aEventType );
       
    78         
       
    79     private: //data
       
    80         
       
    81         CEikLabel* iLabelStatus;
       
    82         CEikLabel* iLabelVoice;
       
    83         CEikLabel* iLabelVolume;
       
    84         CEikLabel* iLabelSpekingRate;
       
    85         CEikLabel* iLabelDuration;
       
    86         CEikLabel* iLabelGeneral;
       
    87         
       
    88     };
       
    89 
       
    90 #endif
       
    91 
       
    92 // End of File