CTextListBoxModel Class Reference

#include <mw/eiktxlbm.h>

class CTextListBoxModel : public CBase

Inherits from

  • CTextListBoxModel

    Detailed Description

    Text list box model.

    Member Attribute Documentation

    iItemTextArray

    MDesCArray *iItemTextArray[protected]

    The array of text items modelled by this text list box model.

    Constructor & Destructor Documentation

    CTextListBoxModel ( )

    IMPORT_CCTextListBoxModel()

    Default constructor.

    ~CTextListBoxModel ( )

    IMPORT_C~CTextListBoxModel()[virtual]

    destructor

    Member Function Documentation

    ConstructL ( MDesCArray *, TListBoxModelItemArrayOwnership )

    IMPORT_C voidConstructL(MDesCArray *aItemTextArray = NULL,
    TListBoxModelItemArrayOwnershipaOwnershipType = 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.

    ParameterDescription
    aItemTextArrayThe item array.
    aOwnershipTypeWhether or not to take ownership of the array.

    ItemArrayOwnershipType ( )

    IMPORT_C TListBoxModelItemArrayOwnershipItemArrayOwnershipType()const [protected]

    Gets the item array ownership type.

    Returns: Item array ownership.

    ItemText ( TInt )

    IMPORT_C TPtrCItemText(TIntaItemIndex)const [virtual]

    Gets the text to be displayed in the list box control for the specified item.

    ParameterDescription
    aItemIndexIndex of an item.

    Returns: Text string to be displayed.

    ItemTextArray ( )

    IMPORT_C MDesCArray *ItemTextArray()const

    The array of text items modelled by this text list box model.

    Returns: A pointer to the array.

    MatchableTextArray ( )

    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()).

    Returns: A text array for matching.

    NumberOfItems ( )

    IMPORT_C TIntNumberOfItems()const [virtual]

    Gets the number of text items in this list box model.

    Returns: The number of text items.

    SetItemTextArray ( MDesCArray * )

    IMPORT_C voidSetItemTextArray(MDesCArray *aItemTextArray)

    Sets a new text item array. Panics if aItemTextArray is NULL.

    ParameterDescription
    aItemTextArrayNew item text array.

    SetOwnershipType ( TListBoxModelItemArrayOwnership )

    IMPORT_C voidSetOwnershipType(TListBoxModelItemArrayOwnershipaOwnershipType)

    Sets the item array ownership type.

    ParameterDescription
    aOwnershipTypeItem array ownership.