examples/ForumNokia/Localisation/src/localizationdocument.cpp

00001 /*
00002  * Copyright © 2008 Nokia Corporation.
00003  */
00004 
00005 
00006 
00007 // INCLUDE FILES
00008 #include "LocalizationAppUi.h"
00009 #include "LocalizationDocument.h"
00010 
00011 // ============================ MEMBER FUNCTIONS ===============================
00012 
00013 // -----------------------------------------------------------------------------
00014 // CLocalizationDocument::NewL()
00015 // Two-phased constructor.
00016 // -----------------------------------------------------------------------------
00017 //
00018 CLocalizationDocument* CLocalizationDocument::NewL( CEikApplication&
00019                                                           aApp )
00020     {
00021     CLocalizationDocument* self = NewLC( aApp );
00022     CleanupStack::Pop( self );
00023     return self;
00024     }
00025 
00026 // -----------------------------------------------------------------------------
00027 // CLocalizationDocument::NewLC()
00028 // Two-phased constructor.
00029 // -----------------------------------------------------------------------------
00030 //
00031 CLocalizationDocument* CLocalizationDocument::NewLC( CEikApplication&
00032                                                            aApp )
00033     {
00034     CLocalizationDocument* self =
00035         new ( ELeave ) CLocalizationDocument( aApp );
00036 
00037     CleanupStack::PushL( self );
00038     self->ConstructL();
00039     return self;
00040     }
00041 
00042 // -----------------------------------------------------------------------------
00043 // CLocalizationDocument::ConstructL()
00044 // Symbian 2nd phase constructor can leave.
00045 // -----------------------------------------------------------------------------
00046 //
00047 void CLocalizationDocument::ConstructL()
00048     {
00049     // No implementation required
00050     }
00051 
00052 // -----------------------------------------------------------------------------
00053 // CLocalizationDocument::CLocalizationDocument()
00054 // C++ default constructor can NOT contain any code, that might leave.
00055 // -----------------------------------------------------------------------------
00056 //
00057 CLocalizationDocument::CLocalizationDocument( CEikApplication& aApp )
00058     : CAknDocument( aApp )
00059     {
00060     // No implementation required
00061     }
00062 
00063 // ---------------------------------------------------------------------------
00064 // CLocalizationDocument::~CLocalizationDocument()
00065 // Destructor.
00066 // ---------------------------------------------------------------------------
00067 //
00068 CLocalizationDocument::~CLocalizationDocument()
00069     {
00070     // No implementation required
00071     }
00072 
00073 // ---------------------------------------------------------------------------
00074 // CLocalizationDocument::CreateAppUiL()
00075 // Constructs CreateAppUi.
00076 // ---------------------------------------------------------------------------
00077 //
00078 CEikAppUi* CLocalizationDocument::CreateAppUiL()
00079     {
00080     // Create the application user interface, and return a pointer to it;
00081     // the framework takes ownership of this object
00082     return ( static_cast <CEikAppUi*> ( new ( ELeave )
00083                                         CLocalizationAppUi ) );
00084     }
00085 
00086 // End of File

Generated by  doxygen 1.6.2