S60 3rd Edition SDK for Symbian OS
Example Applications Guide

ShadowsDocument.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : ShadowsDocument.cpp
00004 *  Part of     : OpenGLEx / Shadows
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 "ShadowsDocument.h"
00018 #include "ShadowsAppUi.h"
00019 
00020 // ================= MEMBER FUNCTIONS =======================
00021 
00022 // -----------------------------------------------------------------------------
00023 // CShadowsDocument::CShadowsDocument
00024 // C++ default constructor can NOT contain any code, that
00025 // might leave.
00026 // -----------------------------------------------------------------------------
00027 //
00028 CShadowsDocument::CShadowsDocument(CEikApplication& aApp)
00029 : CAknDocument(aApp)    
00030     {
00031     }
00032 
00033 // -----------------------------------------------------------------------------
00034 // CShadowsDocument::ConstructL
00035 // Symbian 2nd phase constructor can leave.
00036 // -----------------------------------------------------------------------------
00037 //
00038 void CShadowsDocument::ConstructL()
00039     {
00040     }
00041 
00042 // -----------------------------------------------------------------------------
00043 // CShadowsDocument::NewL
00044 // Two-phased constructor.
00045 // -----------------------------------------------------------------------------
00046 //
00047 CShadowsDocument* CShadowsDocument::NewL(
00048         CEikApplication& aApp)     // CShadowsApp reference
00049     {
00050     CShadowsDocument* self = new (ELeave) CShadowsDocument( aApp );
00051     CleanupStack::PushL( self );
00052     self->ConstructL();
00053     CleanupStack::Pop();
00054 
00055     return self;
00056     }
00057     
00058 // destructor
00059 CShadowsDocument::~CShadowsDocument()
00060     {
00061     }
00062 
00063 // ----------------------------------------------------
00064 // CShadowsDocument::CreateAppUiL()
00065 // constructs CShadowsAppUi
00066 // ----------------------------------------------------
00067 //
00068 CEikAppUi* CShadowsDocument::CreateAppUiL()
00069     {
00070     return new (ELeave) CShadowsAppUi;
00071     }
00072 
00073 // End of File  

© Nokia 2006

Back to top