CAknsImageTableItemData Class Reference

class CAknsImageTableItemData : public CAknsImageItemData

Icon table item data. Icon table item data contains (in addition to base class members), an array containing item IDs of images. Item type for image table item data objects is always EAknsITImageTable.

This is a public class with exported functions. The class is not intended for derivation outside the library.

AknSkins.lib

Since
2.0

Inherits from

Constructor & Destructor Documentation

CAknsImageTableItemData(const TAknsItemType)

CAknsImageTableItemData(const TAknsItemTypeaType)[protected]

C++ protected constructor. Constructs a new CAknsImageTableItemData without an array.

Parameters

const TAknsItemType aTypeItem type of the new item data object. While this is always EAknsITImageTable for instances of this class, derived classes may specify another value.

~CAknsImageTableItemData()

~CAknsImageTableItemData()[virtual]

Destructor. Destroys image array.

Member Functions Documentation

ImageIID(const TInt)

IMPORT_C TAknsItemIDImageIID(const TIntaIndex)const

Returns the item ID of an image.

Since
2.0

Parameters

const TInt aIndexIndex of the image. This value must be within 0 (inclusive) and NumberOfImages (exclusive).

Images()

IMPORT_C TAknsItemID *Images()const

Returns pointer to the first entry in the image array, owned by this object.

Since
2.0

NewL()

IMPORT_C CAknsImageTableItemData *NewL()[static]

Two-phased constructor. Constructs a new CAknsImageTableItemData object. Values must be set separately using SetImagesL.

Exceptions:
If allocation fails, function leaves with a system-wide error code.

NumberOfImages()

IMPORT_C TIntNumberOfImages()const

Returns the number of images.

Since
2.0

SetImagesL(const TInt, const TAknsItemID *)

IMPORT_C voidSetImagesL(const TIntaNumberOfImages,
const TAknsItemID *aImages
)

Sets image table values for this item data instance.

Since
2.0

Parameters

const TInt aNumberOfImagesNumber of images in aImages.
const TAknsItemID * aImagesPointer to first image ID. Values are copied into an internal array.

Member Data Documentation

TAknsItemID * iImageArray

TAknsItemID *iImageArray[protected]

TInt iNumberOfImages

TInt iNumberOfImages[protected]