1 #ifndef __DALI_SDL_GESTURE_MANAGER_H__
2 #define __DALI_SDL_GESTURE_MANAGER_H__
5 Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
7 This file is part of Dali
9 PROPRIETARY/CONFIDENTIAL
11 This software is the confidential and proprietary information of
12 SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
13 disclose such Confidential Information and shall use it only in
14 accordance with the terms of the license agreement you entered
15 into with SAMSUNG ELECTRONICS.
17 SAMSUNG make no representations or warranties about the suitability
18 of the software, either express or implied, including but not limited
19 to the implied warranties of merchantability, fitness for a particular
20 purpose, or non-infringement. SAMSUNG shall not be liable for any
21 damages suffered by licensee as a result of using, modifying or
22 distributing this software or its derivatives.
26 #include <dali/integration-api/gesture-manager.h>
27 #include <dali/public-api/common/dali-common.h>
33 * Concrete implementation of the gesture manager class.
35 * A stubb class to give to core in the Emscripten/browser environment
37 class DALI_IMPORT_API SdlGestureManager : public Dali::Integration::GestureManager
53 virtual ~SdlGestureManager()
58 * @copydoc Dali::Integration::GestureManager::Register(Gesture::Type)
60 virtual void Register(const Integration::GestureRequest& request)
62 mFunctionsCalled.Register = true;
66 * @copydoc Dali::Integration::GestureManager::Unregister(Gesture::Type)
68 virtual void Unregister(const Integration::GestureRequest& request)
70 mFunctionsCalled.Unregister = true;
74 * @copydoc Dali::Integration::GestureManager::Update(Gesture::Type)
76 virtual void Update(const Integration::GestureRequest& request)
78 mFunctionsCalled.Update = true;
81 public: // TEST FUNCTIONS
83 // Enumeration of Gesture Manager methods
91 /** Call this every test */
94 mFunctionsCalled.Reset();
97 bool WasCalled(SdlFuncEnum func)
101 case RegisterType: return mFunctionsCalled.Register;
102 case UnregisterType: return mFunctionsCalled.Unregister;
103 case UpdateType: return mFunctionsCalled.Update;
108 void ResetCallStatistics(SdlFuncEnum func)
112 case RegisterType: mFunctionsCalled.Register = false; break;
113 case UnregisterType: mFunctionsCalled.Unregister = false; break;
114 case UpdateType: mFunctionsCalled.Update = false; break;
141 SdlFunctions mFunctionsCalled;
146 #endif // __DALI_SDL_GESTURE_MANAGER_H__