1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/mw/animationgroup.h Wed Mar 31 12:27:01 2010 +0100
1.3 @@ -0,0 +1,72 @@
1.4 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// 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.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef __AnimationGroup_H__
1.20 +#define __AnimationGroup_H__
1.21 +
1.22 +#include <animation.h>
1.23 +
1.24 +class CAnimationTls;
1.25 +
1.26 +/**
1.27 +Handles groups of other animations.
1.28 +
1.29 +When it is appropriate to have several animations starting and stopping
1.30 +together, add them all to an animation group and control them through that.
1.31 +
1.32 +In addition to making the code easier to both read and write, the animation
1.33 +group handles synchronisation issues which can occur when issuing a sequence
1.34 +of asynchronous requests.
1.35 +
1.36 +Care must be taken to remove an animation from any groups it may have been
1.37 +added to before deleting it.
1.38 +
1.39 +@publishedAll
1.40 +@released
1.41 +*/
1.42 +class CAnimationGroup : public CAnimation
1.43 + {
1.44 +public:
1.45 + static CAnimationGroup* NewL();
1.46 + ~CAnimationGroup();
1.47 + IMPORT_C const RPointerArray<CAnimation>& Animations() const;
1.48 + IMPORT_C RPointerArray<CAnimation>& Animations();
1.49 + // From CAnimation
1.50 + virtual void Start(const TAnimationConfig& aConfig);
1.51 + virtual void Stop();
1.52 + virtual void Pause();
1.53 + virtual void Resume();
1.54 + virtual void Hold();
1.55 + virtual void Unhold();
1.56 + virtual void Freeze();
1.57 + virtual void Unfreeze();
1.58 + virtual void SetPosition(const TPoint& aPoint);
1.59 +protected:
1.60 + IMPORT_C virtual void CAnimationGroup_Reserved1();
1.61 + IMPORT_C virtual void CAnimationGroup_Reserved2();
1.62 +private:
1.63 + TInt iCAnimationGroup_Reserved;
1.64 +private:
1.65 + CAnimationGroup();
1.66 + void ConstructL();
1.67 + CAnimationGroup(const CAnimationGroup&); // no implementation
1.68 + CAnimationGroup& operator=(const CAnimationGroup&); // no implementation
1.69 +private:
1.70 + TInt iFreezeCount;
1.71 + CAnimationTls* iTls;
1.72 + RPointerArray<CAnimation> iAnimations;
1.73 + };
1.74 +
1.75 +#endif //__AnimationGroup_H__