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 __ICLANIMATIONDATAPROVIDER_H__
17 #define __ICLANIMATIONDATAPROVIDER_H__
19 #include <animationdataprovider.h>
22 #include <animationframe.h>
23 #include <animationmixins.h>
25 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
26 // For phase2 CICLAnimationDataProvider needs refactoring to convert it's derivation from
27 // MICLAnimationDataLoaderObserver to having a CAnimationDataLoaderObserver* member
28 #include <animationdataloaderobserver.h>
29 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
32 _LIT8(KBitmapAnimationDataType, "bitmap");
34 class CICLAnimationDataLoader;
37 Data provider for frame based animations.
39 This data provider expects to be provided with a file which can be interpreted
40 as an animation using the Image Conversion Library (ICL). An example would be
41 an animated GIF. The default data type for this provider is "bitmap".
47 class CICLAnimationDataProvider : public CAnimationDataProvider, public MICLAnimationDataLoaderObserver
50 IMPORT_C CICLAnimationDataProvider();
51 IMPORT_C ~CICLAnimationDataProvider();
52 IMPORT_C void SetFileL(RFs & aFs, const TFileName& aFileName);
53 IMPORT_C TPtrC8 DataType();
54 virtual void StartL();
56 IMPORT_C virtual void CICLAnimationDataProvider_Reserved1();
57 IMPORT_C virtual void CICLAnimationDataProvider_Reserved2();
58 // From CAnimationDataProvider
59 IMPORT_C virtual void CAnimationDataProvider_Reserved1();
60 IMPORT_C virtual void CAnimationDataProvider_Reserved2();
62 TInt iCICLAnimationDataProvider_Reserved;
64 CAnimationFrame::THandles CurrentFrame() const;
68 // From MICLAnimationDataLoaderObserver
69 virtual void DataLoaderEventL(TDataLoaderEvent aEvent, TInt aError);
71 CICLAnimationDataLoader* iDataLoader;
72 CAnimationFrame* iCurrentFrame;
76 #endif //__ICLANIMATIONDATAPROVIDER_H__