CAknIconManager Class Reference

class CAknIconManager : public CBase

Inherits from

Public Member Functions
~CAknIconManager()
TInt BitmapId()
TInt Check(const TSize &, TScaleMode, TInt)
voidDestroyIconData()
voidDisableCompression()
voidExcludeFromCache()
TInt GetContentDimensions(TAknContentDimensions &)
voidGetFileName(TDes &)
voidGetFullFileName(TDes &)
voidGetFullMifFileName(TDes &)
TRgb GetIconColor()
voidGetInitializedParams(TAknIconParams &)
TInt IconIdToIndex(TInt)
TInt InitializeIcon(const TSize &, TScaleMode)
TInt InitializeIcon(const TSize &, TScaleMode, TInt)
TBool IsCompressionDisabled()
TBool IsDefaultIconDirUsed()
TBool IsExcludedFromCache()
TBool IsMbmIcon()
TInt MaskId()
CAknIconManager *NewL(const TDesC &, const TInt16, const TInt16)
voidPreinitializeIconL()
voidPreserveIconData()
voidRef()
TInt ScaleMode()
voidSetBitmap(CAknBitmap *)
voidSetDefaultIconDirUsed()
voidSetIconColor(const TRgb)
voidSetInitializedParams(const TAknIconParams &)
voidSetMask(CAknBitmap *)
voidSetObserver(MAknIconObserver *)
voidUnref(const CAknBitmap &)
Protected Member Functions
CAknIconManager()
voidClearDisableCompressionCleanUp()
voidClearIconDataPreserved()
TBool GetAppIcon()
voidInitIconFileNameL(const TDesC &)
TBool IsAnimated()
TBool IsAppIcon()
TBool IsCompressionDisabledCleanUp()
TBool IsFileExtRemoved()
TBool IsIconDataPreserved()
voidReleaseFileHandle()
voidSetAnimated()
voidSetAppIcon(TBool)
voidSetDisableCompressionCleanUp()
voidSetFileExtRemoved()
voidSetIconDataPreserved()
Private Member Functions
voidAppendFileExtension(TDes &)
voidBitmapChanged()
voidChangeFileExtension(TDes &)
voidCleanupReleaseFileHandle(TAny *)
voidConstructL(const TDesC &, const TInt16, const TInt16)
voidDeleteIconFormatHandler()
voidDoInitializeIconL(const TSize &, TScaleMode, TInt)
RFile *FileHandleL(MAknIconFileProvider::TIconFileType)
RFile *FileHandleL()
voidGetContentDimensionsL(TAknContentDimensions &)
voidHandleError(TInt)
TBool HasValidFileExtension(const TDesC &)
voidInitializeAnimatedIconL(const TAknIconParams &)
voidInitializeIconL(const TSize &, TScaleMode, TInt)
voidLoadBitmapIconL()
voidLoadIconLocationInfoL(const TDesC &)
voidLoadIfBitmapIconL()
voidPrepareAnimatedIconL(TBool)
CAknIconLoader *PrepareAnimatedIconLC()
voidRetrieveIconLocationInfoL()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Protected Member Enumerations
enumTFlags {
EFlagUsesDefaultIconDir = 0x0001, EFlagIconDataPreserved = 0x0002, EFlagAnimated = 0x0004, EFlagFileExtRemoved = 0x0008, EFlagExcludeFromCache = 0x0010, EFlagDisableCompression = 0x0020, EFlagDisableCompressionCleanUp = 0x0040
}
Protected Attributes
TBool iAppIcon
CAknBitmap *iBitmap
TInt16 iBitmapId
TRgb iColor
TAknContentDimensions iContentDimensions
HBufC *iFileName
TInt iFlags
MAknIconFormatHandler *iHandler
TInt iInitializedAngle
TRgb iInitializedColor
TInt iInitializedMode
TSize iInitializedSize
TSize iLoadedSize
CAknBitmap *iMask
TInt16 iMaskId
MAknIconObserver *iObserver
TInt16 iOriginalMaskId
TInt iRefCount

Constructor & Destructor Documentation

CAknIconManager()

CAknIconManager()[protected]

C++ default constructor.

~CAknIconManager()

~CAknIconManager()

Destructor.

Member Functions Documentation

AppendFileExtension(TDes &)

voidAppendFileExtension(TDes &aFileName)const [private]

Parameters

TDes & aFileName

BitmapChanged()

voidBitmapChanged()[private]

BitmapId()

TInt BitmapId()const [inline]

ChangeFileExtension(TDes &)

voidChangeFileExtension(TDes &aFileName)const [private]

Parameters

TDes & aFileName

Check(const TSize &, TScaleMode, TInt)

TInt Check(const TSize &aSize,
TScaleModeaMode,
TIntaAngle = 0
)

Parameters

