dependencies/physics_api/tsrc/inc/testplatphysicscontrol.h
author kashif.sayed
Sat, 27 Mar 2010 19:06:26 +0530
branchv5backport
changeset 39 4e8bbb15b77a
parent 21 11157e26c4a7
permissions -rw-r--r--
added files required to compile homescreen user: kashif.sayed

/*
* 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 aknphysics.h
*
*/
#ifndef C_TESTSDKBUTTONSCONTAINER_H
#define C_TESTSDKBUTTONSCONTAINER_H

// INCLUDES
#include <coecntrl.h>
#include <eikcmobs.h>

/*
* A container class has window for test
*/
class CPhysicsControl : public CCoeControl
    {
public:
    /*
     * static NewL function to build this object
     * */
    static CPhysicsControl* NewL( TRect& aRect );
    
    /*
     * deconstructor
     * */
    ~CPhysicsControl();
    
    /*
     * set component control
     * */
    void SetComponentControlL( CCoeControl* aControl );
    
    /*
     * unset component control
     * */
    void ResetComponentControl();
    
private:
    /*
     * constructor
     * */
    CPhysicsControl();
    
    /*
     * 2rd phase constructor
     * */
    void ConstructL( TRect& aRect );
    
    /*
     * for components
     * */
    TInt CountComponentControls() const;
    
    /*
     * for components
     * */
    CCoeControl *ComponentControl( TInt aIndex ) const;
    
    /*
     * from MEikCommandObserver
     * */
    void ProcessCommandL( TInt aCommandId );
    
private:
    // Data
    /*
     * Not own, for component control
     * */
    CCoeControl* iControl;
    };

#endif /*C_TESTSDKBUTTONSCONTAINER_H*/