/*
* ============================================================================
* Name : CListBoxAppAppUi from ListBoxAppAppUi.cpp
* Part of : ListBoxApp
* Created : 2006-2-23 by
* Implementation notes:
* Initial content was generated by Series 60 AppWizard.
* Version :
* Copyright:
* ============================================================================
*/
// INCLUDE FILES
#include "ListBoxAppAppUi.h"
#include "ListBoxAppContainer.h"
#include <ListBoxApp.rsg>
#include "listboxapp.hrh"
#include <aknconsts.h>
#include <stringloader.h>
#include <avkon.hrh>
// ================= MEMBER FUNCTIONS =======================
//
// ----------------------------------------------------------
// CListBoxAppAppUi::ConstructL()
//
// ----------------------------------------------------------
//
void CListBoxAppAppUi::ConstructL()
{
BaseConstructL();
iAppContainer = new (ELeave) CListBoxAppContainer;
iAppContainer->SetMopParent( this );
iAppContainer->ConstructL( ClientRect() );
AddToStackL( iAppContainer );
}
// ----------------------------------------------------
// CListBoxAppAppUi::~CListBoxAppAppUi()
// Destructor
// Frees reserved resources
// ----------------------------------------------------
//
CListBoxAppAppUi::~CListBoxAppAppUi()
{
if (iAppContainer)
{
RemoveFromStack( iAppContainer );
delete iAppContainer;
}
}
// ------------------------------------------------------------------------------
// CListBoxAppAppUi::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 CListBoxAppAppUi::DynInitMenuPaneL(
TInt /*aResourceId*/,CEikMenuPane* /*aMenuPane*/)
{
}
// ----------------------------------------------------
// CListBoxAppAppUi::HandleKeyEventL(
// const TKeyEvent& aKeyEvent,TEventCode /*aType*/)
// takes care of key event handling
// ----------------------------------------------------
//
TKeyResponse CListBoxAppAppUi::HandleKeyEventL(
const TKeyEvent& aKeyEvent,TEventCode aType)
{
return iAppContainer->OfferKeyEventL(aKeyEvent,aType);
}
// ----------------------------------------------------
// CListBoxAppAppUi::HandleCommandL(TInt aCommand)
// takes care of command handling
// ----------------------------------------------------
//
void CListBoxAppAppUi::HandleCommandL(TInt aCommand)
{
switch ( aCommand )
{
case EAknSoftkeyBack:
case EEikCmdExit:
{
Exit();
break;
}
case EListBoxAppCmdAppTest:
{
break;
}
// TODO: Add Your command handling code here
default:
break;
}
}
// End of File