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.
18 * @file FUi_TouchLongPressGestureDetectorImpl.h
19 * @brief This is the header file for the %_TouchLongPressGestureDetectorImpl class.
21 * This header file contains the declarations of the %_TouchLongPressGestureDetectorImpl class.
25 #ifndef _FUI_INTERNAL_TOUCH_LONG_PRESS_GESTURE_DETECTOR_IMPL_H
26 #define _FUI_INTERNAL_TOUCH_LONG_PRESS_GESTURE_DETECTOR_IMPL_H
28 #include <FUiTouchLongPressGestureDetector.h>
29 #include "FUi_TouchGestureDetectorImpl.h"
30 #include "FUi_TouchLongPressGestureDetector.h"
32 namespace Tizen { namespace Ui
36 * @class _TouchLongPressGestureDetectorImpl
41 class _TouchLongPressGestureDetectorImpl
42 : public Tizen::Ui::_TouchGestureDetectorImpl
45 virtual ~_TouchLongPressGestureDetectorImpl(void);
47 static _TouchLongPressGestureDetectorImpl* CreateInstanceN(TouchLongPressGestureDetector* pPublic);
49 const _TouchLongPressGestureDetector& GetCore(void) const;
50 _TouchLongPressGestureDetector& GetCore(void);
52 static _TouchLongPressGestureDetectorImpl* GetInstance(TouchLongPressGestureDetector& gestureDetector);
53 static const _TouchLongPressGestureDetectorImpl* GetInstance(const TouchLongPressGestureDetector& gestureDetector);
55 result SetDuration(int duration);
56 int GetDuration(void) const;
58 result SetMoveAllowance(int allowance);
59 int GetMoveAllowance(void) const;
61 result SetTouchCount(int count);
62 int GetTouchCount(void) const;
65 _TouchLongPressGestureDetectorImpl(TouchLongPressGestureDetector* pPublic, _TouchLongPressGestureDetector* pCore);
67 _TouchLongPressGestureDetectorImpl(const _TouchLongPressGestureDetectorImpl&);
68 _TouchLongPressGestureDetectorImpl& operator =(const _TouchLongPressGestureDetectorImpl&);
69 }; // _TouchLongPressGestureDetectorImpl
73 #endif //_FUI_INTERNAL_TOUCH_LONG_PRESS_GESTURE_DETECTOR_IMPL_H