Nokia N97 SDK
Example Applications Guide

CTimeOutTimer Class Reference

#include <servertimeouttimer.h>

Inheritance diagram for CTimeOutTimer:

List of all members.

Detailed Description

CTimeOutTimer An instance of CTimeoutTimer is a timer for scheduling animation

Definition at line 32 of file servertimeouttimer.h.


Public Member Functions

virtual  ~CTimeOutTimer ()
void  RunL ()

Static Public Member Functions

static CTimeOutTimer *  NewL (const TInt aPriority, MTimeoutNotify &aTimeOutNotify)
static CTimeOutTimer *  NewLC (const TInt aPriority, MTimeoutNotify &aTimeOutNotify)

Protected Member Functions

  CTimeOutTimer (const TInt aPriority, MTimeoutNotify &aTimeOutNotify)
void  ConstructL ()

Private Attributes

MTimeoutNotify &  iNotify


Constructor & Destructor Documentation

CTimeOutTimer::~CTimeOutTimer (   )  [virtual]
 

~CTimeOutTimer Virtual Destructor.

Definition at line 70 of file servertimeouttimer.cpp.

00071     {
00072     Cancel();
00073     }

CTimeOutTimer::CTimeOutTimer (  const TInt  aPriority,
MTimeoutNotify &  aTimeOutNotify
)  [protected]
 

CTimeOutTimer Perform the first phase of two phase construction.

Parameters:
aPriority  the priority to use for the active object
aTimeOutNotify  the observer to notify

Definition at line 31 of file servertimeouttimer.cpp.

Referenced by NewLC().

00032                                 : CTimer( aPriority ), iNotify( aTimeOutNotify )
00033     {
00034     // No implementation required
00035     }


Member Function Documentation

CTimeOutTimer * CTimeOutTimer::NewL (  const TInt  aPriority,
MTimeoutNotify &  aTimeOutNotify
)  [static]
 

NewL. Two-phased constructor. Create a CTimeOutTimer object using two phase construction, and return a pointer to the created object.

Parameters:
aPriority  the priority to use for the active object
aTimeOutNotify  the observer to notify
Returns:
A pointer to the created instance of CTimeOutTimer.

Definition at line 42 of file servertimeouttimer.cpp.

References NewLC().

Referenced by CImage::ConstructL().

00044     {
00045     CTimeOutTimer* self = CTimeOutTimer::NewLC( aPriority, aTimeOutNotify );
00046     CleanupStack::Pop(); // self
00047     return self;
00048     }

CTimeOutTimer * CTimeOutTimer::NewLC (  const TInt  aPriority,
MTimeoutNotify &  aTimeOutNotify
)  [static]
 

NewLC. Two-phased constructor. Create a CTimeOutTimer object using two phase construction, and return a pointer to the created object.

Parameters:
aPriority  the priority to use for the active object
aTimeOutNotify  the observer to notify
Returns:
A pointer to the created instance of CTimeOutTimer.

Definition at line 55 of file servertimeouttimer.cpp.

References CTimeOutTimer().

Referenced by NewL().

00057     {
00058     CTimeOutTimer *self = new ( ELeave ) CTimeOutTimer( aPriority,
00059                                                                aTimeOutNotify );
00060     CleanupStack::PushL( self );
00061     self->ConstructL();
00062     return self;
00063     }

void CTimeOutTimer::RunL (   ) 
 

RunL Handle the event when the timer expires.

Definition at line 94 of file servertimeouttimer.cpp.

References iNotify, and MTimeoutNotify::TimedOut().

00095     {
00096     iNotify.TimedOut();
00097     }

void CTimeOutTimer::ConstructL (   )  [protected]
 

ConstructL Perform the second phase of two phase construction.

Definition at line 80 of file servertimeouttimer.cpp.

00081     {
00082     // Call the base class ConstructL
00083     CTimer::ConstructL();
00084 
00085     // Add this timer to the active scheduler
00086     CActiveScheduler::Add( this );
00087     }


Member Data Documentation

MTimeoutNotify& CTimeOutTimer::iNotify [private]
 

iNotify Reference to object implementing the notify interface. Called on timeout.

Definition at line 99 of file servertimeouttimer.h.

Referenced by RunL().


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

© Nokia 2009

Back to top