CHeartbeatRunner Class Reference

class CHeartbeatRunner : public CBase

Second counter

Inherits from

Constructor & Destructor Documentation

CHeartbeatRunner()

CHeartbeatRunner ( ) [private]

Default constructor

~CHeartbeatRunner()

~CHeartbeatRunner ( ) [virtual]

Destructor

Member Functions Documentation

Beat()

void Beat ( ) [private]

Called when beat works ok, once every second

ConstructL()

void ConstructL ( ) [private]

2nd phase of the construction

GetTimerStartTime()

TTime * GetTimerStartTime ( )

returns a pointer to iStartTime

NewL(CMmCallTsy *, CMmPhoneTsy *)

CHeartbeatRunner * NewL ( CMmCallTsy * aMmCall,
CMmPhoneTsy * aMmPhone = NULL
) [static]

Two-phased constructor.

Parameters

CMmCallTsy * aMmCall
CMmPhoneTsy * aMmPhone = NULL

NumberOfBeats()

TInt NumberOfBeats ( )

Returns number of beats from the previous Start of the timer.

Start()

void Start ( )

Start timer

StartAirTimeDuration()

void StartAirTimeDuration ( )

Start timer

Stop()

TBool Stop ( )

Stop timer

Synchronize()

void Synchronize ( )

Called when we need to synchronize

Member Data Documentation

TBool iActive

TBool iActive [private]

flag that indicates is this timer active

TBool iAirTimeDuration

TBool iAirTimeDuration [private]

Air time durationf flag

CHeartbeat * iHeartbeat

CHeartbeat * iHeartbeat [private]

Timer Not own.

CMmCallTsy * iMmCall

CMmCallTsy * iMmCall [private]

Pointer to call object No own.

CMmPhoneTsy * iMmPhone

CMmPhoneTsy * iMmPhone [private]

Pointer to phone object No own.

TInt iPreviousNumberOfBeats

TInt iPreviousNumberOfBeats [private]

Number of beats of the previous Start->Stop cycle

TTime iStartTime

TTime iStartTime [private]

Start time of timer