lafagnosticuifoundation/animation/src/SpriteAnimationClient.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.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