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 &)
void GetFrameInfoL (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 *)
void SetDefaultTimeOut (const TTimeIntervalMicroSeconds32 &)
void SetViewL (const TInt &, const TInt &)
void SetViewL (const TView &)
CFsTexture * TextureAtIndex (const TInt &)
TInt TextureCount ()
void Unload ( CFsTexture &)
TView View ()
Private Member Functions
CFsTextureLoader (CAlfTextureManager &, MFsTextureObserver &)
void ConstructL ()
void DefaultTimeOut ( TTimeIntervalMicroSeconds32 &)
void Deleted ( CFsTexture &)
void FlagsUpdated ( CFsTexture &)
TInt GetId ()
void LoadL ( CFsTexture *)
void PosUpdated ( CFsTexture &)
void SizeUpdated ( CFsTexture &)
void TextureLoadingCompleted (CAlfTexture &, TInt , TInt )
void TimerExpiredL ( CFsTexture &)
void UnloadL ()
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
enum anonymous { 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 & aManager Texture manager reference
MFsTextureObserver & aObserver Observer reference

~CFsTextureLoader()

~CFsTextureLoader ( )

C++ Destructor

Member Functions Documentation

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

CFsTexture & AppendBitmapL ( CFbsBitmap * aBitmap,
CFbsBitmap * aBitmapMask,
TAlfTextureFlags aFlags = EAlfTextureFlagDefault,
TInt aId = 0,
const TInt & aLoaderFlags = 0
)

Create texture from bitmaps

Parameters

CFbsBitmap * aBitmap Bitmap
CFbsBitmap * aBitmapMask Mask
TAlfTextureFlags aFlags = EAlfTextureFlagDefault
TInt aId = 0 Texture unique id, 0 for automation
const TInt & aLoaderFlags = 0 Texture loader flags

ConstructL()

void ConstructL ( ) [private]

2nd phase constructor

DefaultTimeOut(TTimeIntervalMicroSeconds32 &)

void DefaultTimeOut ( TTimeIntervalMicroSeconds32 & aTimeOut ) [private, virtual]

Loader timeout

Parameters

TTimeIntervalMicroSeconds32 & aTimeOut Timeout in microseconds as return value

Deleted(CFsTexture &)

void Deleted ( CFsTexture & aTexture ) [private, virtual]

Texture destroyed

Parameters

CFsTexture & aTexture Texture reference

FlagsUpdated(CFsTexture &)

void FlagsUpdated ( CFsTexture & aTexture ) [private, virtual]

Flags updated

Parameters

CFsTexture & aTexture Texture reference

GetFrameInfoL(const TDesC &, TFrameInfo &)

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

Read bitmap properties

Parameters

const TDesC & aImageFileName Filename
TFrameInfo & aFrameInfo Bitmap properties as return value

GetId()

TInt GetId ( ) [private]

Return texture id

LoadL(CFsTexture *)

void LoadL ( CFsTexture * aTexture = NULL ) [private]

Load texture

Parameters

CFsTexture * aTexture = NULL Address of texture

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

CFsTexture & LoadTextureL ( const TDesC & aImageFileName,
TSize aTextureMaxSize =  TSize (0, 0),
TAlfTextureFlags aFlags = EAlfTextureFlagDefault,
TInt aId = 0,
const TInt & aLoaderFlags = 0
)

Create texture

Parameters

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

NewL(CAlfTextureManager &, MFsTextureObserver &)

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

2-phased constructor

Parameters

CAlfTextureManager & aManager Texture manager reference
MFsTextureObserver & aObserver Observer reference

PosUpdated(CFsTexture &)

void PosUpdated ( CFsTexture & aTexture ) [private, virtual]

Texture position updated

Parameters

CFsTexture & aTexture Texture reference

SearchById(TInt)

CFsTexture * SearchById ( TInt aId )

Search texture

Parameters

TInt aId

SearchByImageName(const TDesC &, TInt *)

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

Search texture

Parameters

const TDesC & aImageFileName File criteria
TInt * aIndex = NULL Index, 0 by default

SearchByPos(const TInt &, TInt *)

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

Search texture

Parameters

const TInt & aPos Position criteria
TInt * aIndex = NULL Index, 0 by default

SetDefaultTimeOut(const TTimeIntervalMicroSeconds32 &)

void SetDefaultTimeOut ( const TTimeIntervalMicroSeconds32 & aTimeOut )

Set default timeout for unloading the textures

Parameters

const TTimeIntervalMicroSeconds32 & aTimeOut Timeout in microseconds, 10 sec. by default

SetViewL(const TInt &, const TInt &)

void SetViewL ( const TInt & aStart,
const TInt & aLength
)

Set view

Parameters

const TInt & aStart Beginning of view area
const TInt & aLength View area length

SetViewL(const TView &)

void SetViewL ( const TView & aView )

Set view

Parameters

const TView & aView View structure

SizeUpdated(CFsTexture &)

void SizeUpdated ( CFsTexture & aTexture ) [private, virtual]

Size updated

Parameters

CFsTexture & aTexture Texture reference

TextureAtIndex(const TInt &)

CFsTexture * TextureAtIndex ( const TInt & aIndex )

Get texture by index

Parameters

const TInt & aIndex Texture index

TextureCount()

TInt TextureCount ( ) const

Texture count

TextureLoadingCompleted(CAlfTexture &, TInt, TInt)

void TextureLoadingCompleted ( CAlfTexture & aTexture,
TInt aTextureId,
TInt aErrorCode
) [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 & aTexture Reference to the texture that has been loaded.
TInt aTextureId Id 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 aErrorCode KErrNone if the load was successful, otherwise one of the system-wide error codes indicating reason why the texture loading failed.

TimerExpiredL(CFsTexture &)

void TimerExpiredL ( CFsTexture & aTexture ) [private, virtual]

TimerExpiredL

Parameters

CFsTexture & aTexture Texture reference

Unload(CFsTexture &)

void Unload ( CFsTexture & aTexture )

Unload texture

Parameters

CFsTexture & aTexture Texture reference

UnloadL()

void UnloadL ( ) [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