MLmkSelectorIconMgr Class Reference

class MLmkSelectorIconMgr

Member Functions Documentation

GetDefaultIconL(TIconType)

TInt GetDefaultIconL ( TIconType aIcon ) [pure virtual]

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

Parameters

TIconType aIcon icon type.

GetIconL(const TDesC &, TInt)

TInt GetIconL ( const TDesC & aMbmFileName,
TInt aIconIdInFile
) [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 & aMbmFileName icon file name
TInt aIconIdInFile id number of icon in file

ResetMgrL()

void ResetMgrL ( ) [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)

void SetDefaultIconL ( TIconType aIcon,
const TDesC & aMbmFileName,
TInt aIconIdInFile
) [pure virtual]

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

Parameters

TIconType aIcon type of the icon
const TDesC & aMbmFileName icon file name
TInt aIconIdInFile id number of icon in file

Member Enumerations Documentation

Enum TIconType

Enumerators

EDefinedIcon = 0
ELandmarkDefaultIcon
ECategoryDefaultIcon
ERestaurantDefaultIcon
EBusStopDefaultIcon