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 __ICLANIMATIONDATAPROVIDER_H__
17 #define __ICLANIMATIONDATAPROVIDER_H__
19 #include <animationdataprovider.h>
22 #include <animationframe.h>
23 #include <animationmixins.h>
25 _LIT8(KBitmapAnimationDataType, "bitmap");
27 class CICLAnimationDataLoader;
30 Data provider for frame based animations.
32 This data provider expects to be provided with a file which can be interpreted
33 as an animation using the Image Conversion Library (ICL). An example would be
34 an animated GIF. The default data type for this provider is "bitmap".
40 class CICLAnimationDataProvider : public CAnimationDataProvider, public MICLAnimationDataLoaderObserver
43 IMPORT_C CICLAnimationDataProvider();
44 IMPORT_C ~CICLAnimationDataProvider();
45 IMPORT_C void SetFileL(RFs & aFs, const TFileName& aFileName);
46 IMPORT_C TPtrC8 DataType();
47 virtual void StartL();
49 IMPORT_C virtual void CICLAnimationDataProvider_Reserved1();
50 IMPORT_C virtual void CICLAnimationDataProvider_Reserved2();
51 // From CAnimationDataProvider
52 IMPORT_C virtual void CAnimationDataProvider_Reserved1();
53 IMPORT_C virtual void CAnimationDataProvider_Reserved2();
55 TInt iCICLAnimationDataProvider_Reserved;
57 CAnimationFrame::THandles CurrentFrame() const;
61 // From MICLAnimationDataLoaderObserver
62 virtual void DataLoaderEventL(TDataLoaderEvent aEvent, TInt aError);
64 CICLAnimationDataLoader* iDataLoader;
65 CAnimationFrame* iCurrentFrame;
69 #endif //__ICLANIMATIONDATAPROVIDER_H__