sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @test sl@0: @internalComponent sl@0: */ sl@0: sl@0: sl@0: #if !defined(__STRESSTESTANIM_H__) sl@0: #define __STRESSTESTANIM_H__ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: sl@0: class CStressWindowAnim : public CWindowAnim sl@0: { sl@0: enum {ENumPolyPoints=9}; sl@0: public: sl@0: ~CStressWindowAnim(); sl@0: virtual void ConstructL(TAny *aArgs, TBool aHasFocus); sl@0: virtual void Animate(TDateTime *aDateTime); sl@0: virtual void Redraw(); sl@0: virtual void Command(TInt aOpcode, TAny *aArgs); sl@0: virtual TInt CommandReplyL(TInt aOpcode, TAny *aArgs); sl@0: void SetPolyList(const TRect &aRect); sl@0: void DrawPolyLine(); sl@0: void DrawBitmap(); sl@0: void DrawText(); sl@0: void TweakPolyList(TInt aState); sl@0: void FocusChanged(TBool aState); sl@0: void InvalidateText(); sl@0: void InvalidateBitmap(); sl@0: //Pure virtual function from MEventHandler sl@0: virtual TBool OfferRawEvent(const TRawEvent &aRawEvent); sl@0: private: sl@0: void AppendTime(TDes& aTimeText,const TTime& aTime) const; sl@0: private: sl@0: TPoint iPos; sl@0: TSize iSize; sl@0: TInt iColor; sl@0: TBool iMasked; sl@0: TRect iPolyRect; sl@0: TInt iPolyState; sl@0: TInt iWiggleSize; sl@0: TPoint iTextPos; sl@0: TBool iHasFocus; sl@0: CArrayFixFlat *iPolyList; sl@0: CFbsBitmap iBitmap1; sl@0: CFbsBitmap iBitmap2; sl@0: CFbsBitmap iMask; sl@0: CFbsFont *iFont; sl@0: sl@0: TUint32 iLastAnimShot; sl@0: TBool iDoAnimation; sl@0: TInt iKernelTicksPeriod; sl@0: }; sl@0: sl@0: class CStressAnimDll : public CAnimDll sl@0: { sl@0: public: sl@0: CAnim *CreateInstanceL(TInt aType); sl@0: private: sl@0: }; sl@0: sl@0: sl@0: #endif // __STRESSTESTANIM_H__