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