Copy Feature Implementation
[apps/osp/Gallery.git] / inc / GlProgressAnimation.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://floralicense.org/license/
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file                GlProgressAnimation.h
19  * @brief               This is the header file for GlProgressAnimation class.
20  */
21
22 #ifndef _GLPROGRESSANIMATION_H_
23 #define _GLPROGRESSANIMATION_H_
24
25 #include <FApp.h>
26 #include <FBase.h>
27 #include <FGraphics.h>
28 #include <FMedia.h>
29 #include <FUi.h>
30
31 class ProgressAnimation
32         : public Tizen::Ui::Controls::Panel
33 {
34 public:
35         ProgressAnimation(void);
36         virtual ~ProgressAnimation(void);
37
38         result Construct(Tizen::Graphics::Rectangle rect);
39
40         void AnimationStart(void);
41         void AnimationStop(void);
42
43 private:
44         static const int DURATION = 500;
45         static const int PROGRESS_COUNT = 30;
46
47         Tizen::Ui::Controls::Animation* __pAnimation;
48         Tizen::Base::Collection::ArrayList* __pAnimationFrameList;
49 };
50
51 #endif // _GLPROGRESSANIMATION_H_