CFsTextureLoader Class Reference

class CFsTextureLoader : public CBase

Inherits from

Nested Classes and Structures

Public Member Functions
~CFsTextureLoader()
CFsTexture &AppendBitmapL(CFbsBitmap *, CFbsBitmap *, TAlfTextureFlags, TInt, const TInt &)
voidGetFrameInfoL(const TDesC &, TFrameInfo &)
CFsTexture &LoadTextureL(const TDesC &, TSize, TAlfTextureFlags, TInt, const TInt &)
CFsTextureLoader *NewL(CAlfTextureManager &, MFsTextureObserver &)
CFsTexture *SearchById(TInt)
CFsTexture *SearchByImageName(const TDesC &, TInt *)
CFsTexture *SearchByPos(const TInt &, TInt *)
voidSetDefaultTimeOut(const TTimeIntervalMicroSeconds32 &)
voidSetViewL(const TInt &, const TInt &)
voidSetViewL(const TView &)
CFsTexture *TextureAtIndex(const TInt &)
TInt TextureCount()
voidUnload(CFsTexture &)
TView View()
Private Member Functions
CFsTextureLoader(CAlfTextureManager &, MFsTextureObserver &)
voidConstructL()
voidDefaultTimeOut(TTimeIntervalMicroSeconds32 &)
voidDeleted(CFsTexture &)
voidFlagsUpdated(CFsTexture &)
TInt GetId()
voidLoadL(CFsTexture *)
voidPosUpdated(CFsTexture &)
voidSizeUpdated(CFsTexture &)
voidTextureLoadingCompleted(CAlfTexture &, TInt, TInt)
voidTimerExpiredL(CFsTexture &)
voidUnloadL()
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()
Public Member Enumerations
enumanonymous { EFlagNoneDefined, EFlagLoadSyncronously = 1 << 0, EFlagSetStatic = 1 << 1 }
Private Attributes
TTimeIntervalMicroSeconds32 iDefaultTimeOut
RFs &iFs
TInt iId
CAlfTextureManager &iManager
MFsTextureObserver &iObserver
CArrayPtr< CFsTexture > *iTextures
TView iView
CActiveSchedulerWait iWait

Constructor & Destructor Documentation

CFsTextureLoader(CAlfTextureManager &, MFsTextureObserver &)

CFsTextureLoader(CAlfTextureManager &aManager,
MFsTextureObserver &aObserver
)[private]

C++ constructor

Parameters

CAlfTextureManager & aManagerTexture manager reference
MFsTextureObserver & aObserverObserver reference

~CFsTextureLoader()

~CFsTextureLoader()

C++ Destructor

Member Functions Documentation

AppendBitmapL(CFbsBitmap *, CFbsBitmap *, TAlfTextureFlags, TInt, const TInt &)

CFsTexture &AppendBitmapL(CFbsBitmap *aBitmap,
CFbsBitmap *aBitmapMask,
TAlfTextureFlagsaFlags = EAlfTextureFlagDefault,
TIntaId = 0,
const TInt &aLoaderFlags = 0
)

Create texture from bitmaps

Parameters

CFbsBitmap * aBitmapBitmap
CFbsBitmap * aBitmapMaskMask
TAlfTextureFlags aFlags = EAlfTextureFlagDefault
TInt aId = 0Texture unique id, 0 for automation
const TInt & aLoaderFlags = 0Texture loader flags

ConstructL()

voidConstructL()[private]

2nd phase constructor

DefaultTimeOut(TTimeIntervalMicroSeconds32 &)

voidDefaultTimeOut(TTimeIntervalMicroSeconds32 &aTimeOut)[private, virtual]

Loader timeout

Parameters

TTimeIntervalMicroSeconds32 & aTimeOutTimeout in microseconds as return value

Deleted(CFsTexture &)

voidDeleted(CFsTexture &aTexture)[private, virtual]

Texture destroyed

Parameters

CFsTexture & aTextureTexture reference

FlagsUpdated(CFsTexture &)

voidFlagsUpdated(CFsTexture &aTexture)[private, virtual]

Flags updated

Parameters

CFsTexture & aTextureTexture reference

GetFrameInfoL(const TDesC &, TFrameInfo &)

voidGetFrameInfoL(const TDesC &aImageFileName,
TFrameInfo &aFrameInfo
)[static]

Read bitmap properties

Parameters

const TDesC & aImageFileNameFilename
TFrameInfo & aFrameInfoBitmap properties as return value

GetId()

TInt GetId()[private]

Return texture id

LoadL(CFsTexture *)

voidLoadL(CFsTexture *aTexture = NULL)[private]

Load texture

Parameters

CFsTexture * aTexture = NULLAddress of texture

LoadTextureL(const TDesC &, TSize, TAlfTextureFlags, TInt, const TInt &)

