| class CTextListBoxModel : public CBase |
Text list box model.
| Public Member Functions | |
|---|---|
| CTextListBoxModel() | |
| ~CTextListBoxModel() | |
| IMPORT_C void | ConstructL(MDesCArray *, TListBoxModelItemArrayOwnership) |
| IMPORT_C TPtrC | ItemText(TInt) |
| IMPORT_C MDesCArray * | ItemTextArray() |
| IMPORT_C const MDesCArray * | MatchableTextArray() |
| IMPORT_C TInt | NumberOfItems() |
| IMPORT_C void | SetItemTextArray(MDesCArray *) |
| IMPORT_C void | SetOwnershipType(TListBoxModelItemArrayOwnership) |
| Protected Member Functions | |
|---|---|
| IMPORT_C TListBoxModelItemArrayOwnership | ItemArrayOwnershipType() |
| Private Member Functions | |
|---|---|
| IMPORT_C TAny * | MListBoxModel_Reserved() |
| Protected Attributes | |
|---|---|
| MDesCArray * | iItemTextArray |
| Private Attributes | |
|---|---|
| TListBoxModelItemArrayOwnership | iItemArrayOwnershipType |
| IMPORT_C void | ConstructL | ( | MDesCArray * | aItemTextArray = NULL, |
| TListBoxModelItemArrayOwnership | aOwnershipType = ELbmOwnsItemArray | |||
| ) | [virtual] | |||
Second-phase constructor.
This function completes construction of a default-constructed CTextListBoxModel, initialising any members which are stored on the heap. Whether ownership of the array is taken depends on the value of the TListBoxModelItemArrayOwnership enum.
| MDesCArray * aItemTextArray = NULL | The item array. |
| TListBoxModelItemArrayOwnership aOwnershipType = ELbmOwnsItemArray | Whether or not to take ownership of the array. |
| IMPORT_C TListBoxModelItemArrayOwnership | ItemArrayOwnershipType | ( | ) | const [protected] |
Gets the item array ownership type.
Item array ownership.
| IMPORT_C TPtrC | ItemText | ( | TInt | aItemIndex | ) | const [virtual] |
Gets the text to be displayed in the list box control for the specified item.
Text string to be displayed.
| TInt aItemIndex | Index of an item. |
| IMPORT_C MDesCArray * | ItemTextArray | ( | ) | const |
The array of text items modelled by this text list box model.
A pointer to the array.
| IMPORT_C const MDesCArray * | MatchableTextArray | ( | ) | const [virtual] |
Gets an array of strings for incremental matching of typed characters. For the text list box model, these strings are those that are displayed (see ItemText()).
A text array for matching.
| IMPORT_C TInt | NumberOfItems | ( | ) | const [virtual] |
Gets the number of text items in this list box model. The number of text items.
| IMPORT_C void | SetItemTextArray | ( | MDesCArray * | aItemTextArray | ) |
Sets a new text item array. Panics if aItemTextArray is NULL.
| MDesCArray * aItemTextArray | New item text array. |
| IMPORT_C void | SetOwnershipType | ( | TListBoxModelItemArrayOwnership | aOwnershipType | ) |
Sets the item array ownership type.
| TListBoxModelItemArrayOwnership aOwnershipType | Item array ownership. |
| TListBoxModelItemArrayOwnership | iItemArrayOwnershipType | [private] |