classicui_plat/physics_api/tsrc/inc/testplatphysicscontrol.h
changeset 0 2f259fa3e83a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/physics_api/tsrc/inc/testplatphysicscontrol.h	Tue Feb 02 01:00:49 2010 +0200
@@ -0,0 +1,84 @@
+/*
+* 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*/