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

Public Member Functions
~CSvgTimer ()
void ChangeFrameDuration ( TUint32 )
void DoCancel ()
TUint Fps ()
CSvgTimer * NewL (CSvgTimeContainer *)
CSvgTimer * NewLC (CSvgTimeContainer *)
void ResetTime ()
void RunL ()
void SVGResume ( TInt32 )
void SVGStop ()
void SetSeekTime ( TUint32 )
void SetStartTime ()
void SetStrictFrameDuration ( TBool )
Protected Member Functions
CSvgTimer (CSvgTimeContainer *)
void ConstructL ()
Private Member Functions
TUint32 GenerateFrameL ( TUint32 )
TUint32 GetElapsedMilliseconds ( TTime &, TTime &)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::RunError(TInt)
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
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()
CTimer::After(TTimeIntervalMicroSeconds32)
CTimer::At(const TTime &)
CTimer::AtUTC(const TTime &)
CTimer::CTimer(TInt)
CTimer::HighRes(TTimeIntervalMicroSeconds32)
CTimer::Inactivity(TTimeIntervalSeconds)
CTimer::Lock(TTimerLockSpec)
CTimer::~CTimer()
Inherited Enumerations
CActive:TPriority
Private Attributes
TBool iFirstFrameDrawn
TUint32 iFrameDuration
TUint32 iFrames
TBool iIsStrictFrameDuration
TTime iPreviousFrameTime
TUint32 iTime
CSvgTimeContainer * iTimeContainer
Inherited Attributes
CActive::iStatus

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)

void ChangeFrameDuration ( TUint32 aTimerDuration )

CHange the duration of the timer

Since
1.0

Parameters

TUint32 aTimerDuration - An integer that is the new duration

ConstructL()

void ConstructL ( ) [protected]

A private constructor that constructs heap objects

Since
1.0

DoCancel()

void DoCancel ( ) [virtual]

Standard Active Object DoCancel

Since
1.0

Fps()

TUint Fps ( )

Return the frames per second information

Since
1.0

GenerateFrameL(TUint32)

TUint32 GenerateFrameL ( TUint32 aTime ) [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()

void ResetTime ( )

Reset the time

Since
1.0

RunL()

void RunL ( ) [virtual]

Standard Active Object RunL

Since
1.0

SVGResume(TInt32)

void SVGResume ( TInt32 aTime )

Resume function

Since
1.0

Parameters

TInt32 aTime Time in msecs to resume after(Must be Positive)

SVGStop()

void SVGStop ( )

Pause function

Since
1.0

SetSeekTime(TUint32)

void SetSeekTime ( TUint32 aTime )

Set the timer to forward/rewind animation

Since
1.0

Parameters

TUint32 aTime - in microseconds

SetStartTime()

void SetStartTime ( )

Set Start Time for animation

Since
1.0

SetStrictFrameDuration(TBool)

void SetStrictFrameDuration ( TBool aKeepStrictFrameDuration )

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]