Initialize Tizen 2.3
[apps/osp/Gallery.git] / inc / GlProgressBar.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.1 (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                GlProgressBar.h
19  * @brief               This is the header file for GlProgressBar class.
20  */
21
22 #ifndef _GL_PROGRESS_BAR_H_
23 #define _GL_PROGRESS_BAR_H_
24
25 #include "GlTypes.h"
26
27 class GlProgressBar
28 {
29 public:
30         GlProgressBar(Tizen::Ui::IActionEventListener* listener,Tizen::Ui::IPropagatedKeyEventListener* __pPropagatedListener);
31         virtual ~GlProgressBar(void);
32
33         void HideFileProgressingPopup(void);
34         void ShowFileProgressingPopup(const int val, enum FileActionMode action);
35         void IncProgress(const int count);
36
37 private:
38         result CreateFileProgressingPopup(void);
39
40 private:
41         int __totalVal;
42         int __curVal;
43         Tizen::Ui::Controls::Popup* __pFileProgressingPopup;
44         Tizen::Ui::Controls::Progress* __pFileProgressingProgress;
45         Tizen::Ui::Controls::Label* __pFileProgressingHeaderLabel;
46         Tizen::Ui::Controls::Label* __pFileProgressingLabel;
47         Tizen::Ui::Controls::Label* __pFileCounterLabel;
48         Tizen::Ui::Controls::Button* __pFileProgressingCancelButton;
49         Tizen::Ui::IActionEventListener* __pActionListener;
50         Tizen::Ui::IPropagatedKeyEventListener* __pPropagatedListener;
51 };
52
53 #endif /* _GL_PROGRESS_BAR_H_ */