(AutomatedTest) Fix ImfManager stub to match recent changes
[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 #include <boost/function.hpp>
27 #include <dali/public-api/object/base-handle.h>
28 #include <dali/public-api/signals/dali-signal-v2.h>
29 #include <dali/public-api/events/touch-point.h>
30
31 namespace Dali
32 {
33 namespace Internal
34 {
35 namespace Adaptor
36 {
37 class AccessibilityManager;
38 }
39 }
40 class AccessibilityActionHandler;
41 class AccessibilityGestureHandler;
42 class TouchPoint;
43
44 /**
45  * This creates a stubbed AccessibilityManager so that internal Toolkit Adaptor calls work.
46  */
47 class AccessibilityManager : public BaseHandle
48 {
49 public: // Typedefs
50   typedef SignalV2< bool ( AccessibilityManager& ) > AccessibilityActionSignalV2;
51
52 public: // Construction & Destruction
53   AccessibilityManager();
54   ~AccessibilityManager();
55
56 public: // Getters
57   static AccessibilityManager Get();
58   Vector2 GetReadPosition() const;
59   bool IsEnabled() const;
60   void SetActionHandler(AccessibilityActionHandler& handler);
61   void SetGestureHandler(AccessibilityGestureHandler& handler);
62   bool HandleActionNextEvent();
63   bool HandleActionPreviousEvent();
64   bool HandleActionActivateEvent();
65   bool HandleActionReadEvent(unsigned int x, unsigned int y, bool allowReadAgain);
66   bool HandleActionReadNextEvent();
67   bool HandleActionReadPreviousEvent();
68   bool HandleActionUpEvent();
69   bool HandleActionDownEvent();
70   bool HandleActionClearFocusEvent();
71   bool HandleActionScrollEvent(TouchPoint& point, unsigned long timeStamp);
72   bool HandleActionBackEvent();
73   void HandleActionEnableEvent();
74   void HandleActionDisableEvent();
75
76 public:  // Signals
77   AccessibilityActionSignalV2& StatusChangedSignal();
78   AccessibilityActionSignalV2& ActionNextSignal();
79   AccessibilityActionSignalV2& ActionPreviousSignal();
80   AccessibilityActionSignalV2& ActionActivateSignal();
81   AccessibilityActionSignalV2& ActionReadSignal();
82   AccessibilityActionSignalV2& ActionOverSignal();
83   AccessibilityActionSignalV2& ActionReadNextSignal();
84   AccessibilityActionSignalV2& ActionReadPreviousSignal();
85   AccessibilityActionSignalV2& ActionUpSignal();
86   AccessibilityActionSignalV2& ActionDownSignal();
87   AccessibilityActionSignalV2& ActionClearFocusSignal();
88   AccessibilityActionSignalV2& ActionBackSignal();
89
90   AccessibilityManager( Internal::Adaptor::AccessibilityManager* manager );
91 };
92
93 } // namespace Dali
94
95 #endif // __DALI_TOOLKIT_ACCESSIBILITY_MANAGER_H__