Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / controls / FUiCtrl_AnimationModel.cpp
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  * @file                FUiCtrl_AnimationModel.cpp
19  * @brief               This is the implementation file for the _AnimationModel class.
20  */
21
22 #include "FUiCtrl_AnimationModel.h"
23
24
25 namespace Tizen { namespace Ui { namespace Controls
26 {
27
28 _AnimationModel::_AnimationModel(void)
29         : __animationStatus(ANIMATION_STOPPED)
30         , __imageCount(0)
31         , __repeatCount(1)
32         , __currentRepeatedCount(0)
33 {
34 }
35
36 _AnimationModel::~_AnimationModel(void)
37 {
38 }
39
40 void
41 _AnimationModel::SetAnimationStatus(AnimationStatus status)
42 {
43         __animationStatus = status;
44
45         return;
46 }
47
48 AnimationStatus
49 _AnimationModel::GetAnimationStatus(void) const
50 {
51         return __animationStatus;
52 }
53
54 void
55 _AnimationModel::SetImageCount(int imageCount)
56 {
57         __imageCount = imageCount;
58
59         return;
60 }
61
62 int
63 _AnimationModel::GetImageCount(void) const
64 {
65         return __imageCount;
66 }
67
68 void
69 _AnimationModel::SetRepeatCount(int repeatCount)
70 {
71         __repeatCount = repeatCount;
72
73         return;
74 }
75
76 int
77 _AnimationModel::GetRepeatCount(void) const
78 {
79         return __repeatCount;
80 }
81
82 void
83 _AnimationModel::SetCurrentRepeatedCount(int currentRepeatCount)
84 {
85         __currentRepeatedCount = currentRepeatCount;
86
87         return;
88 }
89
90 int
91 _AnimationModel::GetCurrentRepeatedCount(void) const
92 {
93         return __currentRepeatedCount;
94 }
95
96 }}} // Tizen::Ui::Controls