Alf::ResourcePoolImpl Class Reference

class Alf::ResourcePoolImpl

?one_line_short_description ?more_complete_description

   ?good_class_usage_example(s)
?library
Since
S60 ?S60_version *** for example, S60 v3.0
Public Member Functions
ResourcePoolImpl(CAlfTextureManager &, ResourcePool *)
~ResourcePoolImpl()
voidcreateFileImageResource(const Utf8 *, const UString &, TAlfTextureFlags)
voidcreateLogicalImageResource(const Utf8 *)
voidcreateThemeImageResource(const Utf8 *, const UString &)
voiddeleteImageResource(const Utf8 *)
TAlfImagegetImageResource(const Utf8 *)
TAlfImagegetImageResource(const Utf8 *, const TAlfXYMetric &)
boolhasImageResource(const Utf8 *)
voidsetAspectRatio(const Utf8 *, ResourcePool::AspectRatio)
voidsetInitialSize(const Utf8 *, const TAlfXYMetric &)
Private Member Functions
TAlfImageCreateFileImageResourceL(FileImageResource &, const TAlfXYMetric &, TAlfTextureFlags)
TAlfImageCreateSVGImageResourceL(FileImageResource &, const TAlfXYMetric &)
TAlfImageCreateSkinImageResourceL(SkinImageResource &, const TAlfXYMetric &)
voidDetermineSkinInstanceL(const Utf8 *, TAknsItemID &)
boolareSizesCloseEnough(const TSize &, const TSize &)
TSize determineSizeInPixels(const TAlfXYMetric &)
voiddetermineSkinId(const UString &, int &)
ImageResource *findResource(const Utf8 *)
intfindResourceIndex(const Utf8 *)
Private Member Enumerations
enumImageResourceType { imageResourceTypeSkin, imageResourceTypeFileSVG, imageResourceTypeFileOther }
Private Attributes
ResourcePool *mParentPool
AlfPtrVector< ImageResource >mResources
CAlfTextureManager &mTextureManager

Constructor & Destructor Documentation

ResourcePoolImpl(CAlfTextureManager &, ResourcePool *)

ResourcePoolImpl(CAlfTextureManager &aTextureManager,
ResourcePool *aParentPool
)

Parameters

CAlfTextureManager & aTextureManager
ResourcePool * aParentPool

~ResourcePoolImpl()

~ResourcePoolImpl()

Member Functions Documentation

CreateFileImageResourceL(FileImageResource &, const TAlfXYMetric &, TAlfTextureFlags)

TAlfImageCreateFileImageResourceL(FileImageResource &aFileImageResource,
const TAlfXYMetric &aSizeHint,
TAlfTextureFlagsaFlag
)[private]

Parameters

FileImageResource & aFileImageResource
const TAlfXYMetric & aSizeHint
TAlfTextureFlags aFlag

CreateSVGImageResourceL(FileImageResource &, const TAlfXYMetric &)

TAlfImageCreateSVGImageResourceL(FileImageResource &aSVGImageResource,
const TAlfXYMetric &aSizeHint
)[private]

Parameters

FileImageResource & aSVGImageResource
const TAlfXYMetric & aSizeHint

CreateSkinImageResourceL(SkinImageResource &, const TAlfXYMetric &)

TAlfImageCreateSkinImageResourceL(SkinImageResource &aSkinImageResource,
const TAlfXYMetric &aSizeHint
)[private]

Parameters

SkinImageResource & aSkinImageResource
const TAlfXYMetric & aSizeHint

DetermineSkinInstanceL(const Utf8 *, TAknsItemID &)

voidDetermineSkinInstanceL(const Utf8 *aTag,
TAknsItemID &aSkinItemID
)const [private]

Parameters

const Utf8 * aTag
TAknsItemID & aSkinItemID

areSizesCloseEnough(const TSize &, const TSize &)

boolareSizesCloseEnough(const TSize &aSize1,
const TSize &aSize2
)[private, static]

Parameters

const TSize & aSize1
const TSize & aSize2

createFileImageResource(const Utf8 *, const UString &, TAlfTextureFlags)

voidcreateFileImageResource(const Utf8 *aTag,
const UString &aFileName,
TAlfTextureFlagsaFlag
)

Parameters

const Utf8 * aTag
const UString & aFileName
TAlfTextureFlags aFlag

createLogicalImageResource(const Utf8 *)

voidcreateLogicalImageResource(const Utf8 *aTag)

Parameters

const Utf8 * aTag

createThemeImageResource(const Utf8 *, const UString &)

voidcreateThemeImageResource(const Utf8 *aTag,
const UString &aThemeDefinition
)

Parameters

const Utf8 * aTag
const UString & aThemeDefinition

deleteImageResource(const Utf8 *)

voiddeleteImageResource(const Utf8 *aTag)

Parameters

const Utf8 * aTag

determineSizeInPixels(const TAlfXYMetric &)

TSize determineSizeInPixels(const TAlfXYMetric &aSize)[private]

Parameters

const TAlfXYMetric & aSize

determineSkinId(const UString &, int &)

voiddetermineSkinId(const UString &aNumberString,
int &aSkinItem
)[private]

Parameters

const UString & aNumberString
int & aSkinItem

findResource(const Utf8 *)

ImageResource *findResource(const Utf8 *aTag)const [private]

Parameters

const Utf8 * aTag

findResourceIndex(const Utf8 *)

intfindResourceIndex(const Utf8 *aTag)const [private]

Parameters

const Utf8 * aTag

getImageResource(const Utf8 *)

TAlfImagegetImageResource(const Utf8 *aTag)

Parameters

const Utf8 * aTag

getImageResource(const Utf8 *, const TAlfXYMetric &)

TAlfImagegetImageResource(const Utf8 *aTag,
const TAlfXYMetric &aSizeHint
)

Parameters

const Utf8 * aTag
const TAlfXYMetric & aSizeHint

hasImageResource(const Utf8 *)

boolhasImageResource(const Utf8 *aTag)const

Parameters

const Utf8 * aTag

setAspectRatio(const Utf8 *, ResourcePool::AspectRatio)

voidsetAspectRatio(const Utf8 *aTag,
ResourcePool::AspectRatioaAspectRatio
)

Parameters

const Utf8 * aTag
ResourcePool::AspectRatio aAspectRatio

setInitialSize(const Utf8 *, const TAlfXYMetric &)

voidsetInitialSize(const Utf8 *aTag,
const TAlfXYMetric &aInitialSizeHint
)

Parameters

const Utf8 * aTag
const TAlfXYMetric & aInitialSizeHint

Member Enumerations Documentation

Enum ImageResourceType

Enumerators

imageResourceTypeSkin
imageResourceTypeFileSVG
imageResourceTypeFileOther

Member Data Documentation

ResourcePool * mParentPool

ResourcePool *mParentPool[private]

AlfPtrVector< ImageResource > mResources

AlfPtrVector< ImageResource >mResources[private]

CAlfTextureManager & mTextureManager

CAlfTextureManager &mTextureManager[private]