classicui_pub/grids_api/tsrc/inc/testsdkgridscontainer.h
branchRCL_3
changeset 20 d48ab3b357f1
parent 0 2f259fa3e83a
equal deleted inserted replaced
19:aecbbf00d063 20:d48ab3b357f1
       
     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 grids_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 CTestSDKGridsContainer: public CCoeControl
       
    27     {
       
    28 public: 
       
    29 // constructor and destructor
       
    30     
       
    31     /**
       
    32      * C++ default constructor
       
    33      */
       
    34     CTestSDKGridsContainer();
       
    35     
       
    36     /**
       
    37      * Destructor
       
    38      */
       
    39     virtual ~CTestSDKGridsContainer();
       
    40     
       
    41     /**
       
    42      * Symbian 2nd constructor
       
    43      */
       
    44     void ConstructL( const TRect& aRect );
       
    45     
       
    46     
       
    47     /**
       
    48     * Set component control, and container will own the control
       
    49     * @param aControl pointer to a control.
       
    50     */
       
    51     void SetControlL( CCoeControl* aControl ); 
       
    52     
       
    53     /**
       
    54      * Delete control
       
    55      */
       
    56     void ResetControl();
       
    57 
       
    58 
       
    59     /**
       
    60      * Return count of component controls
       
    61      */
       
    62     TInt CountComponentControls() const;
       
    63     
       
    64     /**
       
    65      * Return pointer to component control specified by index
       
    66      * @param aIndex, a index to specify a component control
       
    67      */
       
    68     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    69 
       
    70 private: 
       
    71     
       
    72     /**
       
    73     * From CCoeControl, Draw.
       
    74     * Fills the window's rectangle.
       
    75     * @param aRect Region of the control to be (re)drawn.
       
    76     */
       
    77     void Draw( const TRect& aRect ) const;  
       
    78     
       
    79 private: 
       
    80     
       
    81     /**
       
    82      * Pointer to component control.
       
    83      * own
       
    84      */
       
    85     CCoeControl* iControl;  
       
    86     };    
       
    87 
       
    88 #endif /*TESTSDKGRIDSCONTAINER_H_*/
       
    89 
       
    90 /*
       
    91  * End file
       
    92  */