examples/SFExamples/games_on_symbian_os_code/findme/src/FindMeDocument.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:  CFindMeDocument implementation
00015 // 
00016 // 
00017 
00018 
00019 
00020 // INCLUDE FILES
00021 #include "FindMeAppUi.h"
00022 #include "FindMeDocument.h"
00023 
00024 // ============================ MEMBER FUNCTIONS ===============================
00025 
00026 // -----------------------------------------------------------------------------
00027 // CFindMeDocument::NewL()
00028 // Two-phased constructor.
00029 // -----------------------------------------------------------------------------
00030 //
00031 CFindMeDocument* CFindMeDocument::NewL( CEikApplication& aApp )
00032         {
00033         CFindMeDocument* self = NewLC( aApp );
00034         CleanupStack::Pop( self );
00035         return self;
00036         }
00037 
00038 // -----------------------------------------------------------------------------
00039 // CFindMeDocument::NewLC()
00040 // Two-phased constructor.
00041 // -----------------------------------------------------------------------------
00042 //
00043 CFindMeDocument* CFindMeDocument::NewLC( CEikApplication& aApp )
00044         {
00045         CFindMeDocument* self =
00046                 new ( ELeave ) CFindMeDocument( aApp );
00047 
00048         CleanupStack::PushL( self );
00049         self->ConstructL();
00050         return self;
00051         }
00052 
00053 // -----------------------------------------------------------------------------
00054 // CFindMeDocument::ConstructL()
00055 // Symbian 2nd phase constructor can leave.
00056 // -----------------------------------------------------------------------------
00057 //
00058 void CFindMeDocument::ConstructL()
00059         {
00060         // No implementation required
00061         }
00062 
00063 // -----------------------------------------------------------------------------
00064 // CFindMeDocument::CFindMeDocument()
00065 // C++ default constructor can NOT contain any code, that might leave.
00066 // -----------------------------------------------------------------------------
00067 //
00068 CFindMeDocument::CFindMeDocument( CEikApplication& aApp )
00069         : CAknDocument( aApp )
00070         {
00071         // No implementation required
00072         }
00073 
00074 // ---------------------------------------------------------------------------
00075 // CFindMeDocument::~CFindMeDocument()
00076 // Destructor.
00077 // ---------------------------------------------------------------------------
00078 //
00079 CFindMeDocument::~CFindMeDocument()
00080         {
00081         // No implementation required
00082         }
00083 
00084 // ---------------------------------------------------------------------------
00085 // CFindMeDocument::CreateAppUiL()
00086 // Constructs CreateAppUi.
00087 // ---------------------------------------------------------------------------
00088 //
00089 CEikAppUi* CFindMeDocument::CreateAppUiL()
00090         {
00091         // Create the application user interface, and return a pointer to it;
00092         // the framework takes ownership of this object
00093         return ( static_cast <CEikAppUi*> ( new ( ELeave )
00094                                                                                 CFindMeAppUi ) );
00095         }
00096 
00097 // End of File

Generated by  doxygen 1.6.2