MVPbkContactFindPolicy Class Reference

class MVPbkContactFindPolicy

Virtual Phonebook contact find policy interface.

Constructor & Destructor Documentation

~MVPbkContactFindPolicy()

~MVPbkContactFindPolicy ( ) [inline, virtual]

Virtual destructor.

Member Functions Documentation

ContactFindPolicyExtension(TUid)

TAny * ContactFindPolicyExtension ( TUid ) [inline, virtual]

Returns an extension point for this interface or NULL.

Parameters

TUid

IsWordValidForMatching(const TDesC &)

TBool IsWordValidForMatching ( const TDesC & aWord ) [pure virtual]

Checks whether the specified text is valid for matching.

Parameters

const TDesC & aWord The text to check.

Match(const TDesC &, const TDesC &)

TBool Match ( const TDesC & aText,
const TDesC & aSearchString
) [pure virtual]

Checks whether the specified text matches with the specified search string.

Parameters

const TDesC & aText The text to check.
const TDesC & aSearchString Search string.

MatchContactNameL(const MDesCArray &, const MVPbkBaseContact &)

TBool MatchContactNameL ( const MDesCArray & aFindWords,
const MVPbkBaseContact & aContact
) [pure virtual]

This is a higer level matching service. Matches contact name to the find words according to the S60 Phonebook rules.

Exceptions
KErrNotSupported

if the implementation has been constructed only for low level functionality. See construction of CVPbkContactFindPolicy.h

Parameters

const MDesCArray & aFindWords The array of find words.
const MVPbkBaseContact & aContact The contact for matching.

MatchRefineL(const TDesC &, const TDesC &)

TBool MatchRefineL ( const TDesC & aText,
const TDesC & aSearchString
) [pure virtual]

Checks whether the specified text matches partially with the specified search string. In other words, this method processes pattern matching with the strings.

Parameters

const TDesC & aText The word to test.
const TDesC & aSearchString Search string.