|
||
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.
CBase
-
Base class for all classes to be instantiated on the heap.
CAnimationDataProvider
- Pure virtual base class for data providers.
Defined in CAnimationDataProvider
:
CAnimationDataProvider()
Constructor CAnimationDataProvider_Reserved1()
Reserved for future use CAnimationDataProvider_Reserved2()
Reserved for future use DataType()
Called from the animation to obtain the type of data to expect. SendEventL(TInt)
Sends an event with no associated data to the observer.SendEventL(TInt,TAny *,TInt)
Sends an event with an arbitrary size data item to the observer.SendEventL(TInt,TInt)
Sends an event with a single integer data item to the observer.SetObserver(MAnimationDataProviderObserver *)
Sets the destination for data from this data provider.StartL()
Called from the animation when it is ready to begin receiving data. iCAnimationDataProvider_Reserved
Reserved for future use iObserver
The destination to send data to. Usually an animation class. Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...CAnimation
Pure virtual base class for animations.MAnimationDataProviderObserver
Interface from a data provider to an animationIMPORT_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.
|
virtual void StartL()=0;
Called from the animation when it is ready to begin receiving data.
virtual TPtrC8 DataType()=0;
Called from the animation to obtain the type of data to expect.
|
protected: IMPORT_C virtual void CAnimationDataProvider_Reserved1();
Reserved for future use
protected: IMPORT_C virtual void CAnimationDataProvider_Reserved2();
Reserved for future use
protected: IMPORT_C void SendEventL(TInt aEvent);
Sends an event with no associated data to the observer.
See CAnimationDataProvider::SendEventL(TInt,TAny *,TInt)
for further details.
|
protected: IMPORT_C void SendEventL(TInt aEvent, TInt aData);
Sends an event with a single integer data item to the observer.
See CAnimationDataProvider::SendEventL(TInt,TAny *,TInt)
for further details.
|
protected: IMPORT_C void SendEventL(TInt aEvent, TAny *aData, TInt aDataSize);
Sends an event with an arbitrary size data item to the observer.
|
TAnimationEvent
Generic events which all animation data providers can pass to animators.protected: MAnimationDataProviderObserver * iObserver;
The destination to send data to. Usually an animation class.