CFsTexture &LoadTextureL(const TDesC &aImageFileName,
TSizeaTextureMaxSize =  TSize(0, 0),
TAlfTextureFlagsaFlags = EAlfTextureFlagDefault,
TIntaId = 0,
const TInt &aLoaderFlags = 0
)

Create texture

Parameters

const TDesC & aImageFileNameFile
TSize aTextureMaxSize =  TSize(0, 0)
TAlfTextureFlags aFlags = EAlfTextureFlagDefault
TInt aId = 0Texture unique id, 0 for automation
const TInt & aLoaderFlags = 0Texture loader flags

NewL(CAlfTextureManager &, MFsTextureObserver &)

CFsTextureLoader *NewL(CAlfTextureManager &aManager,
MFsTextureObserver &aObserver
)[static]

2-phased constructor

Parameters

CAlfTextureManager & aManagerTexture manager reference
MFsTextureObserver & aObserverObserver reference

PosUpdated(CFsTexture &)

voidPosUpdated(CFsTexture &aTexture)[private, virtual]

Texture position updated

Parameters

CFsTexture & aTextureTexture reference

SearchById(TInt)

CFsTexture *SearchById(TIntaId)

Search texture

Parameters

TInt aId

SearchByImageName(const TDesC &, TInt *)

CFsTexture *SearchByImageName(const TDesC &aImageFileName,
TInt *aIndex = NULL
)

Search texture

Parameters

const TDesC & aImageFileNameFile criteria
TInt * aIndex = NULLIndex, 0 by default

SearchByPos(const TInt &, TInt *)

CFsTexture *SearchByPos(const TInt &aPos,
TInt *aIndex = NULL
)

Search texture

Parameters

const TInt & aPosPosition criteria
TInt * aIndex = NULLIndex, 0 by default

SetDefaultTimeOut(const TTimeIntervalMicroSeconds32 &)

voidSetDefaultTimeOut(const TTimeIntervalMicroSeconds32 &aTimeOut)

Set default timeout for unloading the textures

Parameters

const TTimeIntervalMicroSeconds32 & aTimeOutTimeout in microseconds, 10 sec. by default

SetViewL(const TInt &, const TInt &)

voidSetViewL(const TInt &aStart,
const TInt &aLength
)

Set view

Parameters

const TInt & aStartBeginning of view area
const TInt & aLengthView area length

SetViewL(const TView &)

voidSetViewL(const TView &aView)

Set view

Parameters

const TView & aViewView structure

SizeUpdated(CFsTexture &)

voidSizeUpdated(CFsTexture &aTexture)[private, virtual]

Size updated

Parameters

CFsTexture & aTextureTexture reference

TextureAtIndex(const TInt &)

CFsTexture *TextureAtIndex(const TInt &aIndex)

Get texture by index

Parameters

const TInt & aIndexTexture index

TextureCount()

TInt TextureCount()const

Texture count

TextureLoadingCompleted(CAlfTexture &, TInt, TInt)

voidTextureLoadingCompleted(CAlfTexture &aTexture,
TIntaTextureId,
TIntaErrorCode
)[private]
Called to notify the observer that loading of a texture has been completed.
Note:

One should not commence loading of a new texture in this callback method.

Parameters

CAlfTexture & aTextureReference to the texture that has been loaded.
TInt aTextureIdId of the texture in the texture manager. Can be used to identify the loaded texture, provided that an id was assigned to the texture.
TInt aErrorCodeKErrNone if the load was successful, otherwise one of the system-wide error codes indicating reason why the texture loading failed.

TimerExpiredL(CFsTexture &)

voidTimerExpiredL(CFsTexture &aTexture)[private, virtual]

TimerExpiredL

Parameters

CFsTexture & aTextureTexture reference

Unload(CFsTexture &)

voidUnload(CFsTexture &aTexture)

Unload texture

Parameters

CFsTexture & aTextureTexture reference

UnloadL()

voidUnloadL()[private]

Unload texture

View()

TView View()const

Return current view area

Member Enumerations Documentation

Enum anonymous

Enumerators

EFlagNoneDefined
EFlagLoadSyncronously = 1 << 0
EFlagSetStatic = 1 << 1

Member Data Documentation

TTimeIntervalMicroSeconds32 iDefaultTimeOut

TTimeIntervalMicroSeconds32 iDefaultTimeOut[private]

Default timeout

RFs & iFs

RFs &iFs[private]

File system reference

TInt iId

TInt iId[private]

Id counter

CAlfTextureManager & iManager

CAlfTextureManager &iManager[private]

Texture manager reference

MFsTextureObserver & iObserver

MFsTextureObserver &iObserver[private]

Observer reference

CArrayPtr< CFsTexture > * iTextures

CArrayPtr< CFsTexture > *iTextures[private]

Owns:

TView iView

TView iView[private]

View context

CActiveSchedulerWait iWait

CActiveSchedulerWait iWait[private]

Scheduler