windowing/windowserver/tframerate/wsframerate.h
author jakl.martin@cell-telecom.com
Mon, 06 Dec 2010 18:07:30 +0100
branchNewGraphicsArchitecture
changeset 218 99b3451c560e
parent 0 5d03bc08d59c
permissions -rw-r--r--
Fix for Bug 3890

// Copyright (c) 2007-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:
// Test GraphicTestFrameRate plugins
// 
//

/**
 @file
 @test - Test plug-in to test wsgraphic animation artwork framerate
 @internalComponent - Internal Symbian test code
*/

#ifndef __GRAPHICTESTFRAMERATE_H__
#define __GRAPHICTESTFRAMERATE_H__

#include "W32STD.H"

/**
Holds draw count values of two different animations
*/
NONSHARABLE_STRUCT(TAnimRate)
	{
	TInt iAnim1;
	TInt iAnim2;
	};
	
/** Client representation of a test anim that displays its frame-rate

@publishedPartner
@released
*/	
NONSHARABLE_CLASS(CGraphicTestFrameRate): public CWsGraphic

	{
public:
	IMPORT_C static CGraphicTestFrameRate* NewL(TUid aUid);
	IMPORT_C static CGraphicTestFrameRate* NewL(TInt aScreen);
	IMPORT_C ~CGraphicTestFrameRate();
	IMPORT_C TInt QueryPlugin(TAnimRate& aCount);
	IMPORT_C void SetCallBack(TCallBack aCallBack);
private:
	CGraphicTestFrameRate();
	void HandleMessage(const TDesC8& aData);
	void OnReplace();
private:
	TAnimRate* iCount;
	TCallBack iCallBack;
	};

#endif //__GRAPHICTESTFRAMERATE_H__