gifanimationengine.h
来自「《基于Symbian OS的手机开发与应用实践》这本书的配套源码。」· C头文件 代码 · 共 81 行
H
81 行
/*
* ============================================================================
* 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 + =
减小字号Ctrl + -
显示快捷键?