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 void CreateFilterL ( CEikListBox * aListBox,
CAknSearchField * aSearchField
)

Creates a CAknListBoxFilterItems and thus enables filtering of list items.

Parameters

CEikListBox * aListBox List box from which one or more items can be selected.
CAknSearchField * aSearchField Search field control.

Filter()

IMPORT_C CAknListBoxFilterItems * Filter ( ) const

Access function for the filter.

ItemText(TInt)

IMPORT_C TPtrC ItemText ( TInt aItemIndex ) const [virtual]

Returns the text of the specified item.

Parameters

TInt aItemIndex Index to the item.

MListBoxModel_Reserved()

IMPORT_C TAny * MListBoxModel_Reserved ( ) [private, virtual]

MatchableTextArray()

IMPORT_C const MDesCArray * MatchableTextArray ( ) const [virtual]

MdcaCount()

IMPORT_C TInt MdcaCount ( ) const [private]

MdcaPoint(TInt)

IMPORT_C TPtrC MdcaPoint ( TInt aIndex ) const [private]

Parameters

TInt aIndex

NumberOfItems()

IMPORT_C TInt NumberOfItems ( ) const [virtual]

RemoveFilter()

IMPORT_C void RemoveFilter ( )

removes previously added filter from model

Member Data Documentation

CAknListBoxFilterItems * iFilter

CAknListBoxFilterItems * iFilter [private]