S60 3rd Edition SDK for Symbian OS
Example Applications Guide

LensFlareDocument.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : LensFlareDocument.cpp
00004 *  Part of     : OpenGLEx / LensFlare
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 "LensFlareDocument.h"
00018 #include "LensFlareAppUi.h"
00019 
00020 // EXTERNAL DATA STRUCTURES
00021 
00022 // EXTERNAL FUNCTION PROTOTYPES  
00023 
00024 // CONSTANTS
00025 
00026 // MACROS
00027 
00028 // LOCAL CONSTANTS AND MACROS
00029 
00030 // MODULE DATA STRUCTURES
00031 
00032 // LOCAL FUNCTION PROTOTYPES
00033 
00034 // FORWARD DECLARATIONS
00035 
00036 // ================= MEMBER FUNCTIONS =======================
00037 
00038 // -----------------------------------------------------------------------------
00039 // CLensFlareDocument::CLensFlareDocument
00040 // C++ default constructor can NOT contain any code, that
00041 // might leave.
00042 // -----------------------------------------------------------------------------
00043 //
00044 CLensFlareDocument::CLensFlareDocument(CEikApplication& aApp)
00045 : CAknDocument(aApp)    
00046     {
00047     }
00048 
00049 // destructor
00050 CLensFlareDocument::~CLensFlareDocument()
00051     {
00052     }
00053 
00054 // -----------------------------------------------------------------------------
00055 // CLensFlareDocument::ConstructL
00056 // Symbian 2nd phase constructor can leave.
00057 // -----------------------------------------------------------------------------
00058 //
00059 void CLensFlareDocument::ConstructL()
00060     {
00061     }
00062 
00063 // -----------------------------------------------------------------------------
00064 // CLensFlareDocument::NewL
00065 // Two-phased constructor.
00066 // -----------------------------------------------------------------------------
00067 //
00068 CLensFlareDocument* CLensFlareDocument::NewL(
00069         CEikApplication& aApp)     // CLensFlareApp reference
00070     {
00071     CLensFlareDocument* self = new (ELeave) CLensFlareDocument( aApp );
00072     CleanupStack::PushL( self );
00073     self->ConstructL();
00074     CleanupStack::Pop();
00075 
00076     return self;
00077     }
00078     
00079 // ----------------------------------------------------
00080 // CLensFlareDocument::CreateAppUiL()
00081 // constructs CLensFlareAppUi
00082 // ----------------------------------------------------
00083 //
00084 CEikAppUi* CLensFlareDocument::CreateAppUiL()
00085     {
00086     return new (ELeave) CLensFlareAppUi;
00087     }
00088 
00089 // End of File  

© Nokia 2006

Back to top