📄 mobiflvappui.cpp
字号:
/*
============================================================================
Name : MobiFLVAppUi.cpp
Author :
Copyright : Copyright by Sittiphol Phanvilai
Description : CMobiFLVAppUi implementation
============================================================================
*/
// INCLUDE FILES
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include <stringloader.h>
#include <MobiFLV.rsg>
#include <f32file.h>
#include <s32file.h>
#include "MobiFLV.pan"
#include "MobiFLVAppUi.h"
#include "MobiFLVAppView.h"
#include "MobiFLV.hrh"
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CMobiFLVAppUi::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CMobiFLVAppUi::ConstructL()
{
// Initialise app UI with standard value.
BaseConstructL(EAknEnableSkin);
// Create view object
if (iAppView->IsE50())
iAppView = CMobiFLVAppView::NewL( TRect(0, 0, 320, 240) );
else
iAppView = CMobiFLVAppView::NewL( ApplicationRect() );
AddToStackL(iAppView);
}
// -----------------------------------------------------------------------------
// CMobiFLVAppUi::CMobiFLVAppUi()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CMobiFLVAppUi::CMobiFLVAppUi()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CMobiFLVAppUi::~CMobiFLVAppUi()
// Destructor.
// -----------------------------------------------------------------------------
//
CMobiFLVAppUi::~CMobiFLVAppUi()
{
if ( iAppView )
{
RemoveFromStack(iAppView);
delete iAppView;
iAppView = NULL;
}
}
// -----------------------------------------------------------------------------
// CMobiFLVAppUi::HandleCommandL()
// Takes care of command handling.
// -----------------------------------------------------------------------------
//
void CMobiFLVAppUi::HandleCommandL( TInt aCommand )
{
switch( aCommand )
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
case ECommand1:
{
}
break;
case ECommand2:
{
}
break;
default:
Panic( EMobiFLVUi );
break;
}
}
// -----------------------------------------------------------------------------
// Called by the framework when the application status pane
// size is changed. Passes the new client rectangle to the
// AppView
// -----------------------------------------------------------------------------
//
void CMobiFLVAppUi::HandleStatusPaneSizeChange()
{
iAppView->SetRect( ApplicationRect() );
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -