RTimeout Class Reference

class RTimeout

The timeout handle.

This can be a member of any object that needs timeout events.

The RTimeout can be used as a base for derived classes.

Constructor & Destructor Documentation

RTimeout(TimeoutCallback)

RTimeout(TimeoutCallbackaCallback)[inline]

Contructor.

Parameters

TimeoutCallback aCallbackthe expire callback function

Member Functions Documentation

Cancel()

voidCancel()[inline]

Cancel timeout.

Cancel removes the timeout (if any) from this link. No Expired() call will happen as a result of this.

IsActive()

TBool IsActive()const [inline]
Tests if the timeout is active.
Note:

It is always safe to just add the link to a new time manager. Add will implicitly cancel any previous setting, if such exists.

Set(MTimeoutManager *, TUint)

voidSet(MTimeoutManager *aMgr,
TUintaTime
)[inline]

Activate timeout callback after the specified time.

Just an alternate way of calling MTimeoutManager::Set.

Parameters

MTimeoutManager * aMgrThe timeout manager.
TUint aTimeThe time (in fraction of second units).

Member Data Documentation

TUint iDelta

TUint iDelta[private]

const TimeoutCallback iExpired

const TimeoutCallbackiExpired[private]

RTimeout * iNext

RTimeout *iNext[private]

RTimeout * iPrev

RTimeout *iPrev[private]