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 void | AppendFromResourceL ( TInt ) |
IMPORT_C void | AppendFromResourceL ( TResourceReader &) |
IMPORT_C void | ConstructFromResourceL ( TInt ) |
IMPORT_C void | ConstructFromResourceL ( TResourceReader &) |
Private Member Functions | |
---|---|
HBufC * | GetBmpNameLC ( TResourceReader &) |
IMPORT_C | CAknIconArray | ( | TInt | aGranurality | ) |
C++ Constructor.
TInt aGranurality |
IMPORT_C void | AppendFromResourceL | ( | TInt | aResId | ) |
Append icons from a resource to this array.
TInt aResId | id of a AKN_ICON_ARRAY resource. |
IMPORT_C void | AppendFromResourceL | ( | TResourceReader & | aReader | ) |
Append icons from a resource to this array.
TResourceReader & aReader | resource reader pointed to a AKN_ICON_ARRAY resource |
IMPORT_C void | ConstructFromResourceL | ( | TInt | aResId | ) |
Second phase constructor: loads contents of array from resources.
TInt aResId | id of a AKN_ICON_ARRAY resource. |
IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) |
Second phase constructor: loads contents of array from resources.
TResourceReader & aReader | resource reader pointed to a AKN_ICON_ARRAY resource. |
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
TResourceReader & aReader | resource reader pointed to a AKN_ICON_ARRAY resource |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.