CAknsImageTableItemData Class Reference
#include
<mw/AknsItemData.h>
Link against: AknSkins.lib
class CAknsImageTableItemData : public CAknsImageItemData |
Detailed Description
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.
Member Attribute Documentation
iNumberOfImages
TInt
| iNumberOfImages | [protected] |
Constructor & Destructor Documentation
CAknsImageTableItemData ( const TAknsItemType )
Parameter | Description | 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 Function Documentation
ImageIID ( const TInt )
Returns the item ID of an image.
Parameter | Description | aIndex | Index of the image. This value must be within 0 (inclusive) and NumberOfImages (exclusive). |
Returns: Item ID of the image.
Images ( )
Returns pointer to the first entry in the image array, owned by this object.
Returns: Pointer to TAknsItemID.
NewL ( )
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.
Returns: Newly constructed CAknsImageTableItemData object.
NumberOfImages ( )
IMPORT_C TInt | NumberOfImages | ( | ) | const |
Returns the number of images.
Returns: Number of images as an integer.
SetImagesL ( const TInt, const TAknsItemID * )
IMPORT_C void | SetImagesL | ( | const TInt | aNumberOfImages, |
| const TAknsItemID * | aImages |
| ) | |
Sets image table values for this item data instance.
Parameter | Description | aNumberOfImages | Number of images in aImages. |
aImages | Pointer to first image ID. Values are copied into an internal array. |