Nokia N97 SDK
Example Applications Guide

CSensorExampleDocument Class Reference

#include <sensorexampledocument.h>

Inheritance diagram for CSensorExampleDocument:

List of all members.

Detailed Description

CSensorExampleDocument application class. An instance of class CSensorExampleDocument is the Document part of the AVKON application framework for the sensor example application.

Definition at line 34 of file sensorexampledocument.h.


Public Member Functions

virtual  ~CSensorExampleDocument ()
CEikAppUi *  CreateAppUiL ()

Static Public Member Functions

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

Private Member Functions

void  ConstructL ()
  CSensorExampleDocument (CEikApplication &aApp)


Constructor & Destructor Documentation

CSensorExampleDocument::~CSensorExampleDocument (   )  [virtual]
 

~CSensorExampleDocument Virtual Destructor.

Definition at line 74 of file sensorexampledocument.cpp.

00075     {
00076     // No implementation required
00077     }

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

CSensorExampleDocument. C++ default constructor.

Parameters:
aApp  Application creating this document.

Definition at line 63 of file sensorexampledocument.cpp.

Referenced by NewLC().

00064     : CAknDocument( aApp )
00065     {
00066     // No implementation required
00067     }


Member Function Documentation

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

NewL. Two-phased constructor. Construct a CSensorExampleDocument for the AVKON application aApp using two phase construction, and return a pointer to the created object.

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

Definition at line 27 of file sensorexampledocument.cpp.

References NewLC().

Referenced by CSensorExampleApplication::CreateDocumentL().

00028     {
00029     CSensorExampleDocument* self = NewLC( aApp );
00030     CleanupStack::Pop( self );
00031     return self;
00032     }

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

NewLC. Two-phased constructor. Construct a CSensorExampleDocument for the AVKON application aApp using two phase construction, and return a pointer to the created object.

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

Definition at line 39 of file sensorexampledocument.cpp.

References CSensorExampleDocument().

Referenced by NewL().

00040     {
00041     CSensorExampleDocument* self = new ( ELeave ) CSensorExampleDocument( aApp );
00042 
00043     CleanupStack::PushL( self );
00044     self->ConstructL();
00045     return self;
00046     }

CEikAppUi * CSensorExampleDocument::CreateAppUiL (   ) 
 

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

Returns:
Pointer to created instance of AppUi.

Definition at line 84 of file sensorexampledocument.cpp.

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 ) CSensorExampleAppUi ) );
00089     }

void CSensorExampleDocument::ConstructL (   )  [private]
 

ConstructL 2nd phase constructor.

Definition at line 53 of file sensorexampledocument.cpp.

00054     {
00055     // No implementation required
00056     }


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

© Nokia 2009

Back to top