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. S60 0.9
Public Member Functions | |
---|---|
~CAknFilteredTextListBoxModel() | |
IMPORT_C void | CreateFilterL(CEikListBox *, CAknSearchField *) |
IMPORT_C CAknListBoxFilterItems * | Filter() |
IMPORT_C TPtrC | ItemText(TInt) |
IMPORT_C const MDesCArray * | MatchableTextArray() |
IMPORT_C TInt | NumberOfItems() |
IMPORT_C void | RemoveFilter() |
Private Member Functions | |
---|---|
IMPORT_C TAny * | MListBoxModel_Reserved() |
IMPORT_C TInt | MdcaCount() |
IMPORT_C TPtrC | MdcaPoint(TInt) |
Private Attributes | |
---|---|
CAknListBoxFilterItems * | iFilter |
Inherited Attributes | |
---|---|
CTextListBoxModel::iItemTextArray |
IMPORT_C void | CreateFilterL | ( | CEikListBox * | aListBox, |
CAknSearchField * | aSearchField | |||
) |
Creates a CAknListBoxFilterItems and thus enables filtering of list items.
CEikListBox * aListBox | List box from which one or more items can be selected. |
CAknSearchField * aSearchField | Search field control. |
IMPORT_C CAknListBoxFilterItems * | Filter | ( | ) | const |
Access function for the filter. Pointer to the listbox filter.
IMPORT_C TPtrC | ItemText | ( | TInt | aItemIndex | ) | const [virtual] |
Returns the text of the specified item. The text of item in given index.
TInt aItemIndex | Index to the item. |
IMPORT_C const MDesCArray * | MatchableTextArray | ( | ) | const [virtual] |
Implementation of CTextListBoxModel::MatchableTextArray() Pointer to the text array.
IMPORT_C TInt | NumberOfItems | ( | ) | const [virtual] |
Implementation of CTextListBoxModel::NumberOfItems() The number of items the list box has.