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_C CAknGridM ( )

Default C++ constructor.

~CAknGridM()

IMPORT_C ~CAknGridM ( ) [virtual]

Destructor.

Member Functions Documentation

IndexContainsData(TInt)

IMPORT_C TBool IndexContainsData ( TInt aDataIndex ) const [virtual]

Tests if the given cell index has data.

Parameters

TInt aDataIndex Index to the item to be checked.

IndexOfFirstDataItem()

IMPORT_C TInt IndexOfFirstDataItem ( ) const

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

IndexOfLastDataItem()

IMPORT_C TInt IndexOfLastDataItem ( ) const

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

ItemText(TInt)

IMPORT_C TPtrC ItemText ( TInt aItemIndex ) 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 aItemIndex Index of the grid.

NumberOfData()

IMPORT_C TInt NumberOfData ( ) const [virtual]

Gives the number of data cells in the grid.

NumberOfItems()

IMPORT_C TInt NumberOfItems ( ) const [virtual]

Access to the number of items in the arrays.

SetStartCells(TInt)

IMPORT_C void SetStartCells ( TInt aNumEmpty )

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

Parameters

TInt aNumEmpty Number of empty cells.

Member Data Documentation

TInt iEmptyCellsAtEnd

TInt iEmptyCellsAtEnd [private]

TInt iEmptyCellsAtStart

TInt iEmptyCellsAtStart [private]

TInt iSpare

TInt iSpare [private]