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()

voidBeat()[private]

Called when beat works ok, once every second

ConstructL()

voidConstructL()[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()

voidStart()

Start timer

StartAirTimeDuration()

voidStartAirTimeDuration()

Start timer

Stop()

TBool Stop()

Stop timer

Synchronize()

voidSynchronize()

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