classicui_pub/grids_api/tsrc/inc/testsdkgridscontainer.h
author Pat Downey <patd@symbian.org>
Tue, 18 May 2010 16:16:10 +0100
branchRCL_3
changeset 24 123e51441e0e
parent 0 2f259fa3e83a
permissions -rw-r--r--
Re-merge workaround for bug 2584.

/*
* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Test grids_api
*
*/

#ifndef C_TESTSDKGRIDSCONTAINER_H
#define C_TESTSDKGRIDSCONTAINER_H

#include <coecntrl.h>

/**
* container class
*/
class CTestSDKGridsContainer: public CCoeControl
    {
public: 
// constructor and destructor
    
    /**
     * C++ default constructor
     */
    CTestSDKGridsContainer();
    
    /**
     * Destructor
     */
    virtual ~CTestSDKGridsContainer();
    
    /**
     * Symbian 2nd constructor
     */
    void ConstructL( const TRect& aRect );
    
    
    /**
    * Set component control, and container will own the control
    * @param aControl pointer to a control.
    */
    void SetControlL( CCoeControl* aControl ); 
    
    /**
     * Delete control
     */
    void ResetControl();


    /**
     * Return count of component controls
     */
    TInt CountComponentControls() const;
    
    /**
     * Return pointer to component control specified by index
     * @param aIndex, a index to specify a component control
     */
    CCoeControl* ComponentControl( TInt aIndex ) const;

private: 
    
    /**
    * From CCoeControl, Draw.
    * Fills the window's rectangle.
    * @param aRect Region of the control to be (re)drawn.
    */
    void Draw( const TRect& aRect ) const;  
    
private: 
    
    /**
     * Pointer to component control.
     * own
     */
    CCoeControl* iControl;  
    };    

#endif /*TESTSDKGRIDSCONTAINER_H_*/

/*
 * End file
 */