epoc32/include/animationgroup.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/animationgroup.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/animationgroup.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,72 @@
     1.4 -animationgroup.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 __AnimationGroup_H__
    1.21 +#define __AnimationGroup_H__
    1.22 +
    1.23 +#include <animation.h>
    1.24 +
    1.25 +class CAnimationTls;
    1.26 +
    1.27 +/**
    1.28 +Handles groups of other animations.
    1.29 +
    1.30 +When it is appropriate to have several animations starting and stopping
    1.31 +together, add them all to an animation group and control them through that.
    1.32 +
    1.33 +In addition to making the code easier to both read and write, the animation
    1.34 +group handles synchronisation issues which can occur when issuing a sequence
    1.35 +of asynchronous requests.
    1.36 +
    1.37 +Care must be taken to remove an animation from any groups it may have been
    1.38 +added to before deleting it.
    1.39 +
    1.40 +@publishedAll
    1.41 +@released
    1.42 +*/
    1.43 +class CAnimationGroup : public CAnimation
    1.44 +	{
    1.45 +public:
    1.46 +	static CAnimationGroup* NewL();
    1.47 +	~CAnimationGroup();
    1.48 +	IMPORT_C const RPointerArray<CAnimation>& Animations() const;
    1.49 +	IMPORT_C RPointerArray<CAnimation>& Animations();
    1.50 +	// From CAnimation
    1.51 +	virtual void Start(const TAnimationConfig& aConfig);
    1.52 +	virtual void Stop();
    1.53 +	virtual void Pause();
    1.54 +	virtual void Resume();
    1.55 +	virtual void Hold();
    1.56 +	virtual void Unhold();
    1.57 +	virtual void Freeze();
    1.58 +	virtual void Unfreeze();
    1.59 +	virtual void SetPosition(const TPoint& aPoint);
    1.60 +protected:
    1.61 +	IMPORT_C virtual void CAnimationGroup_Reserved1();
    1.62 +	IMPORT_C virtual void CAnimationGroup_Reserved2();
    1.63 +private:
    1.64 +	TInt iCAnimationGroup_Reserved;
    1.65 +private:
    1.66 +	CAnimationGroup();
    1.67 +	void ConstructL();
    1.68 +	CAnimationGroup(const CAnimationGroup&); // no implementation
    1.69 +	CAnimationGroup& operator=(const CAnimationGroup&);		 // no implementation
    1.70 +private:
    1.71 +	TInt iFreezeCount;
    1.72 +	CAnimationTls* iTls;
    1.73 +	RPointerArray<CAnimation> iAnimations;
    1.74 +	};
    1.75 +
    1.76 +#endif //__AnimationGroup_H__