Revert " modify license, permission and remove ^M char"
[framework/osp/uifw.git] / src / ui / inc / FUi_TouchLongPressGestureDetectorImpl.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  * @file                        FUi_TouchLongPressGestureDetectorImpl.h
19  * @brief               This is the header file for the %_TouchLongPressGestureDetectorImpl class.
20  *
21  * This header file contains the declarations of the %_TouchLongPressGestureDetectorImpl class.
22  *
23  */
24
25 #ifndef _FUI_INTERNAL_TOUCH_LONG_PRESS_GESTURE_DETECTOR_IMPL_H
26 #define _FUI_INTERNAL_TOUCH_LONG_PRESS_GESTURE_DETECTOR_IMPL_H
27
28 #include <FUiTouchLongPressGestureDetector.h>
29 #include "FUi_TouchGestureDetectorImpl.h"
30 #include "FUi_TouchLongPressGestureDetector.h"
31
32 namespace Tizen { namespace Ui
33 {
34
35 /**
36  * @class               _TouchLongPressGestureDetectorImpl
37  * @brief
38  * @since 2.0
39  *
40  */
41 class _TouchLongPressGestureDetectorImpl
42         : public Tizen::Ui::_TouchGestureDetectorImpl
43 {
44 public:
45         virtual ~_TouchLongPressGestureDetectorImpl(void);
46
47         static _TouchLongPressGestureDetectorImpl* CreateInstanceN(TouchLongPressGestureDetector* pPublic);
48
49         const _TouchLongPressGestureDetector& GetCore(void) const;
50         _TouchLongPressGestureDetector& GetCore(void);
51
52         static _TouchLongPressGestureDetectorImpl* GetInstance(TouchLongPressGestureDetector& gestureDetector);
53         static const _TouchLongPressGestureDetectorImpl* GetInstance(const TouchLongPressGestureDetector& gestureDetector);
54
55         result SetDuration(int duration);
56         int GetDuration(void) const;
57
58         result SetMoveAllowance(int allowance);
59         int GetMoveAllowance(void) const;
60
61         result SetMoveAllowance(float allowance);
62         float GetMoveAllowanceF(void) const;
63
64         result SetTouchCount(int count);
65         int GetTouchCount(void) const;
66
67 private:
68         _TouchLongPressGestureDetectorImpl(TouchLongPressGestureDetector* pPublic, _TouchLongPressGestureDetector* pCore);
69
70         _TouchLongPressGestureDetectorImpl(const _TouchLongPressGestureDetectorImpl&);
71         _TouchLongPressGestureDetectorImpl& operator =(const _TouchLongPressGestureDetectorImpl&);
72 }; // _TouchLongPressGestureDetectorImpl
73
74 } } // Tizen::Ui
75
76 #endif  //_FUI_INTERNAL_TOUCH_LONG_PRESS_GESTURE_DETECTOR_IMPL_H