windowing/windowserver/test/tframerate/wsframerate.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 19:41:15 +0300
changeset 110 7f25ef56562d
permissions -rw-r--r--
Revision: 201025 Kit: 2010125

// 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__