sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0: // All rights reserved.
sl@0: // This component and the accompanying materials are made available
sl@0: // under the terms of "Eclipse Public License v1.0"
sl@0: // which accompanies this distribution, and is available
sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: //
sl@0: // Initial Contributors:
sl@0: // Nokia Corporation - initial contribution.
sl@0: //
sl@0: // Contributors:
sl@0: //
sl@0: // Description:
sl@0: //
sl@0: 
sl@0: /**
sl@0:  @file
sl@0:  @test
sl@0:  @internalComponent
sl@0: */
sl@0: 
sl@0: #include <coecntrl.h>
sl@0: #include <eikenv.h>
sl@0: 
sl@0: #include "t_fpsappeng.h"
sl@0: #include "t_fpsappview.h"
sl@0: 
sl@0: /**
sl@0:  *	Private constructor, does nothing
sl@0:  *
sl@0:  */
sl@0: CFpsAppView::CFpsAppView()
sl@0: 	{
sl@0: 	}
sl@0: 
sl@0: /**
sl@0:  *	Standard 2 phase construction, constructs a View object
sl@0:  *	@return pointer to the  CPseudoAppView
sl@0:  *	@param aRect - rectangle coordinate defining control's extent
sl@0:  */
sl@0:  CFpsAppView* CFpsAppView::NewL(const TRect& aRect)
sl@0: 	{
sl@0: 	CFpsAppView* self = new(ELeave) CFpsAppView();
sl@0: 	CleanupStack::PushL(self);
sl@0: 	self->ConstructL(aRect);
sl@0: 	CleanupStack::Pop();
sl@0: 	return self;
sl@0: 	}
sl@0: 
sl@0: /**
sl@0:  *
sl@0:  *	Destructor
sl@0:  */
sl@0: CFpsAppView::~CFpsAppView()
sl@0: 	{
sl@0: 	delete iEng;
sl@0: 	}
sl@0: 
sl@0: /**
sl@0:  *	constructL method
sl@0:  *	@param aRect - rectangle coordinate defining control's extent
sl@0:  *
sl@0:  */
sl@0: void CFpsAppView::ConstructL(const TRect& aRect)
sl@0:     {
sl@0: 	CreateWindowL();
sl@0: 	SetRect(aRect);	
sl@0: 	iEng = CFpsAppEng::NewL(iEikonEnv->WsSession(), *(CCoeEnv::Static()->ScreenDevice()), Window());
sl@0: 	ActivateL();
sl@0: 	}
sl@0: 
sl@0: void CFpsAppView::Draw(const TRect& /*aRect*/) const
sl@0: 	{	
sl@0: 	iEng->StartDrawing();	
sl@0: 	}
sl@0: