CAknFilteredTextListBoxModel Class Reference

#include <mw/AknUtils.h>

class CAknFilteredTextListBoxModel : public CTextListBoxModel

Inherits from

Detailed Description

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

Constructor & Destructor Documentation

~CAknFilteredTextListBoxModel ( )

IMPORT_C~CAknFilteredTextListBoxModel()

Destructor.

Member Function Documentation

CreateFilterL ( CEikListBox *, CAknSearchField * )

IMPORT_C voidCreateFilterL(CEikListBox *aListBox,
CAknSearchField *aSearchField
)

Creates a CAknListBoxFilterItems and thus enables filtering of list items.

ParameterDescription
aListBoxList box from which one or more items can be selected.
aSearchFieldSearch field control.

Filter ( )

IMPORT_C CAknListBoxFilterItems *Filter()const

Access function for the filter.

Returns: Pointer to the listbox filter.

ItemText ( TInt )

IMPORT_C TPtrCItemText(TIntaItemIndex)const [virtual]

Reimplemented from CTextListBoxModel::ItemText(TInt)const

Returns the text of the specified item.

ParameterDescription
aItemIndexIndex to the item.

Returns: The text of item in given index.

MatchableTextArray ( )

IMPORT_C const MDesCArray *MatchableTextArray()const [virtual]

Reimplemented from CTextListBoxModel::MatchableTextArray()const

Returns: Pointer to the text array.

NumberOfItems ( )

IMPORT_C TIntNumberOfItems()const [virtual]

Reimplemented from CTextListBoxModel::NumberOfItems()const

Returns: The number of items the list box has.

RemoveFilter ( )

IMPORT_C voidRemoveFilter()

removes previously added filter from model