Nokia N97 SDK
Example Applications Guide

HsWidgetDocument.cpp

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

© Nokia 2009

Back to top