1.1 --- a/epoc32/include/iclanimationdataprovider.h Tue Mar 16 16:12:26 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,69 +0,0 @@
1.4 -// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 -// All rights reserved.
1.6 -// This component and the accompanying materials are made available
1.7 -// 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
1.8 -// which accompanies this distribution, and is available
1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 -//
1.11 -// Initial Contributors:
1.12 -// Nokia Corporation - initial contribution.
1.13 -//
1.14 -// Contributors:
1.15 -//
1.16 -// Description:
1.17 -//
1.18 -
1.19 -#ifndef __ICLANIMATIONDATAPROVIDER_H__
1.20 -#define __ICLANIMATIONDATAPROVIDER_H__
1.21 -
1.22 -#include <animationdataprovider.h>
1.23 -
1.24 -#include <e32std.h>
1.25 -#include <animationframe.h>
1.26 -#include <animationmixins.h>
1.27 -
1.28 -_LIT8(KBitmapAnimationDataType, "bitmap");
1.29 -
1.30 -class CICLAnimationDataLoader;
1.31 -
1.32 -/**
1.33 -Data provider for frame based animations.
1.34 -
1.35 -This data provider expects to be provided with a file which can be interpreted
1.36 -as an animation using the Image Conversion Library (ICL). An example would be
1.37 -an animated GIF. The default data type for this provider is "bitmap".
1.38 -
1.39 -@see CBitmapAnimator
1.40 -@publishedAll
1.41 -@released
1.42 -*/
1.43 -class CICLAnimationDataProvider : public CAnimationDataProvider, public MICLAnimationDataLoaderObserver
1.44 - {
1.45 -public:
1.46 - IMPORT_C CICLAnimationDataProvider();
1.47 - IMPORT_C ~CICLAnimationDataProvider();
1.48 - IMPORT_C void SetFileL(RFs & aFs, const TFileName& aFileName);
1.49 - IMPORT_C TPtrC8 DataType();
1.50 - virtual void StartL();
1.51 -protected:
1.52 - IMPORT_C virtual void CICLAnimationDataProvider_Reserved1();
1.53 - IMPORT_C virtual void CICLAnimationDataProvider_Reserved2();
1.54 - // From CAnimationDataProvider
1.55 - IMPORT_C virtual void CAnimationDataProvider_Reserved1();
1.56 - IMPORT_C virtual void CAnimationDataProvider_Reserved2();
1.57 -private:
1.58 - TInt iCICLAnimationDataProvider_Reserved;
1.59 -private:
1.60 - CAnimationFrame::THandles CurrentFrame() const;
1.61 - void DecodeImageL();
1.62 - void DataDeliveryL();
1.63 - void Reset();
1.64 - // From MICLAnimationDataLoaderObserver
1.65 - virtual void DataLoaderEventL(TDataLoaderEvent aEvent, TInt aError);
1.66 -private:
1.67 - CICLAnimationDataLoader* iDataLoader;
1.68 - CAnimationFrame* iCurrentFrame;
1.69 - TInt iFlags;
1.70 - };
1.71 -
1.72 -#endif //__ICLANIMATIONDATAPROVIDER_H__