Nokia N97 SDK
Example Applications Guide

graphicsdocument.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : graphicsdocument.cpp
00004 *  Part of     : Graphics
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 "GraphicsAppUi.h"
00018 #include "GraphicsDocument.h"
00019 
00020 // ============================ MEMBER FUNCTIONS ===============================
00021 
00022 // -----------------------------------------------------------------------------
00023 // CGraphicsDocument::CGraphicsDocument()
00024 // C++ default constructor can NOT contain any code, that might leave.
00025 // -----------------------------------------------------------------------------
00026 //
00027 CGraphicsDocument::CGraphicsDocument( CEikApplication& aApp ) : CEikDocument
00028                                                                     ( aApp )
00029     {
00030     // No implementation required
00031     }
00032 
00033 // -----------------------------------------------------------------------------
00034 // CGraphicsDocument::NewL()
00035 // Two-phased constructor.
00036 // -----------------------------------------------------------------------------
00037 //
00038 
00039 CGraphicsDocument* CGraphicsDocument::NewL( CEikApplication& aApp )
00040     {
00041     CGraphicsDocument* self = NewLC( aApp );
00042     CleanupStack::Pop();
00043     return self;
00044     }
00045 
00046 // -----------------------------------------------------------------------------
00047 // CGraphicsDocument::NewLC()
00048 // Two-phased constructor.
00049 // -----------------------------------------------------------------------------
00050 //
00051 CGraphicsDocument* CGraphicsDocument::NewLC( CEikApplication& aApp )
00052     {
00053     CGraphicsDocument* self = new ( ELeave ) CGraphicsDocument( aApp );
00054     CleanupStack::PushL( self );
00055     self->ConstructL();
00056     return self;
00057     }
00058 
00059 // -----------------------------------------------------------------------------
00060 // CGraphicsDocument::ConstructL()
00061 // Symbian 2nd phase constructor can leave.
00062 // -----------------------------------------------------------------------------
00063 //
00064 void CGraphicsDocument::ConstructL()
00065     {
00066     // No implementation required
00067     }
00068 
00069 // -----------------------------------------------------------------------------
00070 // CGraphicsDocument::~CGraphicsDocument()
00071 // Destructor.
00072 // -----------------------------------------------------------------------------
00073 //
00074 CGraphicsDocument::~CGraphicsDocument()
00075     {
00076     // No implementation required
00077     }
00078 
00079 // -----------------------------------------------------------------------------
00080 // CGraphicsDocument::CreateAppUiL()
00081 // Constructs CreateAppUi.
00082 // -----------------------------------------------------------------------------
00083 //
00084 CEikAppUi* CGraphicsDocument::CreateAppUiL()
00085     {
00086     // Create the application user interface, and return a pointer to it;
00087     // the framework takes ownership of this object
00088     return ( static_cast<CEikAppUi*>( new ( ELeave ) CGraphicsAppUi) );
00089     }
00090 
00091 // End of File

© Nokia 2009

Back to top