📄 myzoneappui.cpp
字号:
/*
* ============================================================================
* Name : CMyZoneAppUi from MyZoneAppui.cpp
* Part of : MyZone
* Created : 23.03.2007 by chenqing
* Implementation notes:
* Initial content was generated by Series 60 Application Wizard.
* Version :
* Copyright: chenqing
* ============================================================================
*/
// INCLUDE FILES
#include "MyZoneAppui.h"
#include "MyZoneContainer.h"
#include <MyZone.rsg>
#include "MyZone.hrh"
#include "LocalView.h"
#include "myzoneview.h"
#include <avkon.hrh>
// ================= MEMBER FUNCTIONS =======================
//
// ----------------------------------------------------------
// CMyZoneAppUi::ConstructL()
//
// ----------------------------------------------------------
//
void CMyZoneAppUi::ConstructL()
{
BaseConstructL( EAknEnableSkin );
Popedom* popedom = new(ELeave)Popedom();
popedom->iPopedom = 0;
Dll::SetTls(popedom);
iMyZoneView = new(ELeave)CMyZoneView();
iMyZoneView->ConstructL();
AddViewL(iMyZoneView);
iLocalView = new(ELeave)CLocalView();
iLocalView->ConstructL();
AddViewL(iLocalView);
SetDefaultViewL(*iLocalView);
ActivateLocalViewL(iLocalView->Id());
}
// ----------------------------------------------------
// CMyZoneAppUi::~CMyZoneAppUi()
// Destructor
// Frees reserved resources
// ----------------------------------------------------
//
CMyZoneAppUi::~CMyZoneAppUi()
{
delete (Popedom*)Dll::Tls();
Dll::SetTls(NULL);
}
// ------------------------------------------------------------------------------
// CMyZoneAppUi::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)
// This function is called by the EIKON framework just before it displays
// a menu pane. Its default implementation is empty, and by overriding it,
// the application can set the state of menu items dynamically according
// to the state of application data.
// ------------------------------------------------------------------------------
//
void CMyZoneAppUi::DynInitMenuPaneL(
TInt /*aResourceId*/,CEikMenuPane* /*aMenuPane*/)
{
}
// ----------------------------------------------------
// CMyZoneAppUi::HandleKeyEventL(
// const TKeyEvent& aKeyEvent,TEventCode /*aType*/)
// takes care of key event handling
// ----------------------------------------------------
//
TKeyResponse CMyZoneAppUi::HandleKeyEventL(
const TKeyEvent& /*aKeyEvent*/,TEventCode /*aType*/)
{
return EKeyWasNotConsumed;
}
// ----------------------------------------------------
// CMyZoneAppUi::HandleCommandL(TInt aCommand)
// takes care of command handling
// ----------------------------------------------------
//
void CMyZoneAppUi::HandleCommandL(TInt aCommand)
{
switch ( aCommand )
{
case EAknSoftkeyBack:
case EEikCmdExit:
{
Exit();
break;
}
case EMyZoneCmdAppTest:
{
iEikonEnv->InfoMsg(_L("test"));
break;
}
// TODO: Add Your command handling code here
default:
break;
}
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -