uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/inc/bctestdomm3gcontainer.h
changeset 21 558113899881
parent 14 3320e4e6e8bb
child 22 75713bee6484
child 33 b3425bf29f82
equal deleted inserted replaced
14:3320e4e6e8bb 21:558113899881
     1 /*
       
     2 * Copyright (c) 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:  Define container class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_BCTESTDOMM3GCONTAINER_H
       
    20 #define C_BCTESTDOMM3GCONTAINER_H
       
    21 
       
    22 #include <coecntrl.h>
       
    23 
       
    24 /**
       
    25  * container class
       
    26  */
       
    27 class CBCTestDomM3gContainer: public CCoeControl
       
    28     {
       
    29 public: // constructor and destructor
       
    30     
       
    31     /**
       
    32      * C++ default constructor
       
    33      */
       
    34     CBCTestDomM3gContainer();
       
    35     
       
    36     /**
       
    37      * Destructor
       
    38      */
       
    39     virtual ~CBCTestDomM3gContainer();
       
    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     /**
       
    60      * get iCoeEnv
       
    61      */
       
    62     CCoeEnv* GetCoeEnv();    
       
    63 
       
    64 // from CCoeControl
       
    65 
       
    66     /**
       
    67      * Return count of component controls
       
    68      */
       
    69     TInt CountComponentControls() const;
       
    70     
       
    71     /**
       
    72      * Return pointer to component control specified by index
       
    73      * @param aIndex, a index to specify a component control
       
    74      */
       
    75     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    76 
       
    77 private: // from CCoeControl    
       
    78     
       
    79     /**
       
    80     * From CCoeControl, Draw.
       
    81     * Fills the window's rectangle.
       
    82     * @param aRect Region of the control to be (re)drawn.
       
    83     */
       
    84     void Draw( const TRect& aRect ) const;  
       
    85     
       
    86 private: // data
       
    87     
       
    88     /**
       
    89      * Pointer to component control.
       
    90      * own
       
    91      */
       
    92     CCoeControl* iControl;  
       
    93     
       
    94     };
       
    95 
       
    96 #endif // C_BCTESTDOMM3GCONTAINER_H