const TSize & aSize
TScaleMode aMode
TInt aAngle = 0

CleanupReleaseFileHandle(TAny *)

voidCleanupReleaseFileHandle(TAny *aParam)[private, static]

Cleanup function that calls ReleaseFileHandle.

Parameters

TAny * aParam

ClearDisableCompressionCleanUp()

voidClearDisableCompressionCleanUp()[protected, inline]

ClearIconDataPreserved()

voidClearIconDataPreserved()[protected, inline]

ConstructL(const TDesC &, const TInt16, const TInt16)

voidConstructL(const TDesC &aFileName,
const TInt16aBitmapId,
const TInt16aMaskId
)[private]

2nd phase constructor.

Parameters

const TDesC & aFileName
const TInt16 aBitmapId
const TInt16 aMaskId

DeleteIconFormatHandler()

voidDeleteIconFormatHandler()[private, inline]

DestroyIconData()

voidDestroyIconData()

DisableCompression()

voidDisableCompression()[inline]

DoInitializeIconL(const TSize &, TScaleMode, TInt)

voidDoInitializeIconL(const TSize &aSize,
TScaleModeaMode,
TIntaAngle
)[private, virtual]

Initializes the icon with the given parameters.

Parameters

const TSize & aSize
TScaleMode aMode
TInt aAngle

ExcludeFromCache()

voidExcludeFromCache()[inline]

FileHandleL(MAknIconFileProvider::TIconFileType)

RFile *FileHandleL(MAknIconFileProvider::TIconFileTypeaType)[private, virtual]

Returns opened file handle to the icon file, if such is supplied by the client.

FileHandleL()

RFile *FileHandleL()[private]

GetAppIcon()

TBool GetAppIcon()const [protected, inline]

GetContentDimensions(TAknContentDimensions &)

TInt GetContentDimensions(TAknContentDimensions &aContentDimensions)

Parameters

TAknContentDimensions & aContentDimensions

GetContentDimensionsL(TAknContentDimensions &)

voidGetContentDimensionsL(TAknContentDimensions &aContentDimensions)[private]

Parameters

TAknContentDimensions & aContentDimensions

GetFileName(TDes &)

voidGetFileName(TDes &aFileName)const

Parameters

TDes & aFileName

GetFullFileName(TDes &)

voidGetFullFileName(TDes &aFileName)const

Parameters

TDes & aFileName

GetFullMifFileName(TDes &)

voidGetFullMifFileName(TDes &aFileName)const

Parameters

TDes & aFileName

GetIconColor()

TRgb GetIconColor()const

GetInitializedParams(TAknIconParams &)

voidGetInitializedParams(TAknIconParams &aInfo)const [inline]

Parameters

TAknIconParams & aInfo

HandleError(TInt)

voidHandleError(TIntaError)[private]

Parameters

TInt aError

HasValidFileExtension(const TDesC &)

TBool HasValidFileExtension(const TDesC &aFileName)const [private, inline]

Parameters

const TDesC & aFileName

IconIdToIndex(TInt)

TInt IconIdToIndex(TIntaId)const

Parameters

TInt aId

InitIconFileNameL(const TDesC &)

voidInitIconFileNameL(const TDesC &aFileName)[protected]

Parameters

const TDesC & aFileName

InitializeAnimatedIconL(const TAknIconParams &)

voidInitializeAnimatedIconL(const TAknIconParams &aInfo)[private]

Parameters

const TAknIconParams & aInfo

InitializeIcon(const TSize &, TScaleMode)

TInt InitializeIcon(const TSize &aSize,
TScaleModeaMode
)

Parameters

const TSize & aSize
TScaleMode aMode

InitializeIcon(const TSize &, TScaleMode, TInt)

TInt InitializeIcon(const TSize &aSize,
TScaleModeaMode,
TIntaAngle
)

Parameters

const TSize & aSize
TScaleMode aMode
TInt aAngle

InitializeIconL(const TSize &, TScaleMode, TInt)

voidInitializeIconL(const TSize &aSize,
TScaleModeaMode,
TIntaAngle
)[private]

Checks if the icon is already initialized with the given parameters, and if not, initializes it.

Parameters

const TSize & aSize
TScaleMode aMode
TInt aAngle

IsAnimated()

TBool IsAnimated()const [protected, inline]

IsAppIcon()

TBool IsAppIcon()const [protected, inline]

IsCompressionDisabled()

TBool IsCompressionDisabled()const [inline]

IsCompressionDisabledCleanUp()

TBool IsCompressionDisabledCleanUp()const [protected, inline]

IsDefaultIconDirUsed()

TBool IsDefaultIconDirUsed()const [inline]

IsExcludedFromCache()

TBool IsExcludedFromCache()const [inline]

IsFileExtRemoved()

TBool IsFileExtRemoved()const [protected, inline]

IsIconDataPreserved()

