diff -r 2fe1408b6811 -r e1b950c65cb4 epoc32/include/mw/animationticker.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/mw/animationticker.h Wed Mar 31 12:27:01 2010 +0100 @@ -0,0 +1,64 @@ +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __ANIMATIONTICKER_H__ +#define __ANIMATIONTICKER_H__ + +#include + +class MAnimationTickee; + +/** This provides timing information for animators. + +You do not need to instantiate an object of this type unless you are writing a +new animation type. + +@see MAnimationTickee +@see CAnimationTls +@publishedAll +@released*/ +NONSHARABLE_CLASS(CAnimationTicker) : public CBase + { +public: + IMPORT_C static CAnimationTicker* NewL(TTimeIntervalMicroSeconds32 aTickLength = 100000); + IMPORT_C ~CAnimationTicker(); + + IMPORT_C TInt Add(MAnimationTickee* aTickee); + IMPORT_C TInt Remove(MAnimationTickee* aTickee); + IMPORT_C void Freeze(); + IMPORT_C void Unfreeze(); + + /** This provides the resolution of the timer. + @return iTickLength The resolution of the timer */ + inline const TTimeIntervalMicroSeconds32& TickLength() const { return iTickLength; } + void OnTick(); +protected: + IMPORT_C virtual void CAnimationTicker_Reserved1(); + IMPORT_C virtual void CAnimationTicker_Reserved2(); +private: + TInt iCAnimationTicker_Reserved; +private: + CAnimationTicker(); + void ConstructL(TTimeIntervalMicroSeconds32 aTickLength); + void StartTickingL(); + void StopTicking(); +private: + TInt iFreeze; + TTimeIntervalMicroSeconds32 iTickLength; + CPeriodic* iPeriodic; + RPointerArray iTickees; + }; + +#endif //__ANIMATIONTICKER_H__