1 // Copyright (c) 2004-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __ANIMATIONTICKER_H__
17 #define __ANIMATIONTICKER_H__
21 class MAnimationTickee;
23 /** This provides timing information for animators.
25 You do not need to instantiate an object of this type unless you are writing a
32 NONSHARABLE_CLASS(CAnimationTicker) : public CBase
35 IMPORT_C static CAnimationTicker* NewL(TTimeIntervalMicroSeconds32 aTickLength = 100000);
36 IMPORT_C ~CAnimationTicker();
38 IMPORT_C TInt Add(MAnimationTickee* aTickee);
39 IMPORT_C TInt Remove(MAnimationTickee* aTickee);
40 IMPORT_C void Freeze();
41 IMPORT_C void Unfreeze();
43 /** This provides the resolution of the timer.
44 @return iTickLength The resolution of the timer */
45 inline const TTimeIntervalMicroSeconds32& TickLength() const { return iTickLength; }
48 IMPORT_C virtual void CAnimationTicker_Reserved1();
49 IMPORT_C virtual void CAnimationTicker_Reserved2();
51 TInt iCAnimationTicker_Reserved;
54 void ConstructL(TTimeIntervalMicroSeconds32 aTickLength);
59 TTimeIntervalMicroSeconds32 iTickLength;
61 RPointerArray<MAnimationTickee> iTickees;
64 #endif //__ANIMATIONTICKER_H__