Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / inc / FUiCtrl_TableViewItemEventArg.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_TableViewItemEventArg.h
20  * @brief       This is the header file for the _TableViewItemEventArg class.
21  *
22  * This header file contains the declarations of the _TableViewItemEventArg class.
23  */
24
25 #ifndef _FUI_CTRL_INTERNAL_TABLE_VIEW_ITEM_EVENT_ARG_H_
26 #define _FUI_CTRL_INTERNAL_TABLE_VIEW_ITEM_EVENT_ARG_H_
27
28 #include <FBaseObject.h>
29 #include <FUiControl.h>
30 #include <FUiCtrlTableViewTypes.h>
31 #include <FBaseRtIEventArg.h>
32 #include <FBaseRt_Event.h>
33
34 namespace Tizen {
35 namespace Ui {
36 namespace Controls {
37 class _TableViewItem;
38
39 enum TableViewNotifyType {
40         TABLEVIEW_NOTIFY_TYPE_SELECTED_ITEM = 0,
41         TABLEVIEW_NOTIFY_TYPE_HIGHLIGHED_ITEM,
42         TABLEVIEW_NOTIFY_TYPE_ANNEX_CHECK,
43         TABLEVIEW_NOTIFY_TYPE_ANNEX_UNCHECK,
44         TABLEVIEW_NOTIFY_TYPE_ANNEX_MORE,
45         TABLEVIEW_NOTIFY_TYPE_SELCTED_CONTEXT_ITEM,
46         TABLEVIEW_NOTIFY_TYPE_ITEM_SWEPT,
47         TABLEVIEW_NOTIFY_TYPE_TOUCH_LONG_PRESSED,
48         TABLEVIEW_NOTIFY_TYPE_REORDERED_ITEM,
49         TABLEVIEW_NOTIFY_TYPE_CONTEXT_ITEM_ACTIVATION,
50         TABLEVIEW_NOTIFY_TYPE_NONE = 0xff
51 };
52
53 class _TableViewItemEventArg
54         : public Tizen::Base::Runtime::IEventArg
55         , public Tizen::Base::Object
56 {
57 // Lifecycle
58 public:
59         _TableViewItemEventArg(int arg1, int arg2, int arg3,int arg4, _TableViewItem* pItem, TableViewNotifyType type, bool activated = false);
60
61         virtual ~_TableViewItemEventArg(void);
62
63 // Accessor
64         int GetArg1(void) const;
65
66         int GetArg2(void) const;
67
68         int GetArg3(void) const;
69
70         int GetArg4(void) const;
71
72         _TableViewItem* GetItem(void) const;
73
74         TableViewNotifyType GetNotifyType(void) const;
75
76         bool GetActivated(void) const;
77
78 private:
79         _TableViewItemEventArg(_TableViewItemEventArg& rhs);
80         _TableViewItemEventArg& operator=(const _TableViewItemEventArg& rhs);
81
82 // Attribute
83 private:
84         int __arg1; // use by groupIndex
85         int __arg2; // use by itemIndex
86         int __arg3;
87         int __arg4;
88         _TableViewItem* __pItem;
89         TableViewNotifyType __type;
90         bool __activated;
91 };
92 // _TableViewItemEventArg
93
94 }}}   // Tizen::Ui::Controls
95
96 #endif // _FUI_CTRL_INTERNAL_TABLE_VIEW_ITEM_EVENT_ARG_H_