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