TBool IsIconDataPreserved()const [protected, inline]

IsMbmIcon()

TBool IsMbmIcon()const

LoadBitmapIconL()

voidLoadBitmapIconL()[private, virtual]

Loads a bitmap icon.

LoadIconLocationInfoL(const TDesC &)

voidLoadIconLocationInfoL(const TDesC &aFileName)[private]

Parameters

const TDesC & aFileName

LoadIfBitmapIconL()

voidLoadIfBitmapIconL()[private]

Loads icon from MBM file if it is a bitmap icon.

MaskId()

TInt MaskId()const [inline]

NewL(const TDesC &, const TInt16, const TInt16)

CAknIconManager *NewL(const TDesC &aFileName,
const TInt16aBitmapId,
const TInt16aMaskId
)[static]

Parameters

const TDesC & aFileName
const TInt16 aBitmapId
const TInt16 aMaskId

PreinitializeIconL()

voidPreinitializeIconL()

Loads MBM icons. Sets MIF icon handles to valid empty CFbsBitmap handles.

PrepareAnimatedIconL(TBool)

voidPrepareAnimatedIconL(TBoolbAnimationReady = EFalse)[private]

Parameters

TBool bAnimationReady = EFalse

PrepareAnimatedIconLC()

CAknIconLoader *PrepareAnimatedIconLC()[private]

PreserveIconData()

voidPreserveIconData()

Ref()

voidRef()

ReleaseFileHandle()

voidReleaseFileHandle()[protected, virtual]

This is called, when the file handle is no longer required, and should be closed.

RetrieveIconLocationInfoL()

voidRetrieveIconLocationInfoL()[private]

ScaleMode()

TInt ScaleMode()const

SetAnimated()

voidSetAnimated()[protected, inline]

SetAppIcon(TBool)

voidSetAppIcon(TBoolaAppIcon)[protected, inline]

Parameters

TBool aAppIcon

SetBitmap(CAknBitmap *)

voidSetBitmap(CAknBitmap *aBitmap)

Parameters

CAknBitmap * aBitmap

SetDefaultIconDirUsed()

voidSetDefaultIconDirUsed()[inline]

SetDisableCompressionCleanUp()

voidSetDisableCompressionCleanUp()[protected, inline]

SetFileExtRemoved()

voidSetFileExtRemoved()[protected, inline]

SetIconColor(const TRgb)

voidSetIconColor(const TRgbaColor)

Parameters

const TRgb aColor

SetIconDataPreserved()

voidSetIconDataPreserved()[protected, inline]

SetInitializedParams(const TAknIconParams &)

voidSetInitializedParams(const TAknIconParams &aInfo)[inline]

Parameters

const TAknIconParams & aInfo

SetMask(CAknBitmap *)

voidSetMask(CAknBitmap *aMask)

Parameters

CAknBitmap * aMask

SetObserver(MAknIconObserver *)

voidSetObserver(MAknIconObserver *aObserver)

Parameters

MAknIconObserver * aObserver

Unref(const CAknBitmap &)

voidUnref(const CAknBitmap &aBitmap)

Parameters

const CAknBitmap & aBitmap

Member Enumerations Documentation

Enum TFlags

Enumerators

EFlagUsesDefaultIconDir = 0x0001
EFlagIconDataPreserved = 0x0002
EFlagAnimated = 0x0004
EFlagFileExtRemoved = 0x0008
EFlagExcludeFromCache = 0x0010
EFlagDisableCompression = 0x0020
EFlagDisableCompressionCleanUp = 0x0040

Member Data Documentation

TBool iAppIcon

TBool iAppIcon[protected]

CAknBitmap * iBitmap

CAknBitmap *iBitmap[protected]

TInt16 iBitmapId

TInt16 iBitmapId[protected]

TRgb iColor

TRgb iColor[protected]

TAknContentDimensions iContentDimensions

TAknContentDimensions iContentDimensions[protected]

HBufC * iFileName

HBufC *iFileName[protected]

TInt iFlags

TInt iFlags[protected]

MAknIconFormatHandler * iHandler

MAknIconFormatHandler *iHandler[protected]

TInt iInitializedAngle

TInt iInitializedAngle[protected]

TRgb iInitializedColor

TRgb iInitializedColor[protected]

TInt iInitializedMode

TInt iInitializedMode[protected]

TSize iInitializedSize

TSize iInitializedSize[protected]

TSize iLoadedSize

TSize iLoadedSize[protected]

CAknBitmap * iMask

CAknBitmap *iMask[protected]

TInt16 iMaskId

TInt16 iMaskId[protected]

MAknIconObserver * iObserver

MAknIconObserver *iObserver[protected]

TInt16 iOriginalMaskId

TInt16 iOriginalMaskId[protected]

TInt iRefCount

TInt iRefCount[protected]