Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / inc / FUiCtrl_DateTimeBarItem.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 /**
19  * @file                FUiCtrl_DateTimeBarItem.h
20  * @brief               This is the header file for the _DateTimeBarItem class.
21  *
22  * This header file contains the declarations of the %_DateTimeBarItem class.
23  */
24 #ifndef _FUI_CTRL_INTERNAL_DATETIMEBAR_ITEM_H_
25 #define _FUI_CTRL_INTERNAL_DATETIMEBAR_ITEM_H_
26
27 #include "FUi_Control.h"
28 #include "FUiCtrl_DateTimeDefine.h"
29
30 namespace Tizen { namespace Ui { namespace Controls
31 {
32
33 class _DateTimeBarItem
34         : public Tizen::Base::Object
35 {
36 public:
37         ~_DateTimeBarItem(void);
38
39 public:
40         static _DateTimeBarItem* CreateInstanceN(_DateTimeBarAlignment alignment, int itemWidth);
41         void SetActionId(int actionId);
42         int GetActionId(void) const;
43
44         void SetText(const Tizen::Base::String& text);
45         Tizen::Base::String GetText(void) const;
46
47         void SetStatus(_DateTimeBarItemStatus status);
48         _DateTimeBarItemStatus GetStatus(void) const;
49
50         void SetBounds(const Tizen::Graphics::Rectangle& bounds);
51         Tizen::Graphics::Rectangle GetBounds(void) const;
52
53 private:
54         _DateTimeBarItem(void);
55
56         _DateTimeBarItem(const _DateTimeBarItem&);
57         _DateTimeBarItem& operator =(const _DateTimeBarItem&);
58
59 private:
60         int __actionId;
61         Tizen::Base::String __text;
62         _DateTimeBarItemStatus __status;
63         Tizen::Graphics::Rectangle __bounds;
64 }; // _DateTimeBarItem
65
66 }}} // Tizen::Ui::Controls
67
68 #endif  // _FUI_CTRL_INTERNAL_DATETIMEBAR_ITEM_H_