CLbsCallbackTimer Class Reference

class CLbsCallbackTimer : protected CTimer

Lbs call-back timer. All timers may complete late if the machine has been turned off for some period of time after scheduling an event.

MLbsCallbackTimerObserver

Inherits from

Constructor & Destructor Documentation

CLbsCallbackTimer(MLbsCallbackTimerObserver &)

IMPORT_CCLbsCallbackTimer(MLbsCallbackTimerObserver &aObserver)[protected]

Constructor.

Parameters

MLbsCallbackTimerObserver & aObserver

~CLbsCallbackTimer()

~CLbsCallbackTimer()[virtual]

Destructor

Member Functions Documentation

Cancel()

IMPORT_C voidCancel()

Requests an event at a given UTC time. The timer may complete late if the machine has been turned off for some period of time after scheduling an event.

ConstructL()

IMPORT_C voidConstructL()[protected]

Second phase constructor.

EventAfter(const TTimeIntervalSeconds &, TInt)

IMPORT_C voidEventAfter(const TTimeIntervalSeconds &aInterval,
TIntaEventId
)

Requests an event after an interval. The timer may complete late if the machine has been turned off for some period of time after scheduling an event.

Parameters

const TTimeIntervalSeconds & aIntervalInterval
TInt aEventIdAn event Id to be used in a call-back.

EventAfter(const TTimeIntervalMicroSeconds &, TInt)

IMPORT_C voidEventAfter(const TTimeIntervalMicroSeconds &aInterval,
TIntaEventId
)

Requests an event after an interval. The timer may complete late if the machine has been turned off for some period of time after scheduling an event.

Parameters

const TTimeIntervalMicroSeconds & aIntervalInterval
TInt aEventIdAn event Id to be used in a call-back.

EventAfter(const TTimeIntervalMicroSeconds32 &, TInt)

IMPORT_C voidEventAfter(const TTimeIntervalMicroSeconds32 &aInterval,
TIntaEventId
)

Requests an event after an interval. The timer may complete late if the machine has been turned off for some period of time after scheduling an event.

Parameters

const TTimeIntervalMicroSeconds32 & aIntervalInterval
TInt aEventIdAn event Id to be used in a call-back.

EventAtUTC(const TTime &, TInt)

IMPORT_C voidEventAtUTC(const TTime &aTime,
TIntaEventId
)

Requests an event at a given UTC time. The timer may complete late if the machine has been turned off for some period of time after scheduling an event.

Parameters

const TTime & aTime
TInt aEventIdAn event Id to be used in a call-back.

IsActive()

IMPORT_C TBoolIsActive()const

Reports if the timer is running. CActive

NewL(MLbsCallbackTimerObserver &)

IMPORT_C CLbsCallbackTimer *NewL(MLbsCallbackTimerObserver &aObserver)[static]

Static constructor.

Parameters

MLbsCallbackTimerObserver & aObserver

RunError(TInt)

TInt RunError(TIntaError)[protected, virtual]

Parameters

TInt aError

RunL()

voidRunL()[protected, virtual]

StartTimer(TInt64)

voidStartTimer(TInt64aInterval)[protected]

Requests an event after aInterval microseconds

Parameters

TInt64 aIntervalInterval

Member Data Documentation

TInt iEventId

TInt iEventId[protected]

TInt64 iIntervalLeft

TInt64 iIntervalLeft[protected]

MLbsCallbackTimerObserver & iObserver

MLbsCallbackTimerObserver &iObserver[protected]