2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0/
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.
19 * @file FUiITouchCustomGestureEventListener.h
20 * @brief This is the header file for the %ITouchCustomGestureEventListener interface.
22 * This header file contains the declarations of the %ITouchCustomGestureEventListener interface.
25 #ifndef _FUI_ITOUCH_CUSTOM_GESTURE_EVENT_LISTENER_H_
26 #define _FUI_ITOUCH_CUSTOM_GESTURE_EVENT_LISTENER_H_
28 #include <FUiITouchGestureEventListener.h>
30 namespace Tizen { namespace Ui
34 * @interface ITouchCustomGestureEventListener
35 * @brief This interface is used as the argument to the touch custom gesture event listener.
38 * The %ITouchCustomGestureEventListener interface is the listener interface for receiving custom gesture events.
39 * The class that processes a custom gesture event implements this interface, and the instance created with that class is registered with a
40 * gesture detector, using the TouchGestureDetector::AddGestureEventListener() method. When the custom gesture event occurs, a method of that instance is
44 class _OSP_EXPORT_ ITouchCustomGestureEventListener
45 : virtual public ITouchGestureEventListener
49 * This polymorphic destructor should be overridden if required. This way, the destructors of the derived classes are called when the destructor of this interface is called.
53 virtual ~ITouchCustomGestureEventListener(void) {}
56 * Called when a custom gesture detection is started.
60 * @param[in] gestureDetector The custom gesture detector instance
62 virtual void OnCustomGestureStarted(Tizen::Ui::TouchGestureDetector& gestureDetector) = 0;
65 * Called when a custom gesture is detected and is in progress.
69 * @param[in] gestureDetector The custom gesture detector instance
71 virtual void OnCustomGestureChanged(Tizen::Ui::TouchGestureDetector& gestureDetector) = 0;
74 * Called when a custom gesture detection is finished.
78 * @param[in] gestureDetector The custom gesture detector instance
80 virtual void OnCustomGestureFinished(Tizen::Ui::TouchGestureDetector& gestureDetector) = 0;
83 * Called when a custom gesture detection is canceled.
87 * @param[in] gestureDetector The custom gesture detector instance
89 virtual void OnCustomGestureCanceled(Tizen::Ui::TouchGestureDetector& gestureDetector) = 0;
93 // This method is for internal use only. Using this method can cause behavioral, security-related,
94 // and consistency-related issues in the application.
96 // Following method is reserved and may change its name at any time without
99 virtual void ITouchCustomGestureEventListener_Reserved1(void) {}
102 // This method is for internal use only. Using this method can cause behavioral, security-related,
103 // and consistency-related issues in the application.
105 // Following method is reserved and may change its name at any time without
108 virtual void ITouchCustomGestureEventListener_Reserved2(void) {}
111 // This method is for internal use only. Using this method can cause behavioral, security-related,
112 // and consistency-related issues in the application.
114 // Following method is reserved and may change its name at any time without
117 virtual void ITouchCustomGestureEventListener_Reserved3(void) {}
118 }; // ITouchCustomGestureEventListener
122 #endif // _FUI_ITOUCH_CUSTOM_GESTURE_EVENT_LISTENER_H_