Nokia N97 SDK
Example Applications Guide

DynamicSettingListAppui.cpp

00001 /*
00002 * ============================================================================
00003 *  Name     : CDynamicSettingListAppUi from DynamicSettingListAppUi.cpp
00004 *  Part of  : Dynamic Setting List
00005 *  Created  : 09/21/2005 by Forum Nokia
00006 *  Version  : 1.0
00007 *
00008 *  Copyright (c) 2005 - 2007 Nokia Corporation.
00009 *  This material, including documentation and any related
00010 *  computer programs, is protected by copyright controlled by
00011 *  Nokia Corporation.
00012 * ============================================================================
00013 */
00014 
00015 // INCLUDE FILES
00016 #include <avkon.hrh>
00017 #include "DynamicSettingListAppUi.h"
00018 #include "DynamicSettingListAppView.h"
00019 #include "DynamicSettingList.hrh"
00020 
00021 // ================= MEMBER FUNCTIONS =======================
00022 
00023 // ----------------------------------------------------------
00024 // CDynamicSettingListAppUi::ConstructL()
00025 // ConstructL is called by the application framework
00026 // ----------------------------------------------------------
00027 //
00028 void CDynamicSettingListAppUi::ConstructL()
00029     {
00030     BaseConstructL(EAknEnableSkin);
00031 
00032     iAppView = new (ELeave) CDynamicSettingListAppView;
00033     iAppView->SetMopParent(this);
00034     iAppView->ConstructL(ClientRect());
00035 
00036     AddToStackL(iAppView);
00037     }
00038 
00039 // Constructor
00040 CDynamicSettingListAppUi::CDynamicSettingListAppUi()                              
00041     {
00042         // no implementation required
00043     }
00044 
00045 // Destructor
00046 CDynamicSettingListAppUi::~CDynamicSettingListAppUi()
00047     {
00048     if (iAppView)
00049         {
00050         RemoveFromStack(iAppView);
00051         delete iAppView;
00052         iAppView = NULL;
00053         }
00054     }
00055 
00056 // ----------------------------------------------------
00057 // CDynamicSettingListAppUi::HandleCommandL()
00058 // takes care of command handling
00059 // ----------------------------------------------------
00060 //
00061 void CDynamicSettingListAppUi::HandleCommandL(TInt aCommand)
00062     {
00063     switch(aCommand)
00064         {
00065         case EEikCmdExit:
00066         case EAknSoftkeyExit:
00067             Exit();
00068             break;
00069       default:
00070             break;
00071         }
00072     }
00073 
00074 // End of file

© Nokia 2009

Back to top