class TimeoutFactory |
Factory for creating MTimeoutManager instance(s).
TimeoutFactory is not a class that can be instantiated! It only declares static methods, and only publicly available method (NewL) is the one that creates an instance of a timeout manager and returns a reference to the interface class ( MTimeoutManager ).
Public Member Functions | |
---|---|
IMPORT_C MTimeoutManager * | NewL ( TUint , TAny *, TInt ) |
Private Member Functions | |
---|---|
IMPORT_C void | Cancel ( RTimeout &) |
IMPORT_C TBool | IsActive (const RTimeout &) |
IMPORT_C void | Cancel | ( | RTimeout & | aLink | ) | [private, static] |
Cancels timeout, if active.
This is safe to call, even if handle is inactive.
RTimeout & aLink | The timeout handle |
IMPORT_C TBool | IsActive | ( | const RTimeout & | aLink | ) | [private, static] |
Tests if a timeout is active on specified handle.
const RTimeout & aLink | The timeout handle |
IMPORT_C MTimeoutManager * | NewL | ( | TUint | aUnit = 1, |
TAny * | aPtr = 0, | |||
TInt | aPriority = 0 | |||
) | [static] |
Create a new instance of timeout manager.
aUnit specifies the unit of the aTime parameter for the timeout setting as fractions of a second. Valid range is [1..1000000]. aPtr is additional parameter which is passed to each Expired() call. aPriority is used for the CActive instantiation.
maxtime = KMaxTUint / unit
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.