MVPbkContactFindPolicy Class Reference

class MVPbkContactFindPolicy

Virtual Phonebook contact find policy interface.

Public Member Functions
~MVPbkContactFindPolicy()
TAny *ContactFindPolicyExtension(TUid)
TBool IsWordValidForMatching(const TDesC &)
TBool Match(const TDesC &, const TDesC &)
TBool MatchContactNameL(const MDesCArray &, const MVPbkBaseContact &)
TBool MatchRefineL(const TDesC &, const TDesC &)

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 & aWordThe 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 & aTextThe text to check.
const TDesC & aSearchStringSearch 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 & aFindWordsThe array of find words.
const MVPbkBaseContact & aContactThe 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 & aTextThe word to test.
const TDesC & aSearchStringSearch string.