aknexsettinglistappui.cpp
来自「symbian ui的 例子 初学者可以 好好看看,这个是培训的资料,应该比较宝」· C++ 代码 · 共 79 行
CPP
79 行
/* Copyright (c) 2005, Nokia. All rights reserved */
// INCLUDE FILES
#include <avkon.hrh>
#include "AknExSettingListAppUi.h"
#include "AknExSettingListView.h"
// ========================= MEMBER FUNCTIONS ==================================
// -----------------------------------------------------------------------------
// CAknExSettingListAppUi::CAknExSettingListAppUi()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CAknExSettingListAppUi::CAknExSettingListAppUi()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CAknExSettingListAppUi::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CAknExSettingListAppUi::ConstructL()
{
//BaseConstructL();
BaseConstructL( EAknEnableSkin );
// Creates CAknExSettingListView class object.
CAknExSettingListView* view = CAknExSettingListView::NewL();
CleanupStack::PushL( view );
// Transfer ownership to CAknViewAppUi
AddViewL( view );
// Pop view from CleanupStack
CleanupStack::Pop();
//ActivateLocalViewL( view->Id() );
SetDefaultViewL( *view );
}
// -----------------------------------------------------------------------------
// CAknExSettingListAppUi::~CAknExSettingListAppUi()
// Destructor.
// -----------------------------------------------------------------------------
//
CAknExSettingListAppUi::~CAknExSettingListAppUi()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CAknExSettingListAppUi::HandleKeyEventL()
// Takes care of key event handling.
// -----------------------------------------------------------------------------
//
void CAknExSettingListAppUi::HandleCommandL( TInt aCommand )
{
switch ( aCommand )
{
case EEikCmdExit:
{
Exit();
break;
}
default:
break;
}
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?