CAknGridM Class Reference

class CAknGridM : public CTextListBoxModel

Model class to CAknGrid. Usually this class object is instantiated automatically during the construction phase of CAknGrid object.If programmer wants to provide their own model they must instantiate grid model class object of their own and give it to the CAknGrid object using the SetModel function before calling the ConstructL/ConstructFromResourceL function of CAknGrid.

Since
Series60 0.9

Inherits from

Constructor & Destructor Documentation

CAknGridM()

IMPORT_CCAknGridM()

Default C++ constructor.

~CAknGridM()

IMPORT_C~CAknGridM()[virtual]

Destructor.

Member Functions Documentation

IndexContainsData(TInt)

IMPORT_C TBoolIndexContainsData(TIntaDataIndex)const [virtual]

Tests if the given cell index has data.

Parameters

TInt aDataIndexIndex to the item to be checked.

IndexOfFirstDataItem()

IMPORT_C TIntIndexOfFirstDataItem()const

Gets the index of the first data item in the model.

IndexOfLastDataItem()

IMPORT_C TIntIndexOfLastDataItem()const

Gets the index of the last data item in the model.

ItemText(TInt)

IMPORT_C TPtrCItemText(TIntaItemIndex)const [virtual]

Gets the text of given index. No check is made that the item index given is a valid grid index. A check should be made using IndexContainsData before the function is called. Empty cells at the start should be taken in account of the index given.

Parameters

TInt aItemIndexIndex of the grid.

NumberOfData()

IMPORT_C TIntNumberOfData()const [virtual]

Gives the number of data cells in the grid.

NumberOfItems()

IMPORT_C TIntNumberOfItems()const [virtual]

Access to the number of items in the arrays.

SetStartCells(TInt)

IMPORT_C voidSetStartCells(TIntaNumEmpty)

This function sets the number of empty data cells at the start of the grid.

Parameters

TInt aNumEmptyNumber of empty cells.

Member Data Documentation

TInt iEmptyCellsAtEnd

TInt iEmptyCellsAtEnd[private]

TInt iEmptyCellsAtStart

TInt iEmptyCellsAtStart[private]

TInt iSpare

TInt iSpare[private]