Using UI builder at AlbumListEditor
[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.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                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 <FUi.h>
26 #include "GlTypes.h"
27
28 class GlProgressBar
29 {
30 public:
31         GlProgressBar(Tizen::Ui::IActionEventListener* listener);
32         ~GlProgressBar(void);
33
34         void HideFileProgressingPopup(void);
35         void ShowFileProgressingPopup(int val, enum FileActionMode action);
36         void IncProgress(int count);
37
38 private:
39         result CreateFileProgressingPopup(void);
40
41 private:
42         int __totalVal;
43         int __curVal;
44         Tizen::Ui::Controls::Popup* __pFileProgressingPopup;
45         Tizen::Ui::Controls::Progress* __pFileProgressingProgress;
46         Tizen::Ui::Controls::Label* __pFileProgressingHeaderLabel;
47         Tizen::Ui::Controls::Label* __pFileProgressingLabel;
48         Tizen::Ui::Controls::Button* __pFileProgressingCancelButton;
49         Tizen::Ui::IActionEventListener* __pActionListener;
50 };
51
52 #endif /* _GL_PROGRESS_BAR_H_ */