Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / inc / FUiCtrl_GalleryViewEvent.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 #ifndef _FUI_CTRL_INTERNAL_GALLERY_VIEW_EVENT_H_
18 #define _FUI_CTRL_INTERNAL_GALLERY_VIEW_EVENT_H_
19
20 #include <FBaseObject.h>
21
22 namespace Tizen { namespace Ui { namespace Controls {
23
24 enum GalleryViewEventType
25 {
26         GALLERY_VIEW_EVENT_ERROR = -1,
27         GALLERY_VIEW_EVENT_BOUNDS_CHANGED,
28         GALLERY_VIEW_EVENT_TOUCH_PRESSED,
29         GALLERY_VIEW_EVENT_TOUCH_RELEASED,
30         GALLERY_VIEW_EVENT_TOUCH_DOUBLE_PRESSED,
31         GALLERY_VIEW_EVENT_TOUCH_MOVED,
32         GALLERY_VIEW_EVENT_TOUCH_PINCH_ZOOM,
33         GALLERY_VIEW_EVENT_TOUCH_FLICK
34 };
35
36 class _GalleryViewEventInfo;
37
38 class _GalleryViewEvent
39         : public Tizen::Base::Object
40 {
41 public:
42         _GalleryViewEvent(GalleryViewEventType eventType, _GalleryViewEventInfo* eventInfo);
43         virtual ~_GalleryViewEvent(void);
44
45         GalleryViewEventType GetEventType(void) const;
46         _GalleryViewEventInfo* GetEventInfo(void) const;
47
48 private:
49         _GalleryViewEvent(const _GalleryViewEvent& rhs);
50         _GalleryViewEvent& operator=(const _GalleryViewEvent& rhs);
51
52 private:
53         GalleryViewEventType __eventType;
54         _GalleryViewEventInfo* __pEventInfo;
55 }; // _GalleryViewEvent
56
57 }}} // Tizen::Ui::Controls
58
59 #endif // _FUI_CTRL_INTERNAL_GALLERY_VIEW_EVENT_H_