2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
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.
19 * @file FUiIGroupedItemEventListener.h
20 * @brief This is the header file for the %IGroupedItemEventListener interface.
22 * This header file contains the declarations of the %IGroupedItemEventListener interface.
25 #ifndef _FUI_IGROUPED_ITEM_EVENT_LISTENER_H_
26 #define _FUI_IGROUPED_ITEM_EVENT_LISTENER_H_
28 #include <FBaseRtIEventListener.h>
29 #include <FUiIItemEventListener.h>
31 namespace Tizen { namespace Ui
36 namespace Tizen {namespace Ui
41 * @interface IGroupedItemEventListener
42 * @brief <i> [Deprecated] </i> This interface implements the listener for the events on the items of GroupedList.
44 * @deprecated This class is deprecated. Instead of using this class, use IGroupedListViewItemEventListener class.
48 * The %IGroupedItemEventListener interface implements a listener for detecting state changes on the item of the grouped list.
49 * The interface is registered with a GroupedList, using the control's AddGroupedItemEventListener() method.
52 class _OSP_EXPORT_ IGroupedItemEventListener
53 : public Tizen::Base::Runtime::IEventListener
58 * This is the default constructor for this class.
60 * @brief <i> [Deprecated] </i>
61 * @deprecated This class is deprecated. Instead of using this class, use IGroupedListViewItemEventListener class.
65 IGroupedItemEventListener(void) {};
69 * This is the destructor for this class.
71 * @brief <i> [Deprecated] </i>
72 * @deprecated This class is deprecated. Instead of using this class, use IGroupedListViewItemEventListener class.
76 virtual ~IGroupedItemEventListener(void) {};
80 * Called when the state of an element in the CustomListItem instance in the GroupedList instance is changed. @n
81 * For example, this method is called when an element of %CustomListItem in %GroupedList is checked, unchecked, or selected.
83 * @brief <i> [Deprecated] </i>
84 * @deprecated This class is deprecated. Instead of using this class, use IGroupedListViewItemEventListener class.
87 * @param[in] source The source of the event
88 * @param[in] groupIndex The index of the list group
89 * @param[in] itemIndex The index of the list item in the specified group
90 * @param[in] itemId The item ID
91 * @param[in] elementId The element ID
92 * @param[in] status The state of the element
93 * @remarks If GroupedList or SlidableGroupedList is constructed with CUSTOM_LIST_STYLE_RADIO_WITH_DIVIDER, this method is not called when the
94 * radio button is selected. Instead, OnItemStateChanged(const Tizen::Ui::Control &source, int groupIndex, int itemIndex, int itemId,
95 * Tizen::Ui::ItemStatus status) is called.
98 virtual void OnItemStateChanged(const Tizen::Ui::Control& source, int groupIndex, int itemIndex, int itemId, int elementId, Tizen::Ui::ItemStatus status) = 0;
102 * Called when the state of an item in the grouped list is changed. @n
103 * For example, this method is called when an item of the GroupedList control is checked, unchecked, or selected.
105 * @brief <i> [Deprecated] </i>
106 * @deprecated This class is deprecated. Instead of using this class, use IGroupedListViewItemEventListener class.
109 * @param[in] source The source of the event
110 * @param[in] groupIndex The index of the list group
111 * @param[in] itemIndex The index of the list item in the specified group
112 * @param[in] itemId The item ID
113 * @param[in] status The state of the item
114 * @remarks If GroupedList or SlidableGroupedList is constructed with CUSTOM_LIST_STYLE_RADIO_WITH_DIVIDER, this method is called when the radio
115 * button is selected.
118 virtual void OnItemStateChanged(const Tizen::Ui::Control& source, int groupIndex, int itemIndex, int itemId, Tizen::Ui::ItemStatus status) = 0;
119 }; //IGroupedItemEventListener
123 #endif //_FUI_IGROUPED_ITEM_EVENT_LISTENER_H_