Mercurial > s60_experiments
view DemoCube/src/DemoCubeAppUi.cpp @ 5:f546bb5370c7 default tip
Added a readme and a TODO in the source code.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Tue, 12 Feb 2008 19:09:21 -0600 |
parents | 0a2b5a968ce7 |
children |
line wrap: on
line source
/*===================================================================== Copyright © 2007 Nokia Corporation. All rights reserved. ======================================================================*/ /* ============================================================================ Name : DemoCubeAppUi.cpp Author : Nokia Computer Vision Team in NRC Palo Alto Copyright : Your copyright notice Description : CDemoCubeAppUi implementation ============================================================================ */ // INCLUDE FILES #include <avkon.hrh> #include <aknnotewrappers.h> #include <stringloader.h> #include <DemoCube.rsg> #include <f32file.h> #include <s32file.h> #include "DemoCube.pan" #include "DemoCubeAppUi.h" #include "DemoCubeAppView.h" #include "DemoCube.hrh" _LIT( KFileName, "C:\\private\\E6A6AA91\\DemoCube.txt" ); // ============================ MEMBER FUNCTIONS =============================== // ----------------------------------------------------------------------------- // CDemoCubeAppUi::ConstructL() // Symbian 2nd phase constructor can leave. // ----------------------------------------------------------------------------- // void CDemoCubeAppUi::ConstructL() { // Initialise app UI with standard value. BaseConstructL(EAknEnableSkin); // Create view object iAppView = CDemoCubeAppView::NewL(ClientRect(), this); AddToStackL(iAppView); iAppView->StartImgLoader(); } // ----------------------------------------------------------------------------- // CDemoCubeAppUi::CDemoCubeAppUi() // C++ default constructor can NOT contain any code, that might leave. // ----------------------------------------------------------------------------- // CDemoCubeAppUi::CDemoCubeAppUi() { // No implementation required } // ----------------------------------------------------------------------------- // CDemoCubeAppUi::~CDemoCubeAppUi() // Destructor. // ----------------------------------------------------------------------------- // CDemoCubeAppUi::~CDemoCubeAppUi() { if ( iAppView ) { RemoveFromStack(iAppView); delete iAppView; iAppView = NULL; } } //////from original TKeyResponse CDemoCubeAppUi::HandleKeyEventL(const TKeyEvent& /*aKeyEvent*/, TEventCode /*aType*/) { return EKeyWasNotConsumed; } // ----------------------------------------------------------------------------- // CDemoCubeAppUi::HandleCommandL() // Takes care of command handling. // ----------------------------------------------------------------------------- // void CDemoCubeAppUi::HandleCommandL( TInt aCommand ) { switch( aCommand ) { case EDemoCubeReset: iAppView->Reset(); break; case EEikCmdExit: case EAknSoftkeyExit: Exit(); break; default: Panic( EDemoCubeUi ); break; } } // End of File