Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / inc / FUiCtrl_UiListViewItemEventArg.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
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
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
18 /**
19  * @file        FUiCtrl_UiListViewItemEventArg.h
20  * @brief       This is the header file for the _UiListViewItemEventArg class.
21  *
22  * This header file contains the declarations of the _UiListViewItemEventArg class.
23  */
24
25 #ifndef _FUI_CTRL_INTERNAL_LIST_VIEW_ITEM_EVENT_ARG_H_
26 #define _FUI_CTRL_INTERNAL_LIST_VIEW_ITEM_EVENT_ARG_H_
27
28 #include <FBaseObject.h>
29 #include <FBaseRtIEventArg.h>
30 #include <FBaseRt_Event.h>
31
32 namespace Tizen { namespace Ui { namespace Controls
33 {
34
35 enum ListViewItemEventNotifyType
36 {
37         NOTIFY_TYPE_ITEM_LONGPRESSED = 0,
38         NOTIFY_TYPE_CONTEXTITEM_SELCTED,
39         NOTIFY_TYPE_CONTEXTITEM_HIGHLIGHTED,
40 };
41
42 class _UiListViewItemEventArg
43         : public Tizen::Base::Runtime::IEventArg
44 {
45
46 public:
47         _UiListViewItemEventArg(int arg1, int arg2, int arg3, ListViewItemEventNotifyType type);
48
49         virtual ~_UiListViewItemEventArg(void);
50
51         int GetArg1(void) const;
52
53         int GetArg2(void) const;
54
55         int GetArg3(void) const;
56
57         ListViewItemEventNotifyType GetNotifyType(void) const;
58
59 private:
60         _UiListViewItemEventArg(const _UiListViewItemEventArg& rhs);
61
62         _UiListViewItemEventArg& operator=(const _UiListViewItemEventArg& rhs);
63
64 private:
65         int __arg1;  // use by groupIndex
66         int __arg2;  // use by itemIndex
67         int __arg3;  // use by elementId
68         ListViewItemEventNotifyType __type;
69 }; // _UiListViewItemEventArg
70
71 }}} // Tizen::Ui::Controls
72
73 #endif // _FUI_CTRL_INTERNAL_LIST_VIEW_ITEM_EVENT_ARG_H_