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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __ANIMATIONTLS_H__
17 #define __ANIMATIONTLS_H__
21 class CAnimationTicker;
23 /** This is a wrapper around the thread local storage, which simplifies its
24 use for obtaining a CAnimationTicker object that can be shared between
25 animations. The object is reference counted, and only one will exist per
26 thread per DLL at any given time.
28 You do not need to instantiate an object of this type unless you are writing a
29 new animation type. If you are writing a new animation type it is optional.
34 NONSHARABLE_CLASS(CAnimationTls) : public CBase
37 IMPORT_C static CAnimationTls* NewL();
38 IMPORT_C void Close();
39 IMPORT_C CAnimationTicker* Ticker();
43 IMPORT_C virtual void CAnimationTls_Reserved1();
44 IMPORT_C virtual void CAnimationTls_Reserved2();
46 /** A Reference count of the object */
48 /** This provides timing information for animators */
49 CAnimationTicker* iTimer;
51 TInt iCAnimationTls_Reserved;
54 #endif // __ANIMATIONTLS_H__