📄 multimediafappui.cpp
字号:
/**
*
* @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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -