📄 sms3rdappui.cpp
字号:
/*
============================================================================
Name : SMS3rdAppUi.cpp
Author :
Version :
Copyright : Your copyright notice
Description : Main application UI class (controller)
============================================================================
*/
// INCLUDE FILES
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include <stringloader.h>
#include <SMS3rd.rsg>
#include <f32file.h>
#include <s32file.h>
#include "SMS3rd.pan"
#include "SMS3rdAppUi.h"
#include "SMS3rdAppView.h"
#include "SMS3rd.hrh"
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CSMS3rdAppUi::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CSMS3rdAppUi::ConstructL()
{
// Initialise app UI with standard value.
BaseConstructL();
// Create view object
iAppView = CSMS3rdAppView::NewL( ClientRect() );
}
// -----------------------------------------------------------------------------
// CSMS3rdAppUi::CSMS3rdAppUi()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CSMS3rdAppUi::CSMS3rdAppUi()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CSMS3rdAppUi::~CSMS3rdAppUi()
// Destructor.
// -----------------------------------------------------------------------------
//
CSMS3rdAppUi::~CSMS3rdAppUi()
{
if ( iAppView )
{
delete iAppView;
iAppView = NULL;
}
}
// -----------------------------------------------------------------------------
// CSMS3rdAppUi::HandleCommandL()
// Takes care of command handling.
// -----------------------------------------------------------------------------
//
void CSMS3rdAppUi::HandleCommandL( TInt aCommand )
{
switch( aCommand )
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
case ESMS3rdCommand1:
{
//iAppView->SendMessage();
iAppView->SendMsg();
}
break;
default:
Panic( ESMS3rdUi );
break;
}
}
// -----------------------------------------------------------------------------
// Called by the framework when the application status pane
// size is changed. Passes the new client rectangle to the
// AppView
// -----------------------------------------------------------------------------
//
void CSMS3rdAppUi::HandleStatusPaneSizeChange()
{
iAppView->SetRect( ClientRect() );
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -