Dali 3D User Interface Engine
test-gesture-manager.h
Go to the documentation of this file.
1 #ifndef __DALI_TEST_GESTURE_MANAGER_H__
2 #define __DALI_TEST_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
24 
25 namespace Dali
26 {
27 
31 class DALI_IMPORT_API TestGestureManager : public Dali::Integration::GestureManager
32 {
33 
34 public:
35 
39  TestGestureManager();
40 
44  virtual ~TestGestureManager();
45 
49  virtual void Register(const Integration::GestureRequest& request);
50 
54  virtual void Unregister(const Integration::GestureRequest& request);
55 
59  virtual void Update(const Integration::GestureRequest& request);
60 
61 public: // TEST FUNCTIONS
62 
63  // Enumeration of Gesture Manager methods
65  {
66  RegisterType,
67  UnregisterType,
68  UpdateType,
69  };
70 
72  void Initialize();
73  bool WasCalled(TestFuncEnum func);
74  void ResetCallStatistics(TestFuncEnum func);
75 
76 private:
77 
78  struct TestFunctions
79  {
80  TestFunctions();
81  void Reset();
82 
83  bool Register;
84  bool Unregister;
85  bool Update;
86  };
87 
88  TestFunctions mFunctionsCalled;
89 };
90 
91 } // Dali
92 
93 #endif // __DALI_TEST_GESTURE_MANAGER_H__
Dali Docs Home
Read more about Dali