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