uifw/AvKon/tsrc/bc/S60_SDK3.0/bctestquery/inc/bctestquerycontainer.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     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 C_BCTESTQUERYCONTAINER_H
       
    19 #define C_BCTESTQUERYCONTAINER_H
       
    20 
       
    21 #include <coecntrl.h>
       
    22 
       
    23 class CBCTestQueryBaseCase;
       
    24 
       
    25 /**
       
    26 * container class
       
    27 */
       
    28 class CBCTestQueryContainer: public CCoeControl
       
    29     {
       
    30 public: 
       
    31     
       
    32 // constructor and destructor
       
    33     
       
    34     CBCTestQueryContainer();
       
    35     
       
    36     virtual ~CBCTestQueryContainer();
       
    37     
       
    38     void ConstructL( const TRect& aRect );
       
    39     
       
    40 // new functions
       
    41     
       
    42     /**
       
    43     * Set component control, and this container will own the 
       
    44     * component control.
       
    45     */
       
    46     void SetControl( CCoeControl* aControl ); 
       
    47     
       
    48     void ResetControl();
       
    49   
       
    50 // from CCoeControl
       
    51 
       
    52     TInt CountComponentControls() const;
       
    53     
       
    54     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    55 
       
    56 private: // from CCoeControl    
       
    57     
       
    58     /**
       
    59     * From CCoeControl, Draw.
       
    60     * Fills the window's rectangle.
       
    61     * @param aRect Region of the control to be (re)drawn.
       
    62     */
       
    63     void Draw( const TRect& aRect ) const;  
       
    64     
       
    65 private: // data
       
    66     
       
    67     /**
       
    68      * Responsible for delete this
       
    69      */ 
       
    70     CCoeControl* iControl; 
       
    71        
       
    72     };    
       
    73 
       
    74 #endif // C_BCTESTQUERYCONTAINER_H