|
||
class CIdleFinder : public CIdle;
Provides information about the progress of an asynchronous contact database search, and can be used to get the results of the search.
An instance of this class is returned by calls to CContactDatabase::FindAsyncL()
and CContactDatabase::FindInTextDefAsyncL()
.
CBase
- Base class for all classes to be instantiated on the heap
CActive
- The core class of the active object abstraction
CIdle
- An active object that performs low-priority processing when no higher-priority active objects are ready to run
CIdleFinder
- Provides information about the progress of an asynchronous contact database search, and can be used to get the results
of the search
Defined in CIdleFinder
:
DoCancel()
Implements cancellation of an outstanding requestError()
Signals an error while searching the databaseIsComplete()
Checks whether the contact database search is completeRunError()
TakeContactIds()
Gets an array of contact item IDs where the match is foundInherited from CActive
:
Cancel()
Cancels the wait for completion of an outstanding requestDeque()
Removes the active object from the active scheduler's list of active objectsEPriorityHigh
A priority higher than EPriorityUserInputEPriorityIdle
A low priority, useful for active objects representing background processingEPriorityLow
A priority higher than EPriorityIdle but lower than EPriorityStandardEPriorityStandard
Most active objects will have this priorityEPriorityUserInput
A priority higher than EPriorityStandard; useful for active objects handling user inputExtension_()
Extension functionIsActive()
Determines whether the active object has a request outstandingIsAdded()
Determines whether the active object has been added to the active scheduler's list of active objectsPriority()
Gets the priority of the active objectSetActive()
Indicates that the active object has issued a request and that it is now outstandingSetPriority()
Sets the priority of the active objectTPriority
Defines standard priorities for active objectsiStatus
The request status associated with an asynchronous requestInherited from CBase
:
Delete()
Deletes the specified objectoperator new()
Initialises the object to binary zeroesInherited from CIdle
:
New()
Allocates and initialises an Idle time active object and adds it to the active schedulerNewL()
Allocates and initialises an Idle time active object, adds it to the active scheduler, but leaves on failureRunL()
Handles this idle active object's request completion eventStart()
Starts the background taskiCallBack
The callback object that encapsulates the background taskIMPORT_C TBool IsComplete() const;
Checks whether the contact database search is complete.
|
IMPORT_C CContactIdArray *TakeContactIds();
Gets an array of contact item IDs where the match is found.
|
IMPORT_C TInt Error() const;
Signals an error while searching the database.
|
private: virtual void DoCancel();
Implements cancellation of an outstanding request.
This function is called as part of the active object's Cancel()
.
It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.
DoCancel()
must not wait for event completion; this is handled by Cancel()
.