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().
Public Member Functions | |
---|---|
~CIdleFinder() | |
IMPORT_C TInt | Error() |
IMPORT_C TBool | IsComplete() |
TInt | RunError(TInt) |
IMPORT_C CContactIdArray * | TakeContactIds() |
Private Member Functions | |
---|---|
CIdleFinder(CContactDatabase &, const CContactItemFieldDef *, const CContactTextDef *, MIdleFindObserver *) | |
TInt | CallbackL(TAny *) |
TBool | CheckFindL(TContactItemId) |
TBool | CheckFindL() |
void | ConstructL(const TDesC *, const MDesCArray *, const TCallBack *) |
void | DoCancel() |
CIdleFinder * | NewL(CContactDatabase &, const TDesC &, const CContactItemFieldDef *, MIdleFindObserver *) |
CIdleFinder * | NewL(CContactDatabase &, const MDesCArray *, const CContactTextDef *, MIdleFindObserver *, const TCallBack &) |
TBool | ScanForMatchL(const TDesC &, const TDesC &, CFoundMatches *) |
void | Start() |
TBool | doFindL() |
Private Member Enumerations | |
---|---|
enum | TAsyncFindState { EFindInBlobFinished = 0x00000001, EFindInIdentityFinished = 0x00000002, EFindInEmailFinished = 0x00000004, EFindInTextDefFinished = 0x00000008 } |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Inherited Attributes | |
---|---|
CActive::iStatus | |
CIdle::iCallBack |
CIdleFinder | ( | CContactDatabase & | aContactDatabase, |
const CContactItemFieldDef * | aFieldDef, | ||
const CContactTextDef * | aTextDef, | ||
MIdleFindObserver * | aObserver | ||
) | [private] |
CContactDatabase & aContactDatabase | |
const CContactItemFieldDef * aFieldDef | |
const CContactTextDef * aTextDef | |
MIdleFindObserver * aObserver |
TBool | CheckFindL | ( | TContactItemId | aContactId | ) | const [private] |
TContactItemId aContactId |
void | ConstructL | ( | const TDesC * | aText, |
const MDesCArray * | aFindWords, | |||
const TCallBack * | aWordParserCallback | |||
) | [private] |
void | DoCancel | ( | ) | [private, virtual] |
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().
CIdleFinder * | NewL | ( | CContactDatabase & | aContactDatabase, |
const TDesC & | aText, | |||
const CContactItemFieldDef * | aFieldDef, | |||
MIdleFindObserver * | aObserver | |||
) | [private, static] |
CContactDatabase & aContactDatabase | |
const TDesC & aText | |
const CContactItemFieldDef * aFieldDef | |
MIdleFindObserver * aObserver |
CIdleFinder * | NewL | ( | CContactDatabase & | aContactDatabase, |
const MDesCArray * | aFindWords, | |||
const CContactTextDef * | aTextDef, | |||
MIdleFindObserver * | aObserver, | |||
const TCallBack & | aWordParserCallback | |||
) | [private, static] |
CContactDatabase & aContactDatabase | |
const MDesCArray * aFindWords | |
const CContactTextDef * aTextDef | |
MIdleFindObserver * aObserver | |
const TCallBack & aWordParserCallback |
TBool | ScanForMatchL | ( | const TDesC & | aFieldText, |
const TDesC & | aFindText, | |||
CFoundMatches * | aFoundMatches | |||
) | const [private] |
EFindInBlobFinished = 0x00000001 | |
EFindInIdentityFinished = 0x00000002 | |
EFindInEmailFinished = 0x00000004 | |
EFindInTextDefFinished = 0x00000008 |