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
Public Member Functions | |
---|---|
TPtrC8 | DataType() |
IMPORT_C void | SetObserver(MAnimationDataProviderObserver *) |
void | StartL() |
Protected Member Functions | |
---|---|
CAnimationDataProvider() | |
IMPORT_C void | CAnimationDataProvider_Reserved1() |
IMPORT_C void | CAnimationDataProvider_Reserved2() |
IMPORT_C void | SendEventL(TInt) |
IMPORT_C void | SendEventL(TInt, TInt) |
IMPORT_C void | SendEventL(TInt, TAny *, TInt) |
Protected Attributes | |
---|---|
TInt | iCAnimationDataProvider_Reserved |
MAnimationDataProviderObserver * | iObserver |
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.
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 |
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.
IMPORT_C void | SendEventL | ( | TInt | aEvent, |
TAny * | aData, | |||
TInt | aDataSize | |||
) | [protected] |
Sends an event with an arbitrary size data item to the observer.
TAnimationEvent
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.
MAnimationDataProviderObserver * aObserver | The destination to send data to. Usually an animation class. |
void | StartL | ( | ) | [pure virtual] |
Called from the animation when it is ready to begin receiving data.
TInt | iCAnimationDataProvider_Reserved | [protected] |
Reserved for future use
MAnimationDataProviderObserver * | iObserver | [protected] |
The destination to send data to. Usually an animation class.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.