#include <avkon.hrh>
#include <aknnotewrappers.h>
#include "MyApp.pan"
#include "MyAppAppUi.h"
#include "MyAppAppView.h"
#include "MyApp.hrh"
void CMyAppAppUi::ConstructL()
{ BaseConstructL(); iAppView = CMyAppAppView::NewL(ClientRect()); iAppView->SetMopParent(this); AddToStackL(iAppView);
}
CMyAppAppUi::CMyAppAppUi()
{}
CMyAppAppUi::~CMyAppAppUi()
{
if (iAppView)
{
RemoveFromStack(iAppView);
delete iAppView;
iAppView = NULL;
}
}void CMyAppAppUi::HandleCommandL(TInt aCommand)
{
switch(aCommand)
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
case EMyAppCommand1:
{
_LIT(message,"Hello!");
CAknInformationNote *informationNote = new(ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
default:
Panic(EMyAppBasicUi);
break;
}
}