CIdleFinder Class Reference
class CIdleFinder : public CIdle |
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() |
Constructor & Destructor Documentation
CIdleFinder(CContactDatabase &, const CContactItemFieldDef *, const CContactTextDef *, MIdleFindObserver *)
Member Functions Documentation
CallbackL(TAny *)
TInt
| CallbackL | ( | TAny * | aSelf | ) | [private, static] |
CheckFindL(TContactItemId)
Use the client supplied "find words parser" to check for a match of the "find
words" within the text fields in the given Contact Item.
CheckFindL()
TBool
| CheckFindL | ( | ) | const [private] |
ConstructL(const TDesC *, const MDesCArray *, const TCallBack *)
void | ConstructL | ( | const TDesC * | aText, |
| const MDesCArray * | aFindWords, |
| const TCallBack * | aWordParserCallback |
| ) | [private] |
Initialise and start the asynchronous find.
Parameters
const TDesC * aText | |
const MDesCArray * aFindWords | |
const TCallBack * aWordParserCallback | |
DoCancel()
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().
CActive::Cancel
Error()
IMPORT_C TInt | Error | ( | ) | const |
Get the last asynchronous find error.
IsComplete()
IMPORT_C TBool | IsComplete | ( | ) | const |
Determine if the asynchronous find is complete.
NewL(CContactDatabase &, const TDesC &, const CContactItemFieldDef *, MIdleFindObserver *)
CIdleFinder object factory. This form of NewL() should be used when performing an asynchronous find using text and a field definition.
NewL(CContactDatabase &, const MDesCArray *, const CContactTextDef *, MIdleFindObserver *, const TCallBack &)
CIdleFinder object factory. This form of NewL() should be used when performing an asynchronous find using "find words"/"find words parser" and a text definition.
ScanForMatchL(const TDesC &, const TDesC &, CFoundMatches *)
TBool
| ScanForMatchL | ( | const TDesC & | aFieldText, |
| const TDesC & | aFindText, |
| CFoundMatches * | aFoundMatches |
| ) | const [private] |
Parameters
const TDesC & aFieldText | |
const TDesC & aFindText | |
CFoundMatches * aFoundMatches | |
Start()
Set the CIdle object going.
TakeContactIds()
Get and take ownership of the Contact IDs.
doFindL()
CIdle callback method. Makes an IPC call into the Server to perform a find iteration.
On return from the find iteration from the Server if "find words" were specified when initialising the find then the client supplied "find words
parser" is invoked to search the returned Contact IDs. The search cannot be performed on the server because it is not possible to provide the client supplied callback to the server.
Member Enumerations Documentation
Enum TAsyncFindState
Enumerators
EFindInBlobFinished = 0x00000001 | |
EFindInIdentityFinished = 0x00000002 | |
EFindInEmailFinished = 0x00000004 | |
EFindInTextDefFinished = 0x00000008 | |
Member Data Documentation
CContactDatabase * iContactDatabase
const CContactItemFieldDef * iFieldDef
CContactIdArray * iIdsFound
MIdleFindObserver * iObserver
TInt
iReserved10
TInt
| iReserved10 | [private] |
const CContactTextDef * iTextDef
TCallBack
iWordParserCallback
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.