Nokia N97 SDK
Example Applications Guide

CHelpExampleAppView Class Reference

#include <helpexampleappview.h>

Inheritance diagram for CHelpExampleAppView:

List of all members.

Detailed Description

CHelpExampleAppView An instance of the Application View object for the HelpExample example application

Definition at line 27 of file helpexampleappview.h.


Public Member Functions

virtual  ~CHelpExampleAppView ()
void  Draw (const TRect &aRect) const

Static Public Member Functions

static CHelpExampleAppView *  NewL (const TRect &aRect)
static CHelpExampleAppView *  NewLC (const TRect &aRect)

Private Member Functions

void  ConstructL (const TRect &aRect)
  CHelpExampleAppView ()


Constructor & Destructor Documentation

CHelpExampleAppView::~CHelpExampleAppView (   )  [virtual]
 

~CHelpExampleAppView() Destroy the object

Definition at line 75 of file helpexampleappview.cpp.

00076     {
00077     // No implementation required
00078     }

CHelpExampleAppView::CHelpExampleAppView (   )  [private]
 

CHelpExampleAppView() Perform the first phase of two phase construction

Definition at line 65 of file helpexampleappview.cpp.

00066     {
00067     // No implementation required
00068     }


Member Function Documentation

CHelpExampleAppView * CHelpExampleAppView::NewL (  const TRect &  aRect  )  [static]
 

NewL() Create a CHelpExampleAppView object, which will draw itself to aRect

Parameters:
aRect  The rectangle this view will be drawn to
Returns:
A pointer to the created instance of CHelpExampleAppView

Definition at line 26 of file helpexampleappview.cpp.

References NewLC().

Referenced by CHelpExampleAppUi::ConstructL().

00027     {
00028     CHelpExampleAppView* self = NewLC( aRect );
00029     CleanupStack::Pop( self );
00030     return self;
00031     }

CHelpExampleAppView * CHelpExampleAppView::NewLC (  const TRect &  aRect  )  [static]
 

NewLC() Create a CHelpExampleAppView object, which will draw itself to aRect

Parameters:
aRect  The rectangle this view will be drawn to
Returns:
A pointer to the created instance of CHelpExampleAppView

Definition at line 38 of file helpexampleappview.cpp.

References ConstructL().

Referenced by NewL().

00039     {
00040     CHelpExampleAppView* self = new ( ELeave ) CHelpExampleAppView;
00041     CleanupStack::PushL( self );
00042     self->ConstructL( aRect );
00043     return self;
00044     }

void CHelpExampleAppView::Draw (  const TRect &  aRect  )  const
 

Draw() Draw this CHelpExampleAppView to the screen

Parameters:
aRect  The rectangle of this view that needs updating

Definition at line 84 of file helpexampleappview.cpp.

00085     {
00086     // Clear the screen
00087     CWindowGc& gc = SystemGc();
00088     gc.Clear ( Rect() );
00089     }

void CHelpExampleAppView::ConstructL (  const TRect &  aRect  )  [private]
 

ConstructL() Perform the second phase construction of a CHelpExampleAppView object

Parameters:
aRect  The rectangle this view will be drawn to

Definition at line 51 of file helpexampleappview.cpp.

Referenced by NewLC().

00052     {
00053     CreateWindowL();
00054 
00055     SetRect ( aRect );
00056 
00057     ActivateL();
00058     }


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

© Nokia 2009

Back to top