CAknFilteredTextListBoxModel Class Reference

class CAknFilteredTextListBoxModel : public CTextListBoxModel
This class shows how application should build its model for filtered items. Application should not use this directly, if it has it's own model or if there's any special things needed for MatchableTextArray. Application can derive from this though. All listboxes use CAknFilteredTextListBoxModel by default. CreateFilter() call enables it.
Since
S60 0.9

Inherits from

Constructor & Destructor Documentation

~CAknFilteredTextListBoxModel()

IMPORT_C~CAknFilteredTextListBoxModel()

Destructor.

Member Functions Documentation

CreateFilterL(CEikListBox *, CAknSearchField *)

IMPORT_C voidCreateFilterL(CEikListBox *aListBox,
CAknSearchField *aSearchField
)

Creates a CAknListBoxFilterItems and thus enables filtering of list items.

Parameters

CEikListBox * aListBoxList box from which one or more items can be selected.
CAknSearchField * aSearchFieldSearch field control.

Filter()

IMPORT_C CAknListBoxFilterItems *Filter()const

Access function for the filter.

ItemText(TInt)

IMPORT_C TPtrCItemText(TIntaItemIndex)const [virtual]

Returns the text of the specified item.

Parameters

TInt aItemIndexIndex to the item.

MListBoxModel_Reserved()

IMPORT_C TAny *MListBoxModel_Reserved()[private, virtual]

MatchableTextArray()

IMPORT_C const MDesCArray *MatchableTextArray()const [virtual]

MdcaCount()

IMPORT_C TIntMdcaCount()const [private]

MdcaPoint(TInt)

IMPORT_C TPtrCMdcaPoint(TIntaIndex)const [private]

Parameters

TInt aIndex

NumberOfItems()

IMPORT_C TIntNumberOfItems()const [virtual]

RemoveFilter()

IMPORT_C voidRemoveFilter()

removes previously added filter from model

Member Data Documentation

CAknListBoxFilterItems * iFilter

CAknListBoxFilterItems *iFilter[private]