uifw/AvKon/tsrc/bc/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgcontainer.h
changeset 22 75713bee6484
parent 21 558113899881
child 26 62ef28f7b435
child 28 d33307312dfe
equal deleted inserted replaced
21:558113899881 22:75713bee6484
     1 /*
       
     2 * Copyright (c) 2006 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:  container
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef BCTEST_CMDLG_CONTAINER_H
       
    19 #define BCTEST_CMDLG_CONTAINER_H
       
    20 
       
    21 #include <coecntrl.h>
       
    22 
       
    23 /**
       
    24 * container class
       
    25 */
       
    26 class CBCTestCmDlgContainer: public CCoeControl
       
    27     {
       
    28 public: // constructor and destructor
       
    29     
       
    30     /**
       
    31      * C++ default constructor
       
    32      */
       
    33     CBCTestCmDlgContainer();
       
    34     
       
    35     /**
       
    36      * Destructor
       
    37      */
       
    38     virtual ~CBCTestCmDlgContainer();
       
    39     
       
    40     /**
       
    41      * Symbian 2nd constructor
       
    42      */
       
    43     void ConstructL( const TRect& aRect );
       
    44     
       
    45 public: // new functions
       
    46     
       
    47     /**
       
    48     * Set component control, and container will own the control
       
    49     * @param aControl pointer to a control.
       
    50     */
       
    51     void SetControl( CCoeControl* aControl ); 
       
    52     
       
    53     /**
       
    54      * Delete control
       
    55      */
       
    56     void ResetControl();
       
    57 
       
    58 public: // from CCoeControl
       
    59 
       
    60     /**
       
    61      * Return count of component controls
       
    62      */
       
    63     TInt CountComponentControls() const;
       
    64     
       
    65     /**
       
    66      * Return pointer to component control specified by index
       
    67      * @param aIndex, a index to specify a component control
       
    68      */
       
    69     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    70 
       
    71 private: // from CCoeControl    
       
    72     
       
    73     /**
       
    74     * From CCoeControl, Draw.
       
    75     * Fills the window's rectangle.
       
    76     * @param aRect Region of the control to be (re)drawn.
       
    77     */
       
    78     void Draw( const TRect& aRect ) const;  
       
    79     
       
    80 private: // data
       
    81     
       
    82     /**
       
    83      * Pointer to component control.
       
    84      * own
       
    85      */
       
    86     CCoeControl* iControl;  
       
    87     
       
    88     };    
       
    89 
       
    90 #endif // BCTEST_CMDLG_CONTAINER_H