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 FUiITouchPanningGestureEventListener.h
20 * @brief This is the header file for the %ITouchPanningGestureEventListener interface.
22 * This header file contains the declarations of the %ITouchPanningGestureEventListener interface.
24 #ifndef _FUI_ITOUCH_PANNING_GESTURE_EVENT_LISTENER_H_
25 #define _FUI_ITOUCH_PANNING_GESTURE_EVENT_LISTENER_H_
27 #include <FUiTouchPanningGestureDetector.h>
28 #include <FUiITouchGestureEventListener.h>
30 namespace Tizen { namespace Ui
34 * @interface ITouchPanningGestureEventListener
35 * @brief This interface implements the listener for the touch panning gesture events.
39 * The %ITouchPanningGestureEventListener interface is the listener interface for receiving panning gesture events.
40 * The class that processes a panning gesture event implements this interface, and the instance created with that class is registered with a
41 * panning gesture detector, using the TouchPanningGestureDetector::AddPanningGestureEventListener() method. When the panning gesture event occurs, a method of that instance is
45 class _OSP_EXPORT_ ITouchPanningGestureEventListener
46 : virtual public ITouchGestureEventListener
50 * This polymorphic destructor should be overridden if required.
51 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
55 virtual ~ITouchPanningGestureEventListener(void) {}
58 * Called when a panning gesture detection is started.
62 * @param[in] gestureDetector The panning gesture detector instance
64 virtual void OnPanningGestureStarted(Tizen::Ui::TouchPanningGestureDetector& gestureDetector) = 0;
67 * Called when a panning gesture is detected and is in progress.
71 * @param[in] gestureDetector The panning gesture detector instance
73 virtual void OnPanningGestureChanged(Tizen::Ui::TouchPanningGestureDetector& gestureDetector) = 0;
76 * Called when a panning gesture detection is finished.
80 * @param[in] gestureDetector The panning gesture detector instance
82 virtual void OnPanningGestureFinished(Tizen::Ui::TouchPanningGestureDetector& gestureDetector) = 0;
85 * Called when a panning gesture detection is canceled.
89 * @param[in] gestureDetector The panning gesture detector instance
91 virtual void OnPanningGestureCanceled(Tizen::Ui::TouchPanningGestureDetector& gestureDetector) = 0;
95 // This method is for internal use only. Using this method can cause behavioral, security-related,
96 // and consistency-related issues in the application.
98 // This method is reserved and may change its name at any time without
101 virtual void ITouchPanningGestureEventListener_Reserved1(void) {}
104 // This method is for internal use only. Using this method can cause behavioral, security-related,
105 // and consistency-related issues in the application.
107 // This method is reserved and may change its name at any time without
110 virtual void ITouchPanningGestureEventListener_Reserved2(void) {}
113 // This method is for internal use only. Using this method can cause behavioral, security-related,
114 // and consistency-related issues in the application.
116 // This method is reserved and may change its name at any time without
119 virtual void ITouchPanningGestureEventListener_Reserved3(void) {}
120 }; //ITouchPanningGestureEventListener
124 #endif //_FUI_ITOUCH_PANNING_GESTURE_EVENT_LISTENER_H_