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_C CLbsCallbackTimer ( MLbsCallbackTimerObserver & aObserver ) [protected]

Constructor.

Parameters

MLbsCallbackTimerObserver & aObserver

~CLbsCallbackTimer()

~CLbsCallbackTimer ( ) [virtual]

Destructor

Member Functions Documentation

Cancel()

IMPORT_C void Cancel ( )

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 void ConstructL ( ) [protected]

Second phase constructor.

EventAfter(const TTimeIntervalSeconds &, TInt)

IMPORT_C void EventAfter ( const TTimeIntervalSeconds & aInterval,
TInt aEventId
)

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 & aInterval Interval
TInt aEventId An event Id to be used in a call-back.

EventAfter(const TTimeIntervalMicroSeconds &, TInt)

IMPORT_C void EventAfter ( const TTimeIntervalMicroSeconds & aInterval,
TInt aEventId
)

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 & aInterval Interval
TInt aEventId An event Id to be used in a call-back.

EventAfter(const TTimeIntervalMicroSeconds32 &, TInt)

IMPORT_C void EventAfter ( const TTimeIntervalMicroSeconds32 & aInterval,
TInt aEventId
)

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 & aInterval Interval
TInt aEventId An event Id to be used in a call-back.

EventAtUTC(const TTime &, TInt)

IMPORT_C void EventAtUTC ( const TTime & aTime,
TInt aEventId
)

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 aEventId An event Id to be used in a call-back.

IsActive()

IMPORT_C TBool IsActive ( ) 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 ( TInt aError ) [protected, virtual]

Parameters

TInt aError

RunL()

void RunL ( ) [protected, virtual]

StartTimer(TInt64)

void StartTimer ( TInt64 aInterval ) [protected]

Requests an event after aInterval microseconds

Parameters

TInt64 aInterval Interval

Member Data Documentation

TInt iEventId

TInt iEventId [protected]

TInt64 iIntervalLeft

TInt64 iIntervalLeft [protected]

MLbsCallbackTimerObserver & iObserver

MLbsCallbackTimerObserver & iObserver [protected]