MLmkSelectorIconMgr Class Reference

class MLmkSelectorIconMgr

Member Functions Documentation

GetDefaultIconL(TIconType)

TInt GetDefaultIconL(TIconTypeaIcon)[pure virtual]

Loads icon based on icon type. Returns KErrNotFound if not available.

Parameters

TIconType aIconicon type.

GetIconL(const TDesC &, TInt)

TInt GetIconL(const TDesC &aMbmFileName,
TIntaIconIdInFile
)[pure virtual]

Loads icon from file to icon array from parameter file and file index. For subsequent calls icon identification data is cached so same index in array is returned without reloading data from file. NOTE: icon mask id must be next from icon id in icon mbg file. Leaves with Symbian error code if error.

Parameters

const TDesC & aMbmFileNameicon file name
TInt aIconIdInFileid number of icon in file

ResetMgrL()

voidResetMgrL()[pure virtual]

Resets icon manager. Resets and destroyes icon array content and deletes all icon manager data, including default icons.

SetDefaultIconL(TIconType, const TDesC &, TInt)

voidSetDefaultIconL(TIconTypeaIcon,
const TDesC &aMbmFileName,
TIntaIconIdInFile
)[pure virtual]

Sets the default icon for a given type. If default icon has already been set this method leaves with KErrAlreadyExists.

Parameters

TIconType aIcontype of the icon
const TDesC & aMbmFileNameicon file name
TInt aIconIdInFileid number of icon in file

Member Enumerations Documentation

Enum TIconType

Enumerators

EDefinedIcon = 0
ELandmarkDefaultIcon
ECategoryDefaultIcon
ERestaurantDefaultIcon
EBusStopDefaultIcon