#include <mw/animationdataprovider.h>
Link against: animationshared.lib
| class CAnimationDataProvider : public CBase, public CBase |
| Protected Attributes | |
|---|---|
| TInt | iCAnimationDataProvider_Reserved |
| MAnimationDataProviderObserver * | iObserver |
| Public Member Functions | |
|---|---|
| pure virtual TPtrC8 | DataType() |
| IMPORT_C void | SetObserver(MAnimationDataProviderObserver *) |
| pure virtual void | StartL() |
| Protected Member Functions | |
|---|---|
| CAnimationDataProvider() | |
| virtual IMPORT_C void | CAnimationDataProvider_Reserved1() |
| virtual IMPORT_C void | CAnimationDataProvider_Reserved2() |
| IMPORT_C void | SendEventL(TInt) |
| IMPORT_C void | SendEventL(TInt, TInt) |
| IMPORT_C void | SendEventL(TInt, TAny *, TInt) |
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.
See also: CAnimation MAnimationDataProviderObserver
| TInt | iCAnimationDataProvider_Reserved | [protected] |
Reserved for future use
| MAnimationDataProviderObserver * | iObserver | [protected] |
The destination to send data to. Usually an animation class.
| IMPORT_C void | CAnimationDataProvider_Reserved1 | ( | ) | [protected, virtual] |
Reserved for future use
| IMPORT_C void | CAnimationDataProvider_Reserved2 | ( | ) | [protected, virtual] |
Reserved for future use
| TPtrC8 | DataType | ( | ) | [pure virtual] |
Called from the animation to obtain the type of data to expect.
| 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 | |
|---|---|
| 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 |
Sends an event with a single integer data item to the observer.
See SendEventL(TInt,TAny*,TInt) for further details.
| Parameters | |
|---|---|
| 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 |
| aData | A pointer to the data to send |
Sends an event with an arbitrary size data item to the observer.
See also: TAnimationEvent
| Parameters | |
|---|---|
| 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 |
| aData | A pointer to the data to send |
| aDataSize | The size of the data item passed in aData |
| 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 | |
|---|---|
| aObserver | The destination to send data to. Usually an animation class. |