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 TAknsItemType aType ) [protected]

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

Parameters

const TAknsItemType aType Item 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 TAknsItemID ImageIID ( const TInt aIndex ) const

Returns the item ID of an image.

Since
2.0

Parameters

const TInt aIndex Index 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 TInt NumberOfImages ( ) const

Returns the number of images.

Since
2.0

SetImagesL(const TInt, const TAknsItemID *)

IMPORT_C void SetImagesL ( const TInt aNumberOfImages,
const TAknsItemID * aImages
)

Sets image table values for this item data instance.

Since
2.0

Parameters

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

Member Data Documentation

TAknsItemID * iImageArray

TAknsItemID * iImageArray [protected]

TInt iNumberOfImages

TInt iNumberOfImages [protected]