(AutomatedTests) Remove virtual destructors from test stub handles
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / toolkit-accessibility-manager.h
1 // Prevent normal accessibility manager declaration from loading
2 #define __DALI_ACCESSIBILITY_MANAGER_H__
3
4 #ifndef __DALI_TOOLKIT_ACCESSIBILITY_MANAGER_H__
5 #define __DALI_TOOLKIT_ACCESSIBILITY_MANAGER_H__
6
7 /*
8  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23
24 // EXTERNAL INCLUDES
25 #include <string>
26
27 #include <dali/dali.h>
28
29 namespace Dali
30 {
31 namespace Internal
32 {
33 namespace Adaptor
34 {
35 class AccessibilityManager;
36 }
37 }
38 class AccessibilityActionHandler;
39 class AccessibilityGestureHandler;
40 class TouchPoint;
41
42 /**
43  * This creates a stubbed AccessibilityManager so that internal Toolkit Adaptor calls work.
44  */
45 class AccessibilityManager : public BaseHandle
46 {
47 public: // Typedefs
48   typedef SignalV2< bool ( AccessibilityManager& ) > AccessibilityActionSignalV2;
49
50 public: // Construction & Destruction
51   AccessibilityManager();
52   ~AccessibilityManager();
53
54 public: // Getters
55   static AccessibilityManager Get();
56   Vector2 GetReadPosition() const;
57   bool IsEnabled() const;
58   void SetActionHandler(AccessibilityActionHandler& handler);
59   void SetGestureHandler(AccessibilityGestureHandler& handler);
60   bool HandleActionNextEvent();
61   bool HandleActionPreviousEvent();
62   bool HandleActionActivateEvent();
63   bool HandleActionReadEvent(unsigned int x, unsigned int y, bool allowReadAgain);
64   bool HandleActionReadNextEvent();
65   bool HandleActionReadPreviousEvent();
66   bool HandleActionUpEvent();
67   bool HandleActionDownEvent();
68   bool HandleActionClearFocusEvent();
69   bool HandleActionScrollEvent(TouchPoint& point, unsigned long timeStamp);
70   bool HandleActionBackEvent();
71   void HandleActionEnableEvent();
72   void HandleActionDisableEvent();
73
74 public:  // Signals
75   AccessibilityActionSignalV2& StatusChangedSignal();
76   AccessibilityActionSignalV2& ActionNextSignal();
77   AccessibilityActionSignalV2& ActionPreviousSignal();
78   AccessibilityActionSignalV2& ActionActivateSignal();
79   AccessibilityActionSignalV2& ActionReadSignal();
80   AccessibilityActionSignalV2& ActionOverSignal();
81   AccessibilityActionSignalV2& ActionReadNextSignal();
82   AccessibilityActionSignalV2& ActionReadPreviousSignal();
83   AccessibilityActionSignalV2& ActionUpSignal();
84   AccessibilityActionSignalV2& ActionDownSignal();
85   AccessibilityActionSignalV2& ActionClearFocusSignal();
86   AccessibilityActionSignalV2& ActionBackSignal();
87
88   AccessibilityManager( Internal::Adaptor::AccessibilityManager* manager );
89 };
90
91 } // namespace Dali
92
93 #endif // __DALI_TOOLKIT_ACCESSIBILITY_MANAGER_H__