CAnimationDataProvider Class Reference

class CAnimationDataProvider : public CBase

Pure virtual base class for data providers.

A data provider takes an animation specification (such as a file), converts it (if needed) into a format recognised by an animator (such as CAnimationFrame objects), and passes it to the animator, via the medium of an animation.

Most animation types take a data provider as an argument during contruction. For more detailed usage instructions, refer to the documentation of the derived classes.

CAnimation MAnimationDataProviderObserver

Inherits from

Constructor & Destructor Documentation

CAnimationDataProvider()

IMPORT_C CAnimationDataProvider ( ) [protected]

Constructor

Member Functions Documentation

CAnimationDataProvider_Reserved1()

IMPORT_C void CAnimationDataProvider_Reserved1 ( ) [protected, virtual]

Reserved for future use

CAnimationDataProvider_Reserved2()

IMPORT_C void CAnimationDataProvider_Reserved2 ( ) [protected, virtual]

Reserved for future use

DataType()

TPtrC8 DataType ( ) [pure virtual]

Called from the animation to obtain the type of data to expect.

SendEventL(TInt)

IMPORT_C void SendEventL ( TInt aEvent ) [protected]

Sends an event with no associated data to the observer.

See SendEventL(TInt,TAny*,TInt) for further details.

Parameters

TInt aEvent The event to pass. This may be a member of TAnimationEvent, or a user defined value. User defined events must be greater than EAnimationReservedEvents

SendEventL(TInt, TInt)

IMPORT_C void SendEventL ( TInt aEvent,
TInt aData
) [protected]

Sends an event with a single integer data item to the observer.

See SendEventL(TInt,TAny*,TInt) for further details.

Parameters

TInt aEvent The event to pass. This may be a member of TAnimationEvent, or a user defined value. User defined events must be greater than EAnimationReservedEvents
TInt aData A pointer to the data to send

SendEventL(TInt, TAny *, TInt)

IMPORT_C void SendEventL ( TInt aEvent,
TAny * aData,
TInt aDataSize
) [protected]

Sends an event with an arbitrary size data item to the observer.

TAnimationEvent

Parameters

TInt aEvent The event to pass. This may be a member of TAnimationEvent, or a user defined value. User defined events must be greater than EAnimationReservedEvents
TAny * aData A pointer to the data to send
TInt aDataSize The size of the data item passed in aData

SetObserver(MAnimationDataProviderObserver *)

IMPORT_C void SetObserver ( MAnimationDataProviderObserver * aObserver )

Sets the destination for data from this data provider.

You do not need to call this function unless you are writing a new animation type.

Parameters

MAnimationDataProviderObserver * aObserver The destination to send data to. Usually an animation class.

StartL()

void StartL ( ) [pure virtual]

Called from the animation when it is ready to begin receiving data.

Member Data Documentation

TInt iCAnimationDataProvider_Reserved

TInt iCAnimationDataProvider_Reserved [protected]

Reserved for future use

MAnimationDataProviderObserver * iObserver

MAnimationDataProviderObserver * iObserver [protected]

The destination to send data to. Usually an animation class.