CAknIconArray Class Reference

class CAknIconArray : public CArrayPtrFlat< CGulIcon >

Icon array helper class. Extends CArrayPtrFlat<CGulIcon> to make it easier to load icons for a listbox. This class IS-A CArrayPtrFlat<CGulIcon>, but owns the CGulIcons it contains for leave-safety.

Public Member Functions
CAknIconArray(TInt)
~CAknIconArray()
IMPORT_C voidAppendFromResourceL(TInt)
IMPORT_C voidAppendFromResourceL(TResourceReader &)
IMPORT_C voidConstructFromResourceL(TInt)
IMPORT_C voidConstructFromResourceL(TResourceReader &)
Private Member Functions
HBufC *GetBmpNameLC(TResourceReader &)
Inherited Functions
CArrayFix< CGulIcon * >::AppendL(const CGulIcon *&)
CArrayFix< CGulIcon * >::AppendL(const CGulIcon *&,TInt)
CArrayFix< CGulIcon * >::AppendL(const CGulIcon **,TInt)
CArrayFix< CGulIcon * >::Array()const
CArrayFix< CGulIcon * >::At(TInt)
CArrayFix< CGulIcon * >::At(TInt)const
CArrayFix< CGulIcon * >::Back(TInt)
CArrayFix< CGulIcon * >::Back(TInt)const
CArrayFix< CGulIcon * >::CArrayFix(TBufRep,TInt)
CArrayFix< CGulIcon * >::End(TInt)
CArrayFix< CGulIcon * >::End(TInt)const
CArrayFix< CGulIcon * >::ExpandL(TInt)
CArrayFix< CGulIcon * >::ExtendL()
CArrayFix< CGulIcon * >::Find(const CGulIcon *&,TKeyArrayFix &,TInt &)const
CArrayFix< CGulIcon * >::FindIsq(const CGulIcon *&,TKeyArrayFix &,TInt &)const
CArrayFix< CGulIcon * >::InsertIsqAllowDuplicatesL(const CGulIcon *&,TKeyArrayFix &)
CArrayFix< CGulIcon * >::InsertIsqL(const CGulIcon *&,TKeyArrayFix &)
CArrayFix< CGulIcon * >::InsertL(TInt,const CGulIcon *&)
CArrayFix< CGulIcon * >::InsertL(TInt,const CGulIcon *&,TInt)
CArrayFix< CGulIcon * >::InsertL(TInt,const CGulIcon **,TInt)
CArrayFix< CGulIcon * >::ResizeL(TInt)
CArrayFix< CGulIcon * >::ResizeL(TInt,const CGulIcon *&)
CArrayFix< CGulIcon * >::operator[](TInt)
CArrayFix< CGulIcon * >::operator[](TInt)const
CArrayFixBase::AtR(const CBase *,TInt)
CArrayFixBase::CArrayFixBase(TBufRep,TInt,TInt)
CArrayFixBase::Compress()
CArrayFixBase::Count()const
CArrayFixBase::CountR(const CBase *)
CArrayFixBase::Delete(TInt)
CArrayFixBase::Delete(TInt,TInt)
CArrayFixBase::Find(const TAny *,TKeyArrayFix &,TInt &)const
CArrayFixBase::FindIsq(const TAny *,TKeyArrayFix &,TInt &)const
CArrayFixBase::InsertIsqAllowDuplicatesL(const TAny *,TKeyArrayFix &)
CArrayFixBase::InsertIsqL(const TAny *,TKeyArrayFix &)
CArrayFixBase::InsertL(TInt,const TAny *)
CArrayFixBase::InsertL(TInt,const TAny *,TInt)
CArrayFixBase::InsertRepL(TInt,const TAny *,TInt)
CArrayFixBase::Length()const
CArrayFixBase::Reset()
CArrayFixBase::ResizeL(TInt,const TAny *)
CArrayFixBase::SetKey(TKeyArrayFix &)const
CArrayFixBase::SetReserveFlatL(TInt)
CArrayFixBase::Sort(TKeyArrayFix &)
CArrayFixBase::~CArrayFixBase()
CArrayPtr< CGulIcon >::CArrayPtr(TBufRep,TInt)
CArrayPtr< CGulIcon >::ResetAndDestroy()
CArrayPtrFlat< CGulIcon >::CArrayPtrFlat(TInt)
CArrayPtrFlat< CGulIcon >::SetReserveL(TInt)
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()

Constructor & Destructor Documentation

CAknIconArray(TInt)

IMPORT_CCAknIconArray(TIntaGranurality)

C++ Constructor.

Parameters

TInt aGranurality

~CAknIconArray()

IMPORT_C~CAknIconArray()

Destructor. Destroys all icons in the array.

Member Functions Documentation

AppendFromResourceL(TInt)

IMPORT_C voidAppendFromResourceL(TIntaResId)

Append icons from a resource to this array.

Parameters

TInt aResIdid of a AKN_ICON_ARRAY resource.

AppendFromResourceL(TResourceReader &)

IMPORT_C voidAppendFromResourceL(TResourceReader &aReader)

Append icons from a resource to this array.

Parameters

TResourceReader & aReaderresource reader pointed to a AKN_ICON_ARRAY resource

ConstructFromResourceL(TInt)

IMPORT_C voidConstructFromResourceL(TIntaResId)

Second phase constructor: loads contents of array from resources.

Parameters

TInt aResIdid of a AKN_ICON_ARRAY resource.

ConstructFromResourceL(TResourceReader &)

IMPORT_C voidConstructFromResourceL(TResourceReader &aReader)

Second phase constructor: loads contents of array from resources.

Parameters

TResourceReader & aReaderresource reader pointed to a AKN_ICON_ARRAY resource.

GetBmpNameLC(TResourceReader &)

HBufC *GetBmpNameLC(TResourceReader &aReader)[private]

Search for bitmap file on all connected drives

Read bitmap file name from resource. This may or may not have a drive specified. If the drive has been specified, the bitmap file is first searched in that drive. Otherwise, the drive search order is from y: to a: and then z: as the last drive. Therefore, ROM apps should hard code the Z: drive in order to improve performance.

Security warning: third parties can replace the bitmap files by adding another file, with the same name and path, on a drive which has a letter higher than the drive the existing file is installed on (e.g. file on MMC drive overrides file on C: drive). This can be prevented by hard-coding the drive letter.

Leave with KErrNotFound if the file specified is not found on any connected drive

Parameters

TResourceReader & aReaderresource reader pointed to a AKN_ICON_ARRAY resource