epoc32/include/animation.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/animation.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/animation.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,75 @@
     1.4 -animation.h
     1.5 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// 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
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +
    1.20 +#ifndef __ANIMATION_H__
    1.21 +#define __ANIMATION_H__
    1.22 +
    1.23 +#include <animationmixins.h>
    1.24 +
    1.25 +class TAnimationConfig;
    1.26 +
    1.27 +/** Pure virtual base class for animations.
    1.28 +
    1.29 +This defines an abstracted interface between a client application and an
    1.30 +animation.  Most of the implementation details are handled by an animator
    1.31 +plugin.  The source of the animation data and its interpretation are usually
    1.32 +handled by a data provider.
    1.33 +
    1.34 +@see CAnimationDataProvider
    1.35 +@see CAnimator
    1.36 +@see MAnimationObserver
    1.37 +@publishedAll
    1.38 +@released*/
    1.39 +class CAnimation : public CBase
    1.40 +	{
    1.41 +public:
    1.42 +	/** Causes the animation to start, at the first time step or logical
    1.43 +	equivalent.  If the animation is already running, it rewinds.
    1.44 +	@see TAnimationConfig
    1.45 +	@param aConfig Specifies run time attributes of the animation.*/
    1.46 +	virtual void Start(const TAnimationConfig& aConfig) = 0;
    1.47 +	/** Causes the animation to stop, and rewinds to the first frame.*/
    1.48 +	virtual void Stop() = 0;
    1.49 +	/** Causes the animation to stop, but without rewinding.*/
    1.50 +	virtual void Pause() = 0;
    1.51 +	/** Causes a paused animation to continue from where it left off.*/
    1.52 +	virtual void Resume() = 0;
    1.53 +	/** Puts an animation on hold, which is similar to pause, but keeps
    1.54 +	track of the time steps passing and catches up when resumed.  This
    1.55 +	can be used to temporarily cease processing an animation without it
    1.56 +	getting out of step with others.*/
    1.57 +	virtual void Hold() = 0;
    1.58 +	/** Resumes a held animation.*/
    1.59 +	virtual void Unhold() = 0;
    1.60 +	/** Sets the coordinates of the animation.  This generally refers
    1.61 +	to the top left corner of the total area the animation covers.
    1.62 +	@param aPoint The new coordinates of the animation (usually the top left
    1.63 +	corner)*/
    1.64 +	virtual void SetPosition(const TPoint& aPoint) = 0;
    1.65 +	/** Causes whatever ticker this animation provides to its animator to
    1.66 +	be frozen untill a corresponding call to unfreeze.
    1.67 +	
    1.68 +	You should not normally need to call this function.
    1.69 +	@see Unfreeze()*/
    1.70 +	virtual void Freeze() = 0;
    1.71 +	/** Causes whatever ticker this animation provides to its animator to
    1.72 +	be unfrozen.
    1.73 +	
    1.74 +	You should not normally need to call this function.
    1.75 +	@see Freeze()*/	
    1.76 +	virtual void Unfreeze() = 0;
    1.77 +	};
    1.78 +
    1.79 +#endif //__ANIMATION_H__