windowing/windowserver/tframerate/wsframerate.h
changeset 116 171fae344dd4
parent 103 2717213c588a
equal deleted inserted replaced
103:2717213c588a 116:171fae344dd4
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Test GraphicTestFrameRate plugins
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @test - Test plug-in to test wsgraphic animation artwork framerate
       
    21  @internalComponent - Internal Symbian test code
       
    22 */
       
    23 
       
    24 #ifndef __GRAPHICTESTFRAMERATE_H__
       
    25 #define __GRAPHICTESTFRAMERATE_H__
       
    26 
       
    27 #include "W32STD.H"
       
    28 
       
    29 /**
       
    30 Holds draw count values of two different animations
       
    31 */
       
    32 NONSHARABLE_STRUCT(TAnimRate)
       
    33 	{
       
    34 	TInt iAnim1;
       
    35 	TInt iAnim2;
       
    36 	};
       
    37 	
       
    38 /** Client representation of a test anim that displays its frame-rate
       
    39 
       
    40 @publishedPartner
       
    41 @released
       
    42 */	
       
    43 NONSHARABLE_CLASS(CGraphicTestFrameRate): public CWsGraphic
       
    44 
       
    45 	{
       
    46 public:
       
    47 	IMPORT_C static CGraphicTestFrameRate* NewL(TUid aUid);
       
    48 	IMPORT_C static CGraphicTestFrameRate* NewL(TInt aScreen);
       
    49 	IMPORT_C ~CGraphicTestFrameRate();
       
    50 	IMPORT_C TInt QueryPlugin(TAnimRate& aCount);
       
    51 	IMPORT_C void SetCallBack(TCallBack aCallBack);
       
    52 private:
       
    53 	CGraphicTestFrameRate();
       
    54 	void HandleMessage(const TDesC8& aData);
       
    55 	void OnReplace();
       
    56 private:
       
    57 	TAnimRate* iCount;
       
    58 	TCallBack iCallBack;
       
    59 	};
       
    60 
       
    61 #endif //__GRAPHICTESTFRAMERATE_H__