classicui_plat/labels_api/tsrc/inc/testsdklabelscontainer.h
changeset 45 667edd0b8678
equal deleted inserted replaced
37:89c890c70182 45:667edd0b8678
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  Test labels_api
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_TESTSDKGRIDSCONTAINER_H
       
    19 #define C_TESTSDKGRIDSCONTAINER_H
       
    20 
       
    21 #include <coecntrl.h>
       
    22 
       
    23 /**
       
    24 * container class
       
    25 */
       
    26 class CTestSDKLabelsContainer: public CCoeControl
       
    27     {
       
    28 public: 
       
    29 // constructor and destructor
       
    30     
       
    31     /**
       
    32      * C++ default constructor
       
    33      */
       
    34     CTestSDKLabelsContainer();
       
    35     
       
    36     /**
       
    37      * Destructor
       
    38      */
       
    39     virtual ~CTestSDKLabelsContainer();
       
    40     
       
    41     /**
       
    42      * Symbian 2nd constructor
       
    43      */
       
    44     void ConstructL( const TRect& aRect );
       
    45     
       
    46 // new functions
       
    47     
       
    48     /**
       
    49     * Set component control, and container will own the control
       
    50     * @param aControl pointer to a control.
       
    51     */
       
    52     void SetControlL( CCoeControl* aControl ); 
       
    53     
       
    54     /**
       
    55      * Delete control
       
    56      */
       
    57     void ResetControl();
       
    58 
       
    59 // from CCoeControl
       
    60 
       
    61     /**
       
    62      * Return count of component controls
       
    63      */
       
    64     TInt CountComponentControls() const;
       
    65     
       
    66     /**
       
    67      * Return pointer to component control specified by index
       
    68      * @param aIndex, a index to specify a component control
       
    69      */
       
    70     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    71 
       
    72     void ActivateGc() const;
       
    73     
       
    74     void DeactivateGc() const;
       
    75 private: 
       
    76 // from CCoeControl    
       
    77     
       
    78     /**
       
    79     * From CCoeControl, Draw.
       
    80     * Fills the window's rectangle.
       
    81     * @param aRect Region of the control to be (re)drawn.
       
    82     */
       
    83     void Draw( const TRect& aRect ) const;  
       
    84     
       
    85 private: 
       
    86 // data
       
    87     
       
    88     /**
       
    89      * Pointer to component control.
       
    90      * own
       
    91      */
       
    92     CCoeControl* iControl;  
       
    93     
       
    94     };    
       
    95 
       
    96 #endif /*C_TESTSDKGRIDSCONTAINER_H*/
       
    97 
       
    98 
       
    99 /*
       
   100  * End file
       
   101  */