bitmaprotatorengine.h

来自「《基于Symbian OS的手机开发与应用实践》这本书的配套源码。」· C头文件 代码 · 共 75 行

H
75
字号
/*
* ============================================================================
*  Name     : CBitmapRotatorEngine from BitmapRotatorEngine.h
*  Part of  : BitmapRotator
*  Created  : 30.01.2006 by ToBeReplacedByAuthor
*  Description:
*     Declares engine for application.
*  Version  :
*  Copyright: ToBeReplacedByCopyright
* ============================================================================
*/

#ifndef BITMAPROTATORENGINE_H
#define BITMAPROTATORENGINE_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <bitmaptransforms.h>

// CONSTANTS

// FORWARD DECLARATIONS
class CFbsBitmap;

// CLASS DECLARATION

/**
*  CBitmapRotatorEngine application class.
*/
class CBitmapRotatorEngine : public CActive
    {
    public: // observer interface
        class MObserver
            {
            public:
                virtual void OnCompleteL(TInt aError) = 0;
            };

    public: // Constructors and destructor
        /**
        * Two-phased constructor.
        */
        static CBitmapRotatorEngine* NewL(MObserver& aObserver);

        /**
        * Destructor.
        */
        ~CBitmapRotatorEngine();

    public: // New functions
        void Rotate(CFbsBitmap& aBitmap, 
            CBitmapRotator::TRotationAngle aRotation);

    protected: // Functions from CActive
        void RunL();
        void DoCancel();

    private: // New functions
        /**
        * EPOC default constructor.
        */
        CBitmapRotatorEngine(MObserver& aObserver);
        void ConstructL();

    private: // member variables
        MObserver& iObserver;
        CBitmapRotator* iBitmapRotator;
    };

#endif

// End of File

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?