multimediafappui.cpp
来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C++ 代码 · 共 94 行
CPP
94 行
/**
*
* @brief Definition of CMultiMediaFAppUi
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// INCLUDE FILES
// Class include
#include "MultiMediaFAppUi.h"
// System includes
#include <MultiMediaF.rsg> // Application resources
#include <eikenv.h> // CEikonEnv
#include <aknwaitdialog.h> // CAknWaitDialog
// User includes
#include "MultiMediaFAppView.h" // CMultiMediaFAppView
#include "MultiMediaFAdapter.h" // CMultiMediaFAdapter
#include "MultiMediaF.hrh" // Command enumeration
// ================= MEMBER FUNCTIONS =======================
/**
* Symbian OS 2nd phase constructor. Constructs the application's view
* and the adapter class which contains the interactions with the Multi Media Framework
*
*/
void CMultiMediaFAppUi::ConstructL()
{
BaseConstructL();
CEikonEnv* env = CEikonEnv::Static();
iAdapter = CMultiMediaFAdapter::NewL(*this, env->DefaultDisplayMode());
iAppView = CMultiMediaFAppView::NewL(ClientRect(), *iAdapter);
}
/**
* Destructor.
*/
CMultiMediaFAppUi::~CMultiMediaFAppUi()
{
iAdapter->Cancel();
delete iAdapter;
delete iAppView;
}
/**
* From CEikAppUi, takes care of command handling for the view.
*
* @param aCommand command to be handled
*/
void CMultiMediaFAppUi::HandleCommandL(TInt aCommand)
{
switch (aCommand)
{
case EEncodeImage:
case EDecodeImage:
case ERotate90:
case ERotate180:
case ERotate270:
case ERotateH:
case ERotateV:
case EScale:
case EResetImage:
{
iAdapter->HandleCommandL(aCommand);
break;
}
case EAknSoftkeyExit:
case EEikCmdExit:
{
Exit();
break;
}
default:
break;
}
}
/**
* Controller (observer mechanism) function for informing the view to redraw.
* Called following an update by the engine
*/
void CMultiMediaFAppUi::RedrawView()
{
iAppView->RedrawAppView();
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?