Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / inc / FUiCtrl_ProgressImpl.h
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_ProgressImpl.h
19  * @brief               This is the header file for the _ProgressImpl class.
20  *
21  * This header file contains the declarations of the %_ProgressImp class.
22  */
23 #ifndef _FUI_CTRL_INTERNAL_PROGRESS_IMPL_H_
24 #define _FUI_CTRL_INTERNAL_PROGRESS_IMPL_H_
25
26 #include "FUi_ControlImpl.h"
27 #include "FUiCtrl_Progress.h"
28
29 namespace Tizen { namespace Graphics
30 {
31 class Dimension;
32 }} // Tizen::Graphics
33
34 namespace Tizen { namespace Ui { namespace Controls
35 {
36 class Progress;
37
38
39 class _ProgressImpl
40         : public Tizen::Ui::_ControlImpl
41 {
42 public:
43         virtual ~_ProgressImpl(void);
44
45 public:
46         result SetValue(int value);
47         result SetRange(int minValue, int maxValue);
48         int GetValue(void) const;
49         result GetRange(int& minValue, int& maxValue) const;
50         int GetPercentComplete(void) const;
51         result SetBarColor(const Tizen::Graphics::Color& color);
52         Tizen::Graphics::Color GetBarColor(void) const;
53
54         virtual const char* GetPublicClassName(void) const;
55         virtual const Progress& GetPublic(void) const;
56         virtual Progress& GetPublic(void);
57         virtual const _Progress& GetCore(void) const;
58         virtual _Progress& GetCore(void);
59
60         static _ProgressImpl* CreateProgressImplN(Progress* pControl, const Tizen::Graphics::Rectangle& bounds);
61         static _ProgressImpl* GetInstance(Progress& progress);
62         static const _ProgressImpl* GetInstance(const Progress& progress);
63
64 private:
65         _ProgressImpl(Progress* pPublic, _Progress* pCore);
66         _ProgressImpl(const _ProgressImpl&);
67         _ProgressImpl& operator =(const _ProgressImpl&);
68
69 };  // _ProgressImpl
70
71 }}} // Tizen::Ui::Controls
72
73 #endif  //_FUI_CTRL_INTERNAL_PROGRESS_IMPL_H_