diff -r 000000000000 -r 2f259fa3e83a classicui_pub/searchfield_api/tsrc/inc/testsdksearchfieldcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/classicui_pub/searchfield_api/tsrc/inc/testsdksearchfieldcontainer.h Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,95 @@ +/* +* Copyright (c) 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: declaration of container +* +*/ + +#ifndef C_TESTSDKSEARCHFIELDCONTAINER_H +#define C_TESTSDKSEARCHFIELDCONTAINER_H + +#include +#include + +const TUid KUidControlFrameworkAppUid = { 0xE80000A5 }; +const TUid KUidControlFrameworkView = { 0x00000001 }; + +/** +* container class +*/ +class CTestSDKSearchFieldContainer: public CCoeControl + { +public: +// constructor and destructor + /** + * C++ default constructor + */ + CTestSDKSearchFieldContainer(); + + /** + * Destructor + */ + virtual ~CTestSDKSearchFieldContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +// new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +// from CCoeControl + + /** + * 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 + + /** + * 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: +// data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + }; + +#endif /*C_TESTSDKSEARCHFIELDCONTAINER_H*/