3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://floralicense.org/license/
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.
18 //!Internet RadioCustomItem class
19 /*@file: IntRadioCustomItem.h
20 *@brief: The %IntRadioCustomItem defines radio custom item.
24 #ifndef _INT_RADIO_CUSTOM_ITEM_H_
25 #define _INT_RADIO_CUSTOM_ITEM_H_
28 #include <FGraphics.h>
32 : public Tizen::Ui::Controls::CustomItem
36 * @brief The Default Constructor
38 RadioCustomItem(void);
41 * @brief The Default Destructor
43 virtual ~RadioCustomItem(void);
46 * @brief Initializes this instance of %DropDownCustomItem.
48 * @return An error code
49 * @param[in] width The width of the Custom Item
50 * @param[in] height The height of the Custom Item
51 * @exception E_SUCCESS The method is successful.
52 * @exception E_INVALID_STATE This instance has already been constructed.
53 * @exception E_INVALID_ARG A specified input parameter is invalid.
54 * @exception E_OUT_OF_MEMORY The memory is insufficient.
55 * @exception E_SYSTEM A system error has occurred.
58 result Construct(int width, int height);
60 //getter and setter methods for Text
63 * @brief The method used to get the text of CustomItem
64 * @return An error code
66 Tizen::Base::String GetText(void);
69 * @brief Add all the required elements and create the Custom Item.
71 * @return An error code
72 * @param[in] void An instance of the Rectangle class @n
73 * This instance represents the x and y coordinates of the top-left corner of the created window along with
74 * the width and height of the window.
75 * @exception E_SUCCESS The method is successful.
76 * @exception E_INVALID_STATE This instance has already been constructed.
77 * @exception E_INVALID_ARG A specified input parameter is invalid.
78 * @exception E_OUT_OF_MEMORY The memory is insufficient.
79 * @exception E_SYSTEM A system error has occurred.
85 * @brief The method used to set the text of CustomItem
86 * @return An error code
88 void SetText(Tizen::Base::String& text);
91 static const int IDA_FORMAT_STRING;
94 int __height; ///Height of the SettingToggleCustomItem Instance
95 Tizen::Base::String __text; ///The Text for the Toggle Button
96 int __width; ///Width of the SettingToggleCustomItem Instance
97 int __fontSize; ///fontsize from settings
100 #endif /* _INT_RADIO_CUSTOM_ITEM_H_ */