S60 3rd Edition SDK for Symbian OS
Example Applications Guide

RainDocument.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : RainDocument.cpp
00004 *  Part of     : OpenGLEx / Rain
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 "RainDocument.h"
00018 #include "RainAppUi.h"
00019 
00020 // ================= MEMBER FUNCTIONS =======================
00021 
00022 // Constructor
00023 CRainDocument::CRainDocument(CEikApplication& aApp)
00024 : CAknDocument(aApp)    
00025     {
00026     }
00027 
00028 // Destructor
00029 CRainDocument::~CRainDocument()
00030     {
00031     }
00032 
00033 // ------------------------------------------------------------
00034 // CRainDocument::ConstructL()
00035 // EPOC default constructor can leave.
00036 // ------------------------------------------------------------
00037 void CRainDocument::ConstructL()
00038     {
00039     }
00040 
00041 // ------------------------------------------------------------
00042 // CRainDocument::NewL
00043 // Two-phased constructor.
00044 // ------------------------------------------------------------
00045 CRainDocument* CRainDocument::NewL(
00046         CEikApplication& aApp)     // CRainApp reference
00047     {
00048     CRainDocument* self = new (ELeave) CRainDocument( aApp );
00049     CleanupStack::PushL( self );
00050     self->ConstructL();
00051     CleanupStack::Pop();
00052 
00053     return self;
00054     }
00055     
00056 // ----------------------------------------------------
00057 // CRainDocument::CreateAppUiL()
00058 // constructs CRainAppUi
00059 // ----------------------------------------------------
00060 //
00061 CEikAppUi* CRainDocument::CreateAppUiL()
00062     {
00063     return new (ELeave) CRainAppUi;
00064     }
00065 
00066 // End of File  

© Nokia 2006

Back to top