Location:
eiktxlbm.h
Link against:
eikcoctl.lib
CTextListBoxModel
Supported from 6.0
Text list box data.
|
Defined in CTextListBoxModel
:
CTextListBoxModel()
, ConstructL()
, ELbmDoesNotOwnItemArray
, ELbmOwnsItemArray
, ItemArrayOwnershipType()
, ItemText()
, ItemTextArray()
, MatchableTextArray()
, NumberOfItems()
, SetItemTextArray()
, SetOwnershipType()
, TListBoxModelItemArrayOwnership
, iItemTextArray
, ~CTextListBoxModel()
Inherited from CBase
:
operator new()
virtual void ConstructL(MDesCArray* aItemTextArray=NULL, TListBoxModelItemArrayOwnership aOwnershipType = ELbmOwnsItemArray);
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.
|
virtual ~CTextListBoxModel();
Destructor.
The function destroys this model, deleting the item array if ownership was set.
Appropriate implementations of the virtual member functions defined in MListBoxModel
and MTextListBoxModel
.
virtual TPtrC ItemText(TInt aItemIndex) const;
Gets the text to be displayed in the list box control for the specified item.
|
|
virtual TInt NumberOfItems() const;
Gets the number of text items in this list box model.
|
virtual const MDesCArray* MatchableTextArray() const;
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()
above).
|
void SetItemTextArray(MDesCArray* aItemTextArray);
Sets a new text item array. Panics if aItemTextArray
is NULL.
|
MDesCArray* ItemTextArray() const;
Gets the text item array.
|
void SetOwnershipType(TListBoxModelItemArrayOwnership aOwnershipType);
Sets the item array ownership type.
|
protected: TListBoxModelItemArrayOwnership ItemArrayOwnershipType() const;
Gets the item array ownership type.
|
protected: MDesCArray* iItemTextArray
The array of text items modelled by this text list box model.
TListBoxModelItemArrayOwnership
List box item array ownership flags. These values are used to describe whether or not a list box model owns an item array.
|