www.pudn.com > Russian_Diamond(step2).zip > s60testappui.cpp
#include#include #include #include "S60Test.pan" #include "S60TestDocument.h" #include "S60TestAppUi.h" #include "S60TestAppView.h" #include "S60Test.hrh" void CS60TestAppUi::ConstructL() { BaseConstructL(); iAppView=CS60TestAppView::NewL(ClientRect(), iDoc); AddToStackL(iAppView); } CS60TestAppUi::CS60TestAppUi(CS60TestDocument *aDoc) { iDoc=aDoc; } CS60TestAppUi::~CS60TestAppUi() { if (iAppView) { RemoveFromStack(iAppView); delete iAppView; iAppView = NULL; } } // handle any menu commands void CS60TestAppUi::HandleCommandL(TInt aCommand) { switch(aCommand) { case EEikCmdExit: case EAknSoftkeyExit: Exit(); break; default: Panic(ES60TestBasicUi); break; } }