Location:
AnimationDataProvider.h
Link against: animationshared.lib
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()
, CAnimationDataProvider_Reserved1()
, CAnimationDataProvider_Reserved2()
, DataType()
, SendEventL()
, SendEventL()
, SendEventL()
, SetObserver()
, StartL()
, iCAnimationDataProvider_Reserved
, iObserver
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
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.
|
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: virtual IMPORT_C void CAnimationDataProvider_Reserved1();
Reserved for future use
protected: virtual IMPORT_C 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 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 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.
|
protected: MAnimationDataProviderObserver * iObserver;
The destination to send data to. Usually an animation class.