📄 gifanimationengine.h
字号:
/*
* ============================================================================
* Name : CGifAnimationEngine from GifAnimationEngine.h
* Part of : GifAnimation
* Created : 31.01.2006 by ToBeReplacedByAuthor
* Description:
* Declares engine for application.
* Version :
* Copyright: ToBeReplacedByCopyright
* ============================================================================
*/
#ifndef GIFANIMATIONENGINE_H
#define GIFANIMATIONENGINE_H
// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <imageconversion.h>
// CONSTANTS
// FORWARD DECLARATIONS
class CFbsBitmap;
// CLASS DECLARATION
typedef CArrayPtrFlat<CFbsBitmap> CBitmapPointerArray;
/**
* CGifAnimationEngine application class.
*/
class CGifAnimationEngine : public CActive
{
public: // observer interface
class MObserver
{
public:
virtual void OnCompleteL(CBitmapPointerArray* aArray,
TInt aError) = 0;
};
public: // Constructors and destructor
/**
* Two-phased constructor.
*/
static CGifAnimationEngine* NewL(MObserver& aObserver);
/**
* Destructor.
*/
~CGifAnimationEngine();
public: // New functions
void LoadL(const TFileName& aFileName);
protected: // Functions from CActive
void RunL();
void DoCancel();
private: // New functions
/**
* EPOC default constructor.
*/
CGifAnimationEngine(MObserver& aObserver);
void ConstructL();
void LoadFrameL(TInt aIndex);
private: // member variables
MObserver& iObserver;
CImageDecoder* iImageDecoder;
CBitmapPointerArray* iArray;
CFbsBitmap* iBitmap;
TInt iIndex;
};
#endif
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -