diff -r 000000000000 -r 2f259fa3e83a uifw/AvKon/tsrc/bc/bctesttemplate/inc/bctesttemplateview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uifw/AvKon/tsrc/bc/bctesttemplate/inc/bctesttemplateview.h Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,108 @@ +/* +* 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 view +* +*/ + + +#ifndef C_BCTESTTEMPLATEVIEW_H +#define C_BCTESTTEMPLATEVIEW_H + +#include + +const TUid KBCTestTemplateViewId = { 1 }; + +class CBCTestTemplateContainer; +class CBCTestUtil; + +/** + * CBCTestTemplateView class + * + * @lib bctestutil.lib + */ +class CBCTestTemplateView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestTemplateView* NewL( CBCTestUtil* aUtil ); + + /** + * destructor + */ + virtual ~CBCTestTemplateView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + /** + * getter of Container + */ + CBCTestTemplateContainer* Container(); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestTemplateView(); + + /** + * symbian 2nd constructor + */ + void ConstructL( CBCTestUtil* aUtil ); + +private: // data + + /** + * pointor to the BC Test framework utility. + * not own just refer to + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestTemplateContainer* iContainer; + + }; + +#endif // C_BCTESTTEMPLATEVIEW_H + +// End of File