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_TouchTapGestureDetectorImpl.cpp
19 * @brief This is the implementation file for %_TouchTapGestureDetectorImpl class
22 * This file contains the implementation of% _TouchTapGestureDetectorImpl class.
26 #include "FUi_TouchTapGestureDetectorImpl.h"
28 namespace Tizen { namespace Ui
31 _TouchTapGestureDetectorImpl::_TouchTapGestureDetectorImpl(TouchTapGestureDetector* pPublic, _TouchTapGestureDetector* pCore)
32 : _TouchGestureDetectorImpl(pPublic, pCore)
36 _TouchTapGestureDetectorImpl::~_TouchTapGestureDetectorImpl(void)
40 _TouchTapGestureDetectorImpl*
41 _TouchTapGestureDetectorImpl::CreateInstanceN(TouchTapGestureDetector* pPublic)
45 _TouchTapGestureDetector* pCore = null;
46 pCore = new (std::nothrow) _TouchTapGestureDetector;
47 SysTryReturn(NID_UI, pCore, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
49 _TouchTapGestureDetectorImpl* pImpl = new (std::nothrow) _TouchTapGestureDetectorImpl(pPublic, pCore);
50 SysTryCatch(NID_UI, pImpl, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
60 const _TouchTapGestureDetector&
61 _TouchTapGestureDetectorImpl::GetCore(void) const
63 return static_cast<const _TouchTapGestureDetector&>(_TouchGestureDetectorImpl::GetCore());
66 _TouchTapGestureDetector&
67 _TouchTapGestureDetectorImpl::GetCore(void)
69 return static_cast<_TouchTapGestureDetector&>(_TouchGestureDetectorImpl::GetCore());
72 _TouchTapGestureDetectorImpl*
73 _TouchTapGestureDetectorImpl::GetInstance(TouchTapGestureDetector& gestureDetector)
75 return static_cast<_TouchTapGestureDetectorImpl*> (gestureDetector.__pTouchGestureDetectorImpl);
78 const _TouchTapGestureDetectorImpl*
79 _TouchTapGestureDetectorImpl::GetInstance(const TouchTapGestureDetector& gestureDetector)
81 return static_cast<const _TouchTapGestureDetectorImpl*> (gestureDetector.__pTouchGestureDetectorImpl);
85 _TouchTapGestureDetectorImpl::SetTapCount(int count)
87 return GetCore().SetTapCount(count);
91 _TouchTapGestureDetectorImpl::GetTapCount(void) const
95 return GetCore().GetTapCount();
99 _TouchTapGestureDetectorImpl::SetTapInterval(long intarval)
101 return GetCore().SetTapInterval(intarval);
105 _TouchTapGestureDetectorImpl::GetTapInterval(void) const
109 return GetCore().GetTapInterval();
113 _TouchTapGestureDetectorImpl::SetMoveAllowance(int allowance)
115 return GetCore().SetMoveAllowance(allowance);
119 _TouchTapGestureDetectorImpl::GetMoveAllowance(void) const
121 return GetCore().GetMoveAllowance();
125 _TouchTapGestureDetectorImpl::SetTouchCount(int count)
127 return GetCore().SetTouchCount(count);
131 _TouchTapGestureDetectorImpl::GetTouchCount(void) const
135 return GetCore().GetTouchCount();