2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0/
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 FUiISlidableGroupedListEventListener.h
20 * @brief This is the header file for the %ISlidableGroupedListEventListener interface.
22 * This header file contains the declarations of the %ISlidableGroupedListEventListener interface. @n
23 * If an event is generated, a method of this interface is called. @n
24 * So, if an application performs tasks related to item events, it uses the methods of this interface.
27 #ifndef _FUI_ISLIDABLE_GROUPED_LIST_EVENT_LISTENER_H_
28 #define _FUI_ISLIDABLE_GROUPED_LIST_EVENT_LISTENER_H_
30 #include <FBaseRtIEventListener.h>
32 namespace Tizen { namespace Ui
37 namespace Tizen {namespace Ui
42 * @interface ISlidableGroupedListEventListener
43 * @brief <i> [Deprecated] </i> This interface implements the listener for events on SlidableGroupedList.
44 * @deprecated This interface is deprecated. Instead of using this interface, use the IGroupedListViewItemEventListener interface.
47 * The %ISlidableGroupedListEventListener interface implements a listener for receiving scroll events on SlidableGroupedList. @n
48 * The role of this interface is similar to ISlidableListEventListener.
49 * This interface is registered with a %SlidableGroupedList, using the SlidableGroupedList::AddSlidableGroupedListEventListener() method.
52 class _OSP_EXPORT_ ISlidableGroupedListEventListener
53 : public Tizen::Base::Runtime::IEventListener
59 * This is the destructor for this class.
61 * @brief <i> [Deprecated] </i> This interface implements the listener for events on SlidableGroupedList.
62 * @deprecated This interface is deprecated. Instead of using this interface, use the IGroupedListViewItemEventListener interface.
66 virtual ~ISlidableGroupedListEventListener(void) {}
70 * Called when the SlidableGroupedList is about to be drawn and requests the listener to set the properties of the list such as the total height and the
71 * number of items in each group.
73 * @brief <i> [Deprecated] </i> This interface implements the listener for events on SlidableGroupedList.
74 * @deprecated This interface is deprecated. Instead of using this interface, use the IGroupedListViewItemEventListener interface.
76 * @param[in] source The source of the event
79 virtual void OnListPropertyRequested(const Tizen::Ui::Control& source) = 0;
83 * Called when the items need to be loaded to the top.
85 * @brief <i> [Deprecated] </i> This interface implements the listener for events on SlidableGroupedList.
86 * @deprecated This interface is deprecated. Instead of using this interface, use the IGroupedListViewItemEventListener interface.
88 * @param[in] source The source of the event
89 * @param[in] groupIndex The index of the list group
90 * @param[in] itemIndex The index of the list item in the specified group
91 * @param[in] numItems The number of items
94 virtual void OnLoadToTopRequested(const Tizen::Ui::Control& source, int groupIndex, int itemIndex, int numItems) = 0;
98 * Called when the items need to be loaded to the bottom.
100 * @brief <i> [Deprecated] </i> This interface implements the listener for events on SlidableGroupedList.
101 * @deprecated This interface is deprecated. Instead of using this interface, use the IGroupedListViewItemEventListener interface.
103 * @param[in] source The source of the event
104 * @param[in] groupIndex The index of the list group
105 * @param[in] itemIndex The index of the list item in the specified group
106 * @param[in] numItems The number of items
109 virtual void OnLoadToBottomRequested(const Tizen::Ui::Control& source, int groupIndex, int itemIndex, int numItems) = 0;
113 * Called when an item is about to be unloaded from memory. @n
114 * The user-allocated resources associated with the item to be unloaded need to be freed when OnUnloadItemRequested() is called.
116 * @brief <i> [Deprecated] </i> This interface implements the listener for events on SlidableGroupedList.
117 * @deprecated This interface is deprecated. Instead of using this interface, use the IGroupedListViewItemEventListener interface.
120 * @param[in] source The source of the event
121 * @param[in] groupIndex The index of the list group
122 * @param[in] itemIndex The index of the list item in the specified group
125 virtual void OnUnloadItemRequested(const Tizen::Ui::Control& source, int groupIndex, int itemIndex) = 0;
127 }; //ISlidableGroupedListEventListener
131 #endif // _FUI_ISLIDABLE_GROUPED_LIST_EVENT_LISTENER_H_