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 FUiCtrl_IconListViewItemEventArg.h
20 * @brief This is the header file for _IconListViewItemEventArg class.
22 * This header file contains declaration of _IconListViewItemEventArg class.
26 #ifndef _FUI_CTRL_INTERNAL_ICON_LIST_VIEW_ITEM_EVENT_ARG_H_
27 #define _FUI_CTRL_INTERNAL_ICON_LIST_VIEW_ITEM_EVENT_ARG_H_
29 #include <FBaseObject.h>
30 #include <FBaseRtIEventArg.h>
31 #include <FUiCtrlIconListView.h>
32 #include <FUiCtrlIconListViewTypes.h>
33 #include <FBaseRt_Event.h>
35 namespace Tizen { namespace Ui { namespace Controls
38 enum _IconListViewItemEventType
40 EVENT_TYPE_ITEM_SELECTED = 0,
41 EVENT_TYPE_OVERLAY_BITMAP_SELECTED,
42 EVENT_TYPE_ITEM_REORDERED
46 // @class _IconListViewItemEventArg
47 // @brief This class is used as the argument to item event listener.
49 // This class is used as the argument to item event listener. When an item event is generated
50 // (such as when a button is pressed) the ItemEvent calls ItemEventListener's OnItemStateChanged
51 // with an instance of this class as an argument.
53 // From this class, one can find out, the (event) source object and item event type.
55 class _IconListViewItemEventArg
56 : public Tizen::Base::Object
57 , public Tizen::Base::Runtime::IEventArg
61 _IconListViewItemEventArg(int index, _IconListViewItemEventType eventType);
63 virtual ~_IconListViewItemEventArg(void);
67 int GetIndex(void) const;
69 IconListViewItemStatus GetStatus(void) const;
71 void SetStatus(const IconListViewItemStatus status);
73 int GetOverlayBitmapId(void) const;
75 void SetOverlayBitmapId(const int overlayBitmapId);
77 int GetFromIndex(void) const;
79 int GetToIndex(void) const;
81 void SetToIndex(int toIndex);
83 _IconListViewItemEventType GetEventType(void) const;
87 // The index of an item
92 int __overlayBitmapId;
94 // The status of an item
95 IconListViewItemStatus __itemStatus;
97 _IconListViewItemEventType __eventType;
98 }; // _IconListViewItemEventArg
100 }}} // Tizen::Ui::Controls
102 #endif // _FUI_CTRL_INTERNAL_ICON_LIST_VIEW_ITEM_EVENT_ARG_H_