williamr@2: // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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 williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __ANIMATIONTLS_H__ williamr@2: #define __ANIMATIONTLS_H__ williamr@2: williamr@2: #include williamr@2: williamr@2: class CAnimationTicker; williamr@2: williamr@2: /** This is a wrapper around the thread local storage, which simplifies its williamr@2: use for obtaining a CAnimationTicker object that can be shared between williamr@2: animations. The object is reference counted, and only one will exist per williamr@2: thread per DLL at any given time. williamr@2: williamr@2: You do not need to instantiate an object of this type unless you are writing a williamr@2: new animation type. If you are writing a new animation type it is optional. williamr@2: williamr@2: @see CAnimationTicker williamr@2: @publishedAll williamr@2: @released */ williamr@2: NONSHARABLE_CLASS(CAnimationTls) : public CBase williamr@2: { williamr@2: public: williamr@2: IMPORT_C static CAnimationTls* NewL(); williamr@2: IMPORT_C void Close(); williamr@2: IMPORT_C CAnimationTicker* Ticker(); williamr@2: protected: williamr@2: CAnimationTls(); williamr@2: ~CAnimationTls(); williamr@2: IMPORT_C virtual void CAnimationTls_Reserved1(); williamr@2: IMPORT_C virtual void CAnimationTls_Reserved2(); williamr@2: protected: williamr@2: /** A Reference count of the object */ williamr@2: TInt iRefCount; williamr@2: /** This provides timing information for animators */ williamr@2: CAnimationTicker* iTimer; williamr@2: private: williamr@2: TInt iCAnimationTls_Reserved; williamr@2: }; williamr@2: williamr@2: #endif // __ANIMATIONTLS_H__