os/graphics/graphicstest/uibench/src/tspriteanimdll.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/graphicstest/uibench/src/tspriteanimdll.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,80 @@
     1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +/**
    1.20 + @file
    1.21 + @test
    1.22 + @internalComponent - Internal Symbian test code 
    1.23 +*/
    1.24 +
    1.25 +#ifndef __SPRITEANIMDLL_H__
    1.26 +#define __SPRITEANIMDLL_H__
    1.27 +
    1.28 +
    1.29 +#if !defined(__W32ADLL_H__)
    1.30 +#include <w32adll.h>
    1.31 +#endif
    1.32 +
    1.33 +_LIT(KAnimDLLName,"te_spriteanimdll.dll");
    1.34 +
    1.35 +enum TAnimDllOpcodesSprite
    1.36 +	{
    1.37 +	EADllDraw1,
    1.38 +	EADllDraw2,
    1.39 +	EADllDraw3,
    1.40 +	EADllDrawBlank,
    1.41 +	};
    1.42 +
    1.43 +
    1.44 +enum TAnimType
    1.45 +	{
    1.46 +	ESpriteAnimType
    1.47 +	};
    1.48 +
    1.49 +class RTAnim : public RAnim
    1.50 +	{
    1.51 +public:
    1.52 +	RTAnim();
    1.53 +	RTAnim(RAnimDll& aDll);
    1.54 + 	inline TInt Construct(const RWsSprite &aSprite,TInt aType,const TDesC8 &aParams) {return(RAnim::Construct(aSprite,aType,aParams));}
    1.55 + 	inline void Command(TInt aOpcode) {RAnim::Command(aOpcode);}
    1.56 +	};
    1.57 +
    1.58 +class CTAnimDll : public CAnimDll
    1.59 +	{
    1.60 +public:
    1.61 +	CAnim *CreateInstanceL(TInt aType);
    1.62 +private:
    1.63 +	};
    1.64 +
    1.65 +class CTSpriteAnim : public CSpriteAnim
    1.66 +	{
    1.67 +public:
    1.68 +	//from CSpriteAnim
    1.69 +	void ConstructL(TAny *aArgs);
    1.70 +	
    1.71 +	//from CAnim	
    1.72 +	void Animate(TDateTime *aDateTime);
    1.73 +	void Command(TInt aOpcode, TAny *aArgs);
    1.74 +	TInt CommandReplyL(TInt aOpcode, TAny *aArgs);
    1.75 +
    1.76 +	//from MEventHandler
    1.77 +	TBool OfferRawEvent(const TRawEvent &aRawEvent);
    1.78 +
    1.79 +private:
    1.80 +	void DrawL(TInt aOpcode);
    1.81 +	};	
    1.82 +
    1.83 +#endif