diff -r 000000000000 -r dd21522fd290 browserutilities/feedsengine/FeedsUI/TestHarness/inc/TestHarnessContainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/browserutilities/feedsengine/FeedsUI/TestHarness/inc/TestHarnessContainer.h Mon Mar 30 12:54:55 2009 +0300 @@ -0,0 +1,127 @@ +/* +* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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: A container to change settings. +* +*/ + + +#ifndef SETTINGS_CONTAINER_H +#define SETTINGS_CONTAINER_H + + +// INCLUDES +#include +#include + +// CONSTANTS + +// MACROS + +// DATA TYPES + +// FUNCTION PROTOTYPES + +// FORWARD DECLARATIONS +class CTestHarnessView; + +// CLASS DECLARATION + + +/** +* A container to change settings. +* +* \b Library: FeedsEngine.lib +* +* @since 3.0 +*/ +class CTestHarnessContainer: public CCoeControl + { + public: + /** + * Two-phased constructor. + */ + static CTestHarnessContainer* NewL(CTestHarnessView& aView, const TRect& aRect); + + /** + * Destructor. + */ + ~CTestHarnessContainer(); + + + public: // From CoeControl + /** + * Handles key event. + * + * @param aKeyEvent The key event. + * @param aType The type of the event. + * @return Indicates whether the key event was used by this control or not + */ + TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); + + + protected: // From CoeControl + /** + * Called by framework when the view size is changed. + * + * @since ? + * @return void. + */ + void SizeChanged(); + + /** + * Returns number of components. + * + * @since ? + * @return Number of component controls. + */ + TInt CountComponentControls() const; + + /** + * Returns pointer to particular component. + * + * @since ? + * @param aIndex Index whose control's pointer has to returned. + * @return Pointer to component control + */ + CCoeControl* ComponentControl(TInt aIndex) const; + + /** + * Draws the container. + * + * @since ? + * @param aRect The rect to draw into. + * @return Void. + */ + void Draw(const TRect& aRect) const; + + + private: + /** + * C++ default constructor. + */ + CTestHarnessContainer(CTestHarnessView& aView); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(const TRect& aRect); + + + private: + CTestHarnessView& iView; + }; + +#endif // SETTINGS_CONTAINER_H + +// End of File