Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
2 * Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
20 #if !defined(__EIKTXLBM_H__)
21 #define __EIKTXLBM_H__
23 #if !defined(__EIKLBM_H__)
28 * Text list box model.
30 class CTextListBoxModel : public CBase, public MTextListBoxModel
34 * Default constructor.
36 IMPORT_C CTextListBoxModel();
41 IMPORT_C virtual ~CTextListBoxModel();
44 * Gets the number of text items in this list box model.
45 * @return The number of text items.
47 IMPORT_C virtual TInt NumberOfItems() const;
50 * Gets an array of strings for incremental matching of
51 * typed characters. For the text list box model, these
52 * strings are those that are displayed (see ItemText()).
54 * @return A text array for matching.
56 IMPORT_C virtual const MDesCArray* MatchableTextArray() const;
59 * Gets the text to be displayed in the list box control
60 * for the specified item.
62 * @param aItemIndex Index of an item.
63 * @return Text string to be displayed.
65 IMPORT_C virtual TPtrC ItemText( TInt aItemIndex ) const;
68 * Second-phase constructor.
70 * This function completes construction of a
71 * default-constructed CTextListBoxModel, initialising any
72 * members which are stored on the heap. Whether ownership of
73 * the array is taken depends on the value of the
74 * TListBoxModelItemArrayOwnership enum.
76 * @param aItemTextArray The item array.
77 * @param aOwnershipType Whether or not to take ownership of the array.
79 IMPORT_C virtual void ConstructL( MDesCArray* aItemTextArray = NULL,
80 TListBoxModelItemArrayOwnership aOwnershipType = ELbmOwnsItemArray );
83 * Sets a new text item array. Panics if aItemTextArray is NULL.
85 * @param aItemTextArray New item text array.
87 IMPORT_C void SetItemTextArray( MDesCArray* aItemTextArray );
90 * Sets the item array ownership type.
92 * @param aOwnershipType Item array ownership.
94 IMPORT_C void SetOwnershipType( TListBoxModelItemArrayOwnership aOwnershipType );
97 * The array of text items modelled by this text list box model.
99 * @return A pointer to the array.
101 IMPORT_C MDesCArray* ItemTextArray() const;
105 * Gets the item array ownership type.
107 * @return Item array ownership.
109 IMPORT_C TListBoxModelItemArrayOwnership ItemArrayOwnershipType() const;
111 private: // from MListBoxModel
112 IMPORT_C virtual TAny* MListBoxModel_Reserved();
116 * The array of text items modelled by this text list box model.
118 MDesCArray* iItemTextArray;
121 TListBoxModelItemArrayOwnership iItemArrayOwnershipType;