examples/sfexamples/findme/src/FindMeAppUi.cpp

00001 // 
00002 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
00003 // All rights reserved.
00004 // This component and the accompanying materials are made available
00005 // under the terms of the License "Eclipse Public License v1.0"
00006 // which accompanies this distribution, and is available
00007 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00008 // 
00009 // Initial Contributors:
00010 // Nokia Corporation - initial contribution.
00011 // 
00012 // Contributors:
00013 // 
00014 // Description:  CFindMeAppUi implementation
00015 // 
00016 // 
00017 
00018 
00019 // INCLUDE FILES
00020 #include <avkon.hrh>
00021 #include <aknmessagequerydialog.h>
00022 
00023 #include <FindMe_0xE5F14158.rsg>
00024 
00025 #include "FindMe.hrh"
00026 #include "FindMe.pan"
00027 #include "FindMeApplication.h"
00028 #include "FindMeAppUi.h"
00029 #include "FindMeAppView.h"
00030 
00031 
00032 // ============================ MEMBER FUNCTIONS ===============================
00033 
00034 
00035 // -----------------------------------------------------------------------------
00036 // CFindMeAppUi::ConstructL()
00037 // Symbian 2nd phase constructor can leave.
00038 // -----------------------------------------------------------------------------
00039 //
00040 void CFindMeAppUi::ConstructL()
00041         {
00042         // Initialise app UI with standard value.
00043         BaseConstructL(CAknAppUi::EAknEnableSkin);
00044 
00045         // Create view object
00046         iAppView = CFindMeAppView::NewL( ClientRect() );
00047         }
00048 
00049 // -----------------------------------------------------------------------------
00050 // CFindMeAppUi::CFindMeAppUi()
00051 // C++ default constructor can NOT contain any code, that might leave.
00052 // -----------------------------------------------------------------------------
00053 //
00054 CFindMeAppUi::CFindMeAppUi()
00055         {
00056         // No implementation required
00057         }
00058 
00059 // -----------------------------------------------------------------------------
00060 // CFindMeAppUi::~CFindMeAppUi()
00061 // Destructor.
00062 // -----------------------------------------------------------------------------
00063 //
00064 CFindMeAppUi::~CFindMeAppUi()
00065         {
00066         if ( iAppView )
00067                 {
00068                 delete iAppView;
00069                 iAppView = NULL;
00070                 }
00071 
00072         }
00073 
00074 // -----------------------------------------------------------------------------
00075 // CFindMeAppUi::HandleCommandL()
00076 // Takes care of command handling.
00077 // -----------------------------------------------------------------------------
00078 //
00079 void CFindMeAppUi::HandleCommandL( TInt aCommand )
00080         {
00081         }
00082 // -----------------------------------------------------------------------------
00083 //  Called by the framework when the application status pane
00084 //  size is changed.  Passes the new client rectangle to the
00085 //  AppView
00086 // -----------------------------------------------------------------------------
00087 //
00088 void CFindMeAppUi::HandleStatusPaneSizeChange()
00089         {
00090         iAppView->SetRect( ClientRect() );
00091         } 
00092 
00093 // End of File

Generated by  doxygen 1.6.2