CSvgEventHandler Class Reference

class CSvgEventHandler : public CBase

Class description goes here.

SVGEngine.lib
Since
1.0

Inherits from

Nested Classes and Structures

Constructor & Destructor Documentation

CSvgEventHandler()

CSvgEventHandler ( ) [private]

Private constructor

Since
1.0

~CSvgEventHandler()

~CSvgEventHandler ( )

Destructor

Since
1.0

Member Functions Documentation

AddEventBeginTime(MSvgEventReceiver *, TUint32, MSvgEventReceiver *)

void AddEventBeginTime ( MSvgEventReceiver * aElement,
TUint32 aTime,
MSvgEventReceiver * aTargetElement
)

Provide the event end time information to the Event Handler

Since
1.0

Parameters

MSvgEventReceiver * aElement - An element that, ultimately, processes the event (eg. an animation element)
TUint32 aTime - The end time for an event on the target element
MSvgEventReceiver * aTargetElement - The element for which the event is processed

AddToEventReceiverListL(MSvgEventReceiver *, TUint8, TUint32, TUint32)

void AddToEventReceiverListL ( MSvgEventReceiver * aElement,
TUint8 aEventMask,
TUint32 aBeginTime = 0,
TUint32 aEndTime = 0
)

Add an object to the list of objects that are notified of an event

Since
1.0

Parameters

MSvgEventReceiver * aElement - An SVG element that wants to be registered for an event (implements MSvgEventReceiver interface)
TUint8 aEventMask - A bit mask that indicates the types of events an object listens for
TUint32 aBeginTime = 0
TUint32 aEndTime = 0

AddToEventReceiverListL(MSvgEventReceiver *, TSvgEvent, TUint8, TUint32, TUint32)

void AddToEventReceiverListL ( MSvgEventReceiver * aElement,
TSvgEvent aEvent,
TUint8 aEventMask,
TUint32 aBeginTime = 0,
TUint32 aEndTime = 0
)

Add an object to the list of objects that are notified of an event

Since
3.2

Parameters

MSvgEventReceiver * aElement - An SVG element that wants to be registered for an event (implements MSvgEventReceiver interface)
TSvgEvent aEvent - An SVG Event that the target element needs to generate
TUint8 aEventMask - A bit mask that indicates the types of events an object listens for
TUint32 aBeginTime = 0
TUint32 aEndTime = 0

AnimationElementsCount()

TInt32 AnimationElementsCount ( )

CheckInteractivityAndGetSubEventMask(CSvgElementImpl *, TUint16 &)

TBool CheckInteractivityAndGetSubEventMask ( CSvgElementImpl * aElement,
TUint16 & aSubEventMask
)
Checks whether the element is interactive or not and if interactive updates aSubEventMask.
Since
v3.2

Parameters

CSvgElementImpl * aElement
TUint16 & aSubEventMask - contains the list of interactive events that the element can respond to. It is a bitmask using TSvgInteractionEvent

ClearNullsFromEventReceiverList()

void ClearNullsFromEventReceiverList ( )

ConstructL()

void ConstructL ( ) [private]

A private constructor that constructs heap objects

Since
1.0

Count()

TInt32 Count ( )

DeactivateAnimations()

void DeactivateAnimations ( )

DoAnimProcL(MSvgEvent *)

void DoAnimProcL ( MSvgEvent * aEvent )

Parameters

MSvgEvent * aEvent

DoCancel()

void DoCancel ( )

Standard active object DoCancel method

Since
1.0

EventMask(MSvgEventReceiver *)

TUint8 EventMask ( MSvgEventReceiver * aElement )

EventMask: Return the event mask of the registered element

Parameters

MSvgEventReceiver * aElement

GetEventReceiver(TInt32, TBool, TUint8, TInt32 &)

MSvgEventReceiver * GetEventReceiver ( TInt32 aIndex,
TBool aNext,
TUint8 aMask,
TInt32 & aNewIndex
)

returns the next (or prev) focussable object starting with a given index search wraps around to start or end

Since
1.0

Parameters

TInt32 aIndex - search for a focussable object with this index
TBool aNext - Etrue (next) EFalse (prev) (go forward or backward for search)
TUint8 aMask
TInt32 & aNewIndex - Return the actual index where the object was found

IsValidSubEventMask(TUint16)

TBool IsValidSubEventMask ( TUint16 aSubEventMask )
Checks whether the aSubEventMask is has a valid value set
Since
v3.2

Parameters

TUint16 aSubEventMask

NewL()

CSvgEventHandler * NewL ( ) [static]

Two phase constructor

Since
1.0

NewLC()

CSvgEventHandler * NewLC ( ) [static]

Two phase constructor

Since
1.0

ProcessEventL(MSvgEvent *)

TBool ProcessEventL ( MSvgEvent * aEvent )

Process events received from the client

Since
1.0

Parameters

MSvgEvent * aEvent - An object containing event information (implements MSvgEvent interface)

ReInitialize()

void ReInitialize ( )

RemoveFromEventReceiverList(MSvgEventReceiver *)

void RemoveFromEventReceiverList ( MSvgEventReceiver * aElement )

Remove an object from the list of objects that are notified of an event

Since
1.0

Parameters

MSvgEventReceiver * aElement - An SVG element that wants to be unregistered for an event (implements MSvgEventReceiver interface)

Reset()

void Reset ( )

Reset the status of the event handler and all the event receivers

Since
1.0

Reset(MSvgEvent *)

void Reset ( MSvgEvent * aEvent )

Parameters

MSvgEvent * aEvent

ResetTimes()

void ResetTimes ( )

RunL()

void RunL ( )

Standard avtive object RunL method

Since
1.0

SetCurrentTime(TInt32)

void SetCurrentTime ( TInt32 aTime )

Parameters

TInt32 aTime

SortEventList()

void SortEventList ( )

An internal method that sorts the events in a time scale

Since
1.0

Member Data Documentation

TInt32 iCurrentTime

TInt32 iCurrentTime [private]

CArrayFixFlat< TEventReceiverListItem > * iEventReceiverList

CArrayFixFlat < TEventReceiverListItem > * iEventReceiverList [private]

TUint8 iInProcess

TUint8 iInProcess [private]