/* Machine-made version of this file copyright (c) 2005 Somusar */ /* Derived from samples that are Copyright (c) 2004, Nokia. All rights reserved */ #include #include "TwoFormsAppUi.h" #include "TwoFormsAppView.h" // ================= MEMBER FUNCTIONS ========================================= // ---------------------------------------------------------------------------- // CTwoFormsAppUi::CTwoFormsAppUi() // Default constructor. // ---------------------------------------------------------------------------- // CTwoFormsAppUi::CTwoFormsAppUi() { } // ---------------------------------------------------------------------------- // void CTwoFormsAppUi::ConstructL() // Symbian constructor. // ---------------------------------------------------------------------------- // void CTwoFormsAppUi::ConstructL() { BaseConstructL(); // Creates CTwoFormsView class object. CTwoFormsView* view = new ( ELeave ) CTwoFormsView; CleanupStack::PushL( view ); view->ConstructL(); AddViewL( view ); // transfer ownership to CAknViewAppUi. CleanupStack::Pop(); // view ActivateLocalViewL( view->Id()); } // ---------------------------------------------------------------------------- // CTwoFormsAppUi::~CTwoFormsAppUi() // Destructor. // ---------------------------------------------------------------------------- // CTwoFormsAppUi::~CTwoFormsAppUi() { } // ---------------------------------------------------------------------------- // CTwoFormsAppUi::HandleCommandL() // Handles the commands. // ---------------------------------------------------------------------------- // void CTwoFormsAppUi::HandleCommandL( TInt aCommand ) { switch ( aCommand ) { case EAknSoftkeyBack: case EEikCmdExit: Exit(); break; default: break; } } // End of File