merge with master
[apps/osp/Internet.git] / inc / IntDefaultCustomItem.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 //!Internet\r
18 /*@file:    DefaultCustomItem\r
19  *@brief:       This class defines common behaviour of custom Item.\r
20  *\r
21  */\r
22 \r
23 #ifndef _INT_DEFAULT_CUSTOM_ITEM_H_\r
24 #define _INT_DEFAULT_CUSTOM_ITEM_H_\r
25 \r
26 \r
27 \r
28 #include <FBase.h>\r
29 #include <FGraphics.h>\r
30 #include <FUi.h>\r
31 \r
32 \r
33 class DefaultCustomItem\r
34         : public Tizen::Ui::Controls::CustomItem\r
35 {\r
36 \r
37 public:\r
38         /**\r
39          * @brief The Default Constructor\r
40          */\r
41         DefaultCustomItem(void);\r
42 \r
43         /**\r
44          * @brief The Default Destructor\r
45          */\r
46         virtual ~DefaultCustomItem(void);\r
47 \r
48         /**\r
49          * @brief Initializes this instance of %DropDownCustomItem.\r
50          */\r
51         result Construct(int width, int height);\r
52 \r
53 \r
54         //getter and setter methods for Text\r
55 \r
56         /**\r
57          * @brief The method used to get the text of CustomItem\r
58          */\r
59         Tizen::Base::String GetText(void);\r
60 \r
61         /**\r
62          * @brief Add all the required elements and create the Custom Item.\r
63          */\r
64         result Make(void);\r
65 \r
66         /**\r
67          * @brief The method used to set the text of CustomItem\r
68          */\r
69         void SetText(Tizen::Base::String& text);\r
70 protected:\r
71         static const int IDA_FORMAT_STRING;\r
72 \r
73 private:\r
74         int __height;               ///Height of the SettingToggleCustomItem Instance\r
75         Tizen::Base::String __text;   ///The Text for the Toggle Button\r
76         int __width;                ///Width of the SettingToggleCustomItem Instance\r
77 };\r
78 \r
79 #endif /* _INT_DEFAULT_CUSTOM_ITEM_H_ */\r