examples/ForumNokia/DescriptorExample/src/DescriptorExDocument.cpp

00001 /*
00002  * Copyright © 2008 Nokia Corporation.
00003  */
00004 
00005 #include "DescriptorExDocument.h"
00006 #include "DescriptorExAppUi.h"
00007 
00008 // -----------------------------------------------------------------------------
00009 // Constructor. No data to hold, empty implementation.
00010 // -----------------------------------------------------------------------------
00011 CDescriptorExDocument::CDescriptorExDocument(CEikApplication& aApp)
00012 : CAknDocument(aApp)    
00013     {
00014     }
00015 
00016 // -----------------------------------------------------------------------------
00017 // Destructor. Nothing to do since an empty document.
00018 // -----------------------------------------------------------------------------
00019 CDescriptorExDocument::~CDescriptorExDocument()
00020     {
00021     }
00022 
00023 // -----------------------------------------------------------------------------
00024 // Second phase constructor. Nothing to do since empty implementation.
00025 // -----------------------------------------------------------------------------
00026 void CDescriptorExDocument::ConstructL()
00027     {
00028     }
00029 
00030 // -----------------------------------------------------------------------------
00031 // Factory method to construct an instance of CDescriptorExDocument. Returns
00032 // an empty document.
00033 // -----------------------------------------------------------------------------
00034 CDescriptorExDocument* CDescriptorExDocument::NewL(
00035         CEikApplication& aApp)     // CDescriptorExApp reference
00036     {
00037     CDescriptorExDocument* self = new (ELeave) CDescriptorExDocument( aApp );
00038     CleanupStack::PushL( self );
00039     self->ConstructL();
00040     CleanupStack::Pop();
00041 
00042     return self;
00043     }
00044     
00045 // -----------------------------------------------------------------------------
00046 // This document returns instance of CDescriptorExAppUi for the framework.
00047 // -----------------------------------------------------------------------------
00048 CEikAppUi* CDescriptorExDocument::CreateAppUiL()
00049     {
00050     return new (ELeave) CDescriptorExAppUi;
00051     }

Generated by  doxygen 1.6.2