epoc32/include/mw/animationdataprovider.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     2
// All rights reserved.
williamr@2
     3
// This component and the accompanying materials are made available
williamr@4
     4
// under the terms of "Eclipse Public License v1.0"
williamr@2
     5
// which accompanies this distribution, and is available
williamr@4
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     7
//
williamr@2
     8
// Initial Contributors:
williamr@2
     9
// Nokia Corporation - initial contribution.
williamr@2
    10
//
williamr@2
    11
// Contributors:
williamr@2
    12
//
williamr@2
    13
// Description:
williamr@2
    14
//
williamr@2
    15
williamr@2
    16
#ifndef __ANIMATIONDATAPROVIDER_H__
williamr@2
    17
#define __ANIMATIONDATAPROVIDER_H__
williamr@2
    18
williamr@2
    19
#include <e32std.h>
williamr@2
    20
#include <animationframe.h>
williamr@2
    21
williamr@2
    22
class MAnimationDataProviderObserver;
williamr@2
    23
williamr@2
    24
_LIT8(KUndefinedAnimationDataType, "undefined");
williamr@2
    25
williamr@2
    26
/**
williamr@2
    27
Pure virtual base class for data providers.
williamr@2
    28
williamr@2
    29
A data provider takes an animation specification (such as a file), converts
williamr@2
    30
it (if needed) into a format recognised by an animator (such as CAnimationFrame
williamr@2
    31
objects), and passes it to the animator, via the medium of an animation.
williamr@2
    32
williamr@2
    33
Most animation types take a data provider as an argument during contruction.
williamr@2
    34
For more detailed usage instructions, refer to the documentation of the derived
williamr@2
    35
classes.
williamr@2
    36
williamr@2
    37
@see CAnimation
williamr@2
    38
@see MAnimationDataProviderObserver
williamr@2
    39
@publishedAll
williamr@2
    40
@released
williamr@2
    41
*/
williamr@2
    42
class CAnimationDataProvider : public CBase
williamr@2
    43
	{
williamr@2
    44
public:
williamr@2
    45
    IMPORT_C void SetObserver(MAnimationDataProviderObserver* aObserver);
williamr@2
    46
    /** Called from the animation when it is ready to begin receiving data. */
williamr@2
    47
    virtual void StartL() = 0;
williamr@2
    48
    /** Called from the animation to obtain the type of data to expect.
williamr@2
    49
    @return An 8 bit identifier string*/
williamr@2
    50
    virtual TPtrC8 DataType() = 0;
williamr@2
    51
protected:
williamr@2
    52
	IMPORT_C CAnimationDataProvider();
williamr@2
    53
	IMPORT_C virtual void CAnimationDataProvider_Reserved1();
williamr@2
    54
	IMPORT_C virtual void CAnimationDataProvider_Reserved2();
williamr@2
    55
williamr@2
    56
    IMPORT_C void SendEventL(TInt aEvent);
williamr@2
    57
    IMPORT_C void SendEventL(TInt aEvent, TInt aData);
williamr@2
    58
    IMPORT_C void SendEventL(TInt aEvent, TAny* aData, TInt aDataSize);
williamr@2
    59
protected: 
williamr@2
    60
	/** Reserved for future use */
williamr@2
    61
	TInt iCAnimationDataProvider_Reserved;
williamr@2
    62
	/** The destination to send data to. Usually an animation class. */
williamr@2
    63
	MAnimationDataProviderObserver* iObserver;
williamr@2
    64
	};
williamr@2
    65
williamr@2
    66
#endif // __ANIMATIONDATAPROVIDER_H__