Nokia N97 SDK
Example Applications Guide

CHsWidgetDocument Class Reference

#include <HsWidgetDocument.h>

Inheritance diagram for CHsWidgetDocument:

List of all members.

Detailed Description

CHsWidgetDocument application class. An instance of class CHsWidgetDocument is the Document part of the AVKON application framework for the HsWidget example application.

Definition at line 28 of file HsWidgetDocument.h.


Public Member Functions

virtual  ~CHsWidgetDocument ()
CEikAppUi *  CreateAppUiL ()

Static Public Member Functions

static CHsWidgetDocument *  NewL (CEikApplication &aApp)
static CHsWidgetDocument *  NewLC (CEikApplication &aApp)

Private Member Functions

void  ConstructL ()
  CHsWidgetDocument (CEikApplication &aApp)


Constructor & Destructor Documentation

CHsWidgetDocument::~CHsWidgetDocument (   )  [virtual]
 

~CHsWidgetDocument Virtual Destructor.

Definition at line 69 of file HsWidgetDocument.cpp.

00070         {
00071         // No implementation required
00072         }

CHsWidgetDocument::CHsWidgetDocument (  CEikApplication &  aApp  )  [private]
 

CHsWidgetDocument. C++ default constructor.

Parameters:
aApp  Application creating this document.

Definition at line 58 of file HsWidgetDocument.cpp.

Referenced by NewLC().

00058                                                           :
00059         CAknDocument(aApp)
00060         {
00061         // No implementation required
00062         }


Member Function Documentation

CHsWidgetDocument * CHsWidgetDocument::NewL (  CEikApplication &  aApp  )  [static]
 

NewL. Two-phased constructor. Constructs a CHsWidgetDocument for the AVKON application aApp using two phase construction, and returns a pointer to the created object.

Parameters:
aApp  Application creating this document.
Returns:
A pointer to the created instance of CHsWidgetDocument.

Definition at line 22 of file HsWidgetDocument.cpp.

References NewLC().

Referenced by CHsWidgetApplication::CreateDocumentL().

00023         {
00024         CHsWidgetDocument* self = NewLC(aApp);
00025         CleanupStack::Pop(self);
00026         return self;
00027         }

CHsWidgetDocument * CHsWidgetDocument::NewLC (  CEikApplication &  aApp  )  [static]
 

NewLC. Two-phased constructor. Constructs a CHsWidgetDocument for the AVKON application aApp using two phase construction and returns a pointer to the created object.

Parameters:
aApp  Application creating this document.
Returns:
A pointer to the created instance of CHsWidgetDocument.

Definition at line 34 of file HsWidgetDocument.cpp.

References CHsWidgetDocument().

Referenced by NewL().

00035         {
00036         CHsWidgetDocument* self = new ( ELeave ) CHsWidgetDocument( aApp );
00037 
00038         CleanupStack::PushL(self);
00039         self->ConstructL();
00040         return self;
00041         }

CEikAppUi * CHsWidgetDocument::CreateAppUiL (   ) 
 

CreateAppUiL From CEikDocument, CreateAppUiL. Create a CHsWidgetAppUi object and return a pointer to it. The returned object is owned by the Uikon framework.

Returns:
Pointer to created instance of AppUi.

Definition at line 79 of file HsWidgetDocument.cpp.

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         }

void CHsWidgetDocument::ConstructL (   )  [private]
 

ConstructL 2nd phase constructor.

Definition at line 48 of file HsWidgetDocument.cpp.

00049         {
00050         // No implementation required
00051         }


The documentation for this class was generated from the following files:

© Nokia 2009

Back to top