Nokia N97 SDK
Example Applications Guide

aknexpopfieldappui.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : aknexpopfieldappui.cpp
00004 *  Part of     : Popup-field example
00005 *  Interface   :
00006 *  Description :
00007 *  Version     :
00008 *
00009 *  Copyright (c) 2004 - 2006 Nokia Corporation.
00010 *  This material, including documentation and any related
00011 *  computer programs, is protected by copyright controlled by
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 // INCLUDE FILES
00017 #include <avkon.hrh>
00018 #include "AknExPopFieldAppUi.h"
00019 #include "AknExPopFieldView.h"
00020 
00021 // ================= MEMBER FUNCTIONS =========================================
00022 
00023 // ----------------------------------------------------------------------------
00024 // CAknExPopFieldAppUi::CAknExPopFieldAppUi()
00025 // C++ default constructor can NOT contain any code, that might leave.
00026 // ----------------------------------------------------------------------------
00027 //
00028 CAknExPopFieldAppUi::CAknExPopFieldAppUi()
00029     {
00030     // No implementation required
00031     }
00032 
00033 // ----------------------------------------------------------------------------
00034 // void CAknExPopFieldAppUi::ConstructL()
00035 // Symbian 2nd phase constructor can leave.
00036 // ----------------------------------------------------------------------------
00037 //
00038 void CAknExPopFieldAppUi::ConstructL()
00039     {
00040     BaseConstructL(EAknEnableSkin);
00041 
00042     // Creates CAknExPopFieldView class object.
00043     iView = new ( ELeave ) CAknExPopFieldView;
00044     CleanupStack::PushL( iView );
00045     iView->ConstructL();
00046     AddViewL( iView ); // transfer ownership to CAknViewAppUi.
00047     CleanupStack::Pop(); // view
00048 
00049     ActivateLocalViewL( iView->Id() );
00050     }
00051 
00052 // ----------------------------------------------------------------------------
00053 // CAknExPopFieldAppUi::~CAknExPopFieldAppUi()
00054 // Destructor.
00055 // ----------------------------------------------------------------------------
00056 //
00057 CAknExPopFieldAppUi::~CAknExPopFieldAppUi()
00058     {
00059     // No implementation required
00060     }
00061 
00062 // ----------------------------------------------------------------------------
00063 // void CAknExPopFieldAppUi::HandleCommandL()
00064 // Handles the commands.
00065 // ----------------------------------------------------------------------------
00066 //
00067 void CAknExPopFieldAppUi::HandleCommandL( TInt aCommand )
00068     {
00069     switch ( aCommand )
00070         {
00071         case EEikCmdExit:
00072             Exit();
00073             break;
00074         default:
00075             break;
00076         }
00077     }
00078 
00079 // ----------------------------------------------------------------------------
00080 // void CAknExPopFieldAppUi::HandleResourceChangeL( TInt aType )
00081 // Handles resolution change.
00082 // ----------------------------------------------------------------------------
00083 //
00084 void CAknExPopFieldAppUi::HandleResourceChangeL( TInt aType )
00085     {
00086     CAknAppUi::HandleResourceChangeL( aType );
00087     if  ( aType == KEikDynamicLayoutVariantSwitch )
00088         {
00089         iView->HandleSizeChange();
00090         }
00091     }
00092 
00093 // End of File

© Nokia 2009

Back to top