diff -r 000000000000 -r 4e1aa6a622a0 resourcemgmt/hwresourcesmgr/test/multiclient/HWRMLightTestB/inc/HWRMLightTestBappview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/resourcemgmt/hwresourcesmgr/test/multiclient/HWRMLightTestB/inc/HWRMLightTestBappview.h Tue Feb 02 00:53:00 2010 +0200 @@ -0,0 +1,93 @@ +/* +* Copyright (c) 2003-2009 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: +* +*/ + + + +#ifndef __HWRMLightTestB_APPVIEW_H__ +#define __HWRMLightTestB_APPVIEW_H__ + + +#include + +/** + @class CHWRMLightTestBAppView + + An instance of CHWRMLightTestBAppView is the Application View object + for the HWRMLightTestB example application + * * Nokia Core OS * + */ +class CHWRMLightTestBAppView : public CCoeControl + { +public: + +/** + NewL + + Create a CHWRMLightTestBAppView object, which will draw itself to aRect + @param aRect The rectangle this view will be drawn to + @return A pointer to the created instance of CHWRMLightTestBAppView + */ + static CHWRMLightTestBAppView* NewL(const TRect& aRect); + +/** + NewLC + + Create a CHWRMLightTestBAppView object, which will draw itself to aRect + @param aRect The rectangle this view will be drawn to + @return A pointer to the created instance of CHWRMLightTestBAppView + */ + static CHWRMLightTestBAppView* NewLC(const TRect& aRect); + + +/** + ~CHWRMLightTestBAppView + + Destroy the object + */ + ~CHWRMLightTestBAppView(); + + +public: // from CCoeControl +/** + Draw + + Draw this CHWRMLightTestBAppView to the screen + @param aRect The rectangle of this view that needs updating + */ + void Draw(const TRect& aRect) const; + + +private: + +/** + ConstructL + + Perform the second phase construction of a CHWRMLightTestBAppView object + @param aRect The rectangle this view will be drawn to + */ + void ConstructL(const TRect& aRect); + +/** + CHWRMLightTestBAppView + + Perform the first phase of two phase construction + */ + CHWRMLightTestBAppView(); + }; + + +#endif // __HWRMLightTestB_APPVIEW_H__