Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / animations / FUiAnim_VisualElementAnimationGroupImpl.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://floralicense.org/license/
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file        FUiAnim_VisualElementAnimationGroupImpl.h
20  * @brief       This is the header file for the _VisualElementAnimationGroupImpl class.
21  *
22  * This header file contains the declarations of the _VisualElementAnimationGroupImpl class.
23  */
24
25 #ifndef _FUI_ANIM_INTERNAL_VISUAL_ELEMENT_ANIMATION_GROUP_IMPL_H_
26 #define _FUI_ANIM_INTERNAL_VISUAL_ELEMENT_ANIMATION_GROUP_IMPL_H_
27
28 #include <FBaseErrorDefine.h>
29 #include <FBaseObject.h>
30 #include <FUiVariant.h>
31
32 #include "FUiAnim_VisualElementAnimationImpl.h"
33
34
35 namespace Tizen { namespace Ui { namespace Animations
36 {
37
38
39 class VisualElementAnimation;
40 class VisualElementAnimationGroup;
41
42 class _VisualElementAnimationGroupImpl
43         : public _VisualElementAnimationImpl
44 {
45 public:
46         _VisualElementAnimationGroupImpl(void);
47         _VisualElementAnimationGroupImpl(const _VisualElementAnimationGroupImpl& animationImpl);
48         virtual ~_VisualElementAnimationGroupImpl(void);
49
50         virtual bool Equals(const Tizen::Base::Object& obj) const;
51         virtual int GetHashCode(void) const;
52
53         result CopyAnimationValue(const _VisualElementAnimationGroupImpl& animationGroupImpl);
54
55         int GetAnimationCount(void) const;
56         result AddAnimation(const VisualElementAnimation& animation);
57         result RemoveAnimationAt(int index);
58         void RemoveAllAnimations(void);
59         VisualElementAnimation* GetAnimationAtN(int index) const;
60
61         // for internal
62         VisualElementAnimation* GetAnimation(int index) const;
63
64         static _VisualElementAnimationGroupImpl* GetInstance(VisualElementAnimationGroup& pAnimation);
65         static const _VisualElementAnimationGroupImpl* GetInstance(const VisualElementAnimationGroup& pAnimation);
66
67 private:
68         _VisualElementAnimationGroupImpl& operator =(const _VisualElementAnimationGroupImpl& rhs);
69
70 private:
71         Tizen::Base::Collection::ArrayList __animationList;
72 };              // _VisualElementAnimationGroupImpl
73
74
75 }}}             // Tizen::Ui::Animations
76
77 #endif // _FUI_ANIM_INTERNAL_VISUAL_ELEMENT_ANIMATION_GROUP_IMPL_H_