⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bitmaprotatorengine.cpp

📁 《基于Symbian OS的手机开发与应用实践》这本书的配套源码。
💻 CPP
字号:
/*
* ============================================================================
*  Name     : CBitmapRotatorEngine from BitmapRotatorEngine.cpp
*  Part of  : BitmapRotator
*  Created  : 30.01.2006 by ToBeReplacedByAuthor
*  Implementation notes:
*     
*  Version  :
*  Copyright: ToBeReplacedByCopyright
* ============================================================================
*/

// INCLUDE FILES
#include "BitmapRotatorEngine.h"


// ================= MEMBER FUNCTIONS =======================

// Two-phased constructor.
CBitmapRotatorEngine* CBitmapRotatorEngine::NewL(MObserver& aObserver)
    {
    CBitmapRotatorEngine* self = new(ELeave) CBitmapRotatorEngine(aObserver);
    CleanupStack::PushL( self );
    self->ConstructL();
    CleanupStack::Pop();
    return self; 
    }

// destructor
CBitmapRotatorEngine::~CBitmapRotatorEngine()
    {
    delete iBitmapRotator;
    }

// constructor
CBitmapRotatorEngine::CBitmapRotatorEngine(MObserver& aObserver ) : 
    CActive(EPriorityStandard), iObserver(aObserver)
    {
    }

// EPOC default constructor can leave.
void CBitmapRotatorEngine::ConstructL()
    {
    iBitmapRotator = CBitmapRotator::NewL();
    CActiveScheduler::Add( this );
    }

void CBitmapRotatorEngine::RunL()
    {
    iObserver.OnCompleteL(iStatus.Int());
    }

void CBitmapRotatorEngine::DoCancel()
    {
    iBitmapRotator->Cancel();
    }

void CBitmapRotatorEngine::Rotate(CFbsBitmap& aBitmap, 
    CBitmapRotator::TRotationAngle aRotation)
    {
    Cancel();
    iBitmapRotator->Rotate(&iStatus, aBitmap, aRotation);
    SetActive();
    }

// End of File  

⌨️ 快捷键说明

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