epoc32/include/spriteanimationclient.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __SPRITEANIMATIONCLIENT_H__
       
    17 #define __SPRITEANIMATIONCLIENT_H__
       
    18 
       
    19 #include <w32std.h>
       
    20 
       
    21 class TAnimationConfig;
       
    22 
       
    23 /** @internalComponent */
       
    24 NONSHARABLE_CLASS(RSpriteAnimationClient) : public RAnim
       
    25 	{
       
    26 public:
       
    27 	RSpriteAnimationClient(RAnimDll& aAnimDll);
       
    28 	~RSpriteAnimationClient();
       
    29 	void ConstructL(const RWsSprite& aDevice, const TDesC8& aDataType);
       
    30 	void ConstructL(const RWsSprite& aDevice, const TDesC8& aDataType, TInt aHostHandle);
       
    31 	void Start(const TAnimationConfig& aConfig);
       
    32 	void Stop();
       
    33 	void Pause();
       
    34 	void Resume();
       
    35 	void Hold();
       
    36 	void Unhold();
       
    37 	void Freeze();
       
    38 	void Unfreeze();
       
    39 	void SendEventL(TInt aEvent, const TAny* aData, TInt aDataLength);
       
    40 	TSize Size();
       
    41 protected:
       
    42 	void SetMinBufferSizeL(TInt aSize);
       
    43 private:
       
    44 	TPtr8 iBuf;
       
    45 	};
       
    46 	
       
    47 #endif // __SPRITEANIMATIONCLIENT_H__