CPbk2IconInfoContainer Class Reference

class CPbk2IconInfoContainer : public CBase

Phonebook 2 icon info container. A collection of Phonebook 2 icon info objects.

Inherits from

Constructor & Destructor Documentation

CPbk2IconInfoContainer()

CPbk2IconInfoContainer ( ) [private, inline]

~CPbk2IconInfoContainer()

~CPbk2IconInfoContainer ( )

Destructor.

Member Functions Documentation

AppendIconL(CPbk2IconInfo *)

IMPORT_C void AppendIconL ( CPbk2IconInfo * aIconInfo )

Appends new icon info. The ownership of the icon info is transferred.

Parameters

CPbk2IconInfo * aIconInfo Icon info to be added to this container.

AppendIconsFromResourceL(TInt)

IMPORT_C void AppendIconsFromResourceL ( TInt aResourceId )

Appends new icon infos from resource. The resource file must be opened before usage.

Parameters

TInt aResourceId Resource id for icon infos to be added.

AppendIconsFromResourceL(TResourceReader &)

IMPORT_C void AppendIconsFromResourceL ( TResourceReader & aReader )

Appends new icon infos to the container.

Parameters

TResourceReader & aReader A resource reader pointed to an array of PBK2_ICON_INFO resource structures.

ConstructL(TResourceReader &)

void ConstructL ( TResourceReader & aReader ) [private]

Parameters

TResourceReader & aReader

ConstructL()

void ConstructL ( ) [private]

Find(const TPbk2IconId &)

IMPORT_C const CPbk2IconInfo * Find ( const TPbk2IconId & aIconId ) const

Finds a particular icon info from the container.

Parameters

const TPbk2IconId & aIconId The id of the icon to search for.

FindInfo(const TPbk2IconId &)

TInt FindInfo ( const TPbk2IconId & aIconId ) const [private]

Parameters

const TPbk2IconId & aIconId

NewL(TResourceReader &)

IMPORT_C CPbk2IconInfoContainer * NewL ( TResourceReader & aReader ) [static]

Creates a new instance of this class.

Parameters

TResourceReader & aReader Resource reader pointed to an array of PBK2_ICON_INFO resources.

NewL(TInt, CCoeEnv *)

IMPORT_C CPbk2IconInfoContainer * NewL ( TInt aResourceId,
CCoeEnv * aCoeEnv = NULL
) [static]

Creates a new instance of this class.

Parameters

TInt aResourceId Resource id of an array of PBK2_ICON_INFO resources. The resource file must be open before usage.
CCoeEnv * aCoeEnv = NULL Optional CCoeEnv instance. This function performs faster if this parameter is provided.

NewL()

IMPORT_C CPbk2IconInfoContainer * NewL ( ) [static]

Creates a new instance of this class.

Member Data Documentation

RPointerArray< CPbk2IconInfo > iInfoArray

RPointerArray < CPbk2IconInfo > iInfoArray [private]

CDesCArrayFlat * iMbmFileNames

CDesCArrayFlat * iMbmFileNames [private]