Nokia N97 SDK
Example Applications Guide

CAknExPbarTimer Class Reference

#include <aknexpbartimer.h>

Inheritance diagram for CAknExPbarTimer:

List of all members.

Detailed Description

Timer class.

Definition at line 37 of file aknexpbartimer.h.


Public Member Functions

  CAknExPbarTimer ()
void  ConstructL (TAknExPbarTimerModel *aModel, CAknExPbarContainer *aContainer)
virtual  ~CAknExPbarTimer ()

Static Public Member Functions

static CAknExPbarTimer *  NewL (TAknExPbarTimerModel *aModel, CAknExPbarContainer *aContainer)
static CAknExPbarTimer *  NewLC (TAknExPbarTimerModel *aModel, CAknExPbarContainer *aContainer)

Private Member Functions

void  RunL ()
void  Queue ()

Private Attributes

TAknExPbarTimerModel *  iModel
CAknExPbarContainer *  iContainer


Constructor & Destructor Documentation

CAknExPbarTimer::CAknExPbarTimer (   ) 
 

CAknExPbarTimer. C++ default constructor.

Definition at line 31 of file aknexpbartimer.cpp.

Referenced by NewLC().

00031                                  : CTimer( EActivePriorityClockTimer )
00032     {
00033     // No implementation required
00034     }

CAknExPbarTimer::~CAknExPbarTimer (   )  [virtual]
 

~CAknExPbarTimer Virtual Destructor.

Definition at line 90 of file aknexpbartimer.cpp.

00091     {
00092     // No implementation required
00093     }


Member Function Documentation

CAknExPbarTimer * CAknExPbarTimer::NewL (  TAknExPbarTimerModel *  aModel,
CAknExPbarContainer *  aContainer
)  [static]
 

NewL Two-phased constructor. Construct a CAknExPbarTimer. Using two phase construction, and return a pointer to the created object.

Parameters:
aModel  pointer to TAknExPbarTimerModel.
aContainer  pointer to CAknExPbarContainer
Returns:
A pointer to the created instance of CAknExPbarTimer.

Definition at line 41 of file aknexpbartimer.cpp.

References NewLC().

Referenced by CAknExPbarContainer::ConstructTimerL().

00043     {
00044     CAknExPbarTimer* self = NewLC( aModel, aContainer );
00045     CleanupStack::Pop( self );
00046     return self;
00047     }

CAknExPbarTimer * CAknExPbarTimer::NewLC (  TAknExPbarTimerModel *  aModel,
CAknExPbarContainer *  aContainer
)  [static]
 

NewLC Two-phased constructor. Construct a CAknExPbarTimer. Using two phase construction, and return a pointer to the created object.

Parameters:
aModel  pointer to TAknExPbarTimerModel.
aContainer  pointer to CAknExPbarContainer
Returns:
A pointer to the created instance of CAknExPbarTimer.

Definition at line 54 of file aknexpbartimer.cpp.

References CAknExPbarTimer().

Referenced by NewL().

00056     {
00057     CAknExPbarTimer* self = new ( ELeave ) CAknExPbarTimer();
00058     CleanupStack::PushL( self );
00059     self->ConstructL( aModel, aContainer );
00060     return self;
00061     }

void CAknExPbarTimer::ConstructL (  TAknExPbarTimerModel *  aModel,
CAknExPbarContainer *  aContainer
) 
 

ConstructL 2nd phase constructor.

Parameters:
aModel  pointer to TAknExPbarTimerModel.
aContainer  pointer to CAknExPbarContainer

Definition at line 68 of file aknexpbartimer.cpp.

References iContainer, iModel, TAknExPbarTimerModel::iRunning, and Queue().

00070     {
00071 
00072     CTimer::ConstructL();
00073 
00074     // Add this Timer to  Active Scheduler
00075     CActiveScheduler::Add( this );
00076 
00077     iModel = aModel;
00078     iContainer = aContainer;
00079     if ( iModel->iRunning )
00080         {
00081         Queue();
00082         }
00083     }

void CAknExPbarTimer::RunL (   )  [private]
 

RunL Definition of what to do when timer event occurred.

Definition at line 101 of file aknexpbartimer.cpp.

References iContainer, TAknExPbarTimerModel::iIncrement, iModel, CAknExPbarContainer::IncrementBarsAndDraw(), and Queue().

00102     {
00103     iContainer->IncrementBarsAndDraw( iModel->iIncrement );
00104     Queue();
00105     }

void CAknExPbarTimer::Queue (   )  [private]
 

Queue Set timer event interval.

Definition at line 112 of file aknexpbartimer.cpp.

References TAknExPbarTimerModel::iHundredths, and iModel.

Referenced by ConstructL(), and RunL().

00113     {
00114     After( KIntervalBaseTime * iModel->iHundredths );
00115     }


Member Data Documentation

TAknExPbarTimerModel* CAknExPbarTimer::iModel [private]
 

iModel Pointer to Timer model owned by CAknExPbarTimer object.

Definition at line 116 of file aknexpbartimer.h.

Referenced by ConstructL(), Queue(), and RunL().

CAknExPbarContainer* CAknExPbarTimer::iContainer [private]
 

iContainer Pointer to Container class owned by CAknExPbarTimer object.

Definition at line 123 of file aknexpbartimer.h.

Referenced by ConstructL(), and RunL().


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

© Nokia 2009

Back to top