windowing/windowserver/test/tframerate/wsframerate.h
author hgs
Tue, 22 Jun 2010 15:21:29 +0300
changeset 103 2717213c588a
parent 0 windowing/windowserver/tframerate/wsframerate.h@5d03bc08d59c
permissions -rw-r--r--
201024

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