?? countdownappui.cpp
字號:
/*
* ============================================================================
* Name : CCountDownAppUi from CountDownAppUi.cpp
* Part of : CountDown
* Created : 2005-8-29 by
* Implementation notes:
* Initial content was generated by Series 60 AppWizard.
* Version :
* Copyright:
* ============================================================================
*/
// INCLUDE FILES
#include "CountDownAppUi.h"
#include "CountDownContainer.h"
#include "countdown.hrh"
#include <CountDown.rsg>
#include <avkon.hrh>
// ================= MEMBER FUNCTIONS =======================
//
// ----------------------------------------------------------
// CCountDownAppUi::ConstructL()
// ?implementation_description
// ----------------------------------------------------------
//
void CCountDownAppUi::ConstructL()
{
iDB = new(ELeave) CCountDownDB();
iDB->SaveRscL();
//BaseConstructL(CAknAppUi::EAknEnableSkinFlag);
BaseConstructL();
iAppContainer = new (ELeave) CCountDownContainer;
iAppContainer->SetMopParent(this);
iAppContainer->ConstructL( ClientRect() , this);
AddToStackL(iAppContainer);
}
// ----------------------------------------------------
// CCountDownAppUi::~CCountDownAppUi()
// Destructor
// Frees reserved resources
// ----------------------------------------------------
//
CCountDownAppUi::~CCountDownAppUi()
{
if (iAppContainer)
{
RemoveFromStack( iAppContainer );
delete iAppContainer;
}
delete iDB;
}
// ------------------------------------------------------------------------------
// CCountDownAppUi::::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 CCountDownAppUi::DynInitMenuPaneL(
TInt /*aResourceId*/,CEikMenuPane* /*aMenuPane*/)
{
}
// ----------------------------------------------------
// CCountDownAppUi::HandleKeyEventL(
// const TKeyEvent& aKeyEvent,TEventCode /*aType*/)
// ?implementation_description
// ----------------------------------------------------
//
TKeyResponse CCountDownAppUi::HandleKeyEventL(
const TKeyEvent& /*aKeyEvent*/,TEventCode /*aType*/)
{
return EKeyWasNotConsumed;
}
// ----------------------------------------------------
// CCountDownAppUi::HandleCommandL(TInt aCommand)
// ?implementation_description
// ----------------------------------------------------
//
void CCountDownAppUi::HandleCommandL(TInt aCommand)
{
switch ( aCommand )
{
case EAknSoftkeyBack:
if(iCurFunctionId!=EMenuPage)
{
iAppContainer->CreateFunctionListBoxL();
break;
}
//break;
case EEikCmdExit:
Exit();
break;
case ECountDownCmdAppTest:
{
//iDB->SaveRscL();
//iAppContainer->CmdAdd();
break;
}
// TODO: Add Your command handling code here
default:
break;
}
}
// End of File
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -