merge with master
[apps/osp/Internet.git] / inc / IntSettingToggleCustomItem.h
1 //\r
2 \r
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
4 //\r
5 // Licensed under the Flora License, Version 1.0 (the License);\r
6 // you may not use this file except in compliance with the License.\r
7 // You may obtain a copy of the License at\r
8 //\r
9 //     http://floralicense.org/license/\r
10 //\r
11 // Unless required by applicable law or agreed to in writing, software\r
12 // distributed under the License is distributed on an AS IS BASIS,\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14 // See the License for the specific language governing permissions and\r
15 // limitations under the License.\r
16 //\r
17 \r
18 //!Internet SettingToggleCustomItem class\r
19 /*@file:        SettingToggleCustomItem.h\r
20  *@brief:       The SettingToggleCustomItem used to toggle the item.\r
21  *\r
22  */\r
23 \r
24 #ifndef _INT_SETTING_TOGGLE_CUSTOM_ITEM_H_\r
25 #define _INT_SETTING_TOGGLE_CUSTOM_ITEM_H_\r
26 \r
27 #include <FBase.h>\r
28 #include <FGraphics.h>\r
29 #include "IntTypes.h"\r
30 \r
31 class SettingToggleCustomItem\r
32         : public Tizen::Ui::Controls::CustomItem\r
33 {\r
34 \r
35 public:\r
36         /**\r
37          * @brief The Default constructor\r
38          */\r
39         SettingToggleCustomItem(void);\r
40 \r
41         /**\r
42          * @brief The Default destructor\r
43          */\r
44         virtual ~SettingToggleCustomItem(void);\r
45 \r
46         /**\r
47          * @brief Initializes this instance of %DropDownCustomItem.\r
48          *\r
49          * @return              An error code\r
50          * @param[in]   void                            An instance of the Rectangle class @n\r
51          *                                                                      This instance represents the x and y coordinates of the top-left corner of the created window along with\r
52          *                                                                      the width and height of the window.\r
53          * @exception   E_SUCCESS                       The method is successful.\r
54          * @exception   E_INVALID_STATE         This instance has already been constructed.\r
55          * @exception   E_INVALID_ARG       A specified input parameter is invalid.\r
56          * @exception   E_OUT_OF_MEMORY     The memory is insufficient.\r
57          * @exception   E_SYSTEM                        A system error has occurred.\r
58          *\r
59          */\r
60         result Construct(int width, int height);\r
61 \r
62         //getter and setter methods for __text\r
63 \r
64         /**\r
65          * @brief The method used to get the text of CustomItem\r
66          *\r
67          * @return              A String\r
68          */\r
69         Tizen::Base::String GetText(void);\r
70 \r
71         /**\r
72          * @brief Add all the required elements and create the Custom Item.\r
73          *\r
74          * @return              An error code\r
75          * @param[in]   void                            An instance of the Rectangle class @n\r
76          *                                                                      This instance represents the x and y coordinates of the top-left corner of the created window along with\r
77          *                                                                      the width and height of the window.\r
78          * @exception   E_SUCCESS                       The method is successful.\r
79          * @exception   E_INVALID_STATE         This instance has already been constructed.\r
80          * @exception   E_INVALID_ARG       A specified input parameter is invalid.\r
81          * @exception   E_OUT_OF_MEMORY     The memory is insufficient.\r
82          * @exception   E_SYSTEM                        A system error has occurred.\r
83          *\r
84          */\r
85         result Make(void);\r
86 \r
87         /**\r
88          * @brief The method used to set the text of CustomItem\r
89          */\r
90 \r
91         void SetText(Tizen::Base::String& text);\r
92 \r
93 \r
94 \r
95 private:\r
96         int __height;               ///Height of the SettingToggleCustomItem Instance\r
97         int __width;                ///Width of the SettingToggleCustomItem Instance\r
98 \r
99         Tizen::Base::String __text;   ///The Text for the Toggle Button\r
100 \r
101 };\r
102 \r
103 #endif /* _INT_SETTING_TOGGLE_CUSTOM_ITEM_H_ */\r