Nokia N97 SDK
Example Applications Guide

HsWidgetDocument.cpp

00001 /*
00002  ============================================================================
00003  Name           : HsWidgetDocument.cpp
00004  Author   : 
00005  Copyright   : This material, including documentation and any related computer
00006           programs, is protected by copyright controlled by Nokia Corporation.
00007  Description : CHsWidgetDocument implementation
00008  ============================================================================
00009  */
00010 
00011 // INCLUDE FILES
00012 #include "HsWidgetAppUi.h"
00013 #include "HsWidgetDocument.h"
00014 
00015 // ============================ MEMBER FUNCTIONS ===============================
00016 
00017 // -----------------------------------------------------------------------------
00018 // CHsWidgetDocument::NewL()
00019 // Two-phased constructor.
00020 // -----------------------------------------------------------------------------
00021 //
00022 CHsWidgetDocument* CHsWidgetDocument::NewL(CEikApplication& aApp)
00023         {
00024         CHsWidgetDocument* self = NewLC(aApp);
00025         CleanupStack::Pop(self);
00026         return self;
00027         }
00028 
00029 // -----------------------------------------------------------------------------
00030 // CHsWidgetDocument::NewLC()
00031 // Two-phased constructor.
00032 // -----------------------------------------------------------------------------
00033 //
00034 CHsWidgetDocument* CHsWidgetDocument::NewLC(CEikApplication& aApp)
00035         {
00036         CHsWidgetDocument* self = new ( ELeave ) CHsWidgetDocument( aApp );
00037 
00038         CleanupStack::PushL(self);
00039         self->ConstructL();
00040         return self;
00041         }
00042 
00043 // -----------------------------------------------------------------------------
00044 // CHsWidgetDocument::ConstructL()
00045 // Symbian 2nd phase constructor can leave.
00046 // -----------------------------------------------------------------------------
00047 //
00048 void CHsWidgetDocument::ConstructL()
00049         {
00050         // No implementation required
00051         }
00052 
00053 // -----------------------------------------------------------------------------
00054 // CHsWidgetDocument::CHsWidgetDocument()
00055 // C++ default constructor can NOT contain any code that might leave.
00056 // -----------------------------------------------------------------------------
00057 //
00058 CHsWidgetDocument::CHsWidgetDocument(CEikApplication& aApp) :
00059         CAknDocument(aApp)
00060         {
00061         // No implementation required
00062         }
00063 
00064 // ---------------------------------------------------------------------------
00065 // CHsWidgetDocument::~CHsWidgetDocument()
00066 // Destructor.
00067 // ---------------------------------------------------------------------------
00068 //
00069 CHsWidgetDocument::~CHsWidgetDocument()
00070         {
00071         // No implementation required
00072         }
00073 
00074 // ---------------------------------------------------------------------------
00075 // CHsWidgetDocument::CreateAppUiL()
00076 // Constructs CreateAppUi.
00077 // ---------------------------------------------------------------------------
00078 //
00079 CEikAppUi* CHsWidgetDocument::CreateAppUiL()
00080         {
00081         // Create the application user interface, and return a pointer to it;
00082         // the framework takes ownership of this object
00083         return new ( ELeave )CHsWidgetAppUi;
00084         }
00085 
00086 // End of File

© Nokia 2009

Back to top