CSvgTimer Class Reference

class CSvgTimer : public CTimer

A Timer class that wraps Symbian CTimer class All the essential functionality is same Adds additional capabilities such as frames, frames per second information, ability to specify/change duration etc.

SVGEngine.lib
Since
1.0

Inherits from

Constructor & Destructor Documentation

CSvgTimer(CSvgTimeContainer *)

CSvgTimer(CSvgTimeContainer *aTimeContainer)[protected]

Private constructor

Since
1.0

Parameters

CSvgTimeContainer * aTimeContainer

~CSvgTimer()

~CSvgTimer()

Destructor

Since
1.0

Member Functions Documentation

ChangeFrameDuration(TUint32)

voidChangeFrameDuration(TUint32aTimerDuration)

CHange the duration of the timer

Since
1.0

Parameters

TUint32 aTimerDuration- An integer that is the new duration

ConstructL()

voidConstructL()[protected]

A private constructor that constructs heap objects

Since
1.0

DoCancel()

voidDoCancel()[virtual]

Standard Active Object DoCancel

Since
1.0

Fps()

TUint Fps()

Return the frames per second information

Since
1.0

GenerateFrameL(TUint32)

TUint32 GenerateFrameL(TUint32aTime)[private]

Request svg engine to generate frame at the given time in milliseconds

Since
1.0

Parameters

TUint32 aTime- milliseconds

GetElapsedMilliseconds(TTime &, TTime &)

TUint32 GetElapsedMilliseconds(TTime &aStart,
TTime &aEnd
)[private, static]

Parameters

TTime & aStart
TTime & aEnd

NewL(CSvgTimeContainer *)

CSvgTimer *NewL(CSvgTimeContainer *aTimeContainer)[static]

Two phase constructor

Since
1.0

Parameters

CSvgTimeContainer * aTimeContainer- Pointer to the Time Container

NewLC(CSvgTimeContainer *)

CSvgTimer *NewLC(CSvgTimeContainer *aTimeContainer)[static]

Two phase constructor

Since
1.0

Parameters

CSvgTimeContainer * aTimeContainer- Pointer to the Time Container

ResetTime()

voidResetTime()

Reset the time

Since
1.0

RunL()

voidRunL()[virtual]

Standard Active Object RunL

Since
1.0

SVGResume(TInt32)

voidSVGResume(TInt32aTime)

Resume function

Since
1.0

Parameters

TInt32 aTimeTime in msecs to resume after(Must be Positive)

SVGStop()

voidSVGStop()

Pause function

Since
1.0

SetSeekTime(TUint32)

voidSetSeekTime(TUint32aTime)

Set the timer to forward/rewind animation

Since
1.0

Parameters

TUint32 aTime- in microseconds

SetStartTime()

voidSetStartTime()

Set Start Time for animation

Since
1.0

SetStrictFrameDuration(TBool)

voidSetStrictFrameDuration(TBoolaKeepStrictFrameDuration)

Set whether each frame generated should be time-base or frame-based.

Since
1.0

Parameters

TBool aKeepStrictFrameDuration- if ETrue then every cycle of RunL will generate a frame with the elapsed time set by ChangeFrameDuration().

Member Data Documentation

TBool iFirstFrameDrawn

TBool iFirstFrameDrawn[private]

TUint32 iFrameDuration

TUint32 iFrameDuration[private]

TUint32 iFrames

TUint32 iFrames[private]

TBool iIsStrictFrameDuration

TBool iIsStrictFrameDuration[private]

TTime iPreviousFrameTime

TTime iPreviousFrameTime[private]

TUint32 iTime

TUint32 iTime[private]

CSvgTimeContainer * iTimeContainer

CSvgTimeContainer *iTimeContainer[private]