Enable -Wnon-virtual-dtor to avoid incorrect C++ code sneaking in
[platform/core/uifw/dali-core.git] / dali / integration-api / gesture-manager.h
1 #ifndef __DALI_INTEGRATION_GESTURE_MANAGER_H__
2 #define __DALI_INTEGRATION_GESTURE_MANAGER_H__
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // INTERNAL INCLUDES
22 #include <dali/public-api/events/gesture.h>
23 #include <dali/integration-api/events/gesture-requests.h>
24
25 namespace Dali
26 {
27
28 namespace Integration
29 {
30
31 /**
32  * GestureManager is an abstract interface, used by Dali to register and unregister gestures provided
33  * by the adaptor. A concrete implementation must be created for each adaptor, and provided when creating
34  * the Dali::Integration::Core object.
35  */
36 class DALI_IMPORT_API GestureManager
37 {
38 public:
39
40   /**
41    * Called by Dali to enable the adaptor to start detecting the required gesture type.
42    * @param[in]  request  The required gesture and details.
43    */
44   virtual void Register(const GestureRequest& request) = 0;
45
46   /**
47    * Called by Dali to inform the adaptor that it no longer requires a GestureEvent when the state
48    * gesture type is detected.
49    * @param[in]  request  The gesture that is no longer required.
50    */
51   virtual void Unregister(const GestureRequest& request) = 0;
52
53   /**
54    * Called by Dali to inform the adaptor that the detection parameters of a previously requested
55    * gesture have now changed.
56    * @param[in]  request  The gesture and updated details.
57    */
58   virtual void Update(const GestureRequest& request) = 0;
59
60 protected:
61
62   /**
63    * Virtual destructor, no deletion through this interface
64    */
65   virtual ~GestureManager() {}
66
67 }; // class GestureManager
68
69 } // namespace Integration
70
71 } // namespace Dali
72
73 #endif // __DALI_INTEGRATION_GESTURE_MANAGER_H__