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.
Public Member Functions | |
---|---|
RTimeout(TimeoutCallback) | |
void | Cancel() |
TBool | IsActive() |
void | Set(MTimeoutManager *, TUint) |
Private Attributes | |
---|---|
TUint | iDelta |
const TimeoutCallback | iExpired |
RTimeout * | iNext |
RTimeout * | iPrev |
RTimeout | ( | TimeoutCallback | aCallback | ) | [inline] |
Contructor.
TimeoutCallback aCallback | the expire callback function |
void | Cancel | ( | ) | [inline] |
Cancel timeout.
Cancel removes the timeout (if any) from this link. No Expired() call will happen as a result of this.
TBool | IsActive | ( | ) | const [inline] |
It is always safe to just add the link to a new time manager. Add will implicitly cancel any previous setting, if such exists.
void | Set | ( | MTimeoutManager * | aMgr, |
TUint | aTime | |||
) | [inline] |
Activate timeout callback after the specified time.
Just an alternate way of calling MTimeoutManager::Set.
MTimeoutManager * aMgr | The timeout manager. |
TUint aTime | The time (in fraction of second units). |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.