[Tizen] Add a flag to check whether it is forced to enable
[platform/core/uifw/dali-adaptor.git] / dali / internal / accessibility / common / accessibility-adaptor-impl.h
index 06dff1f..b67f506 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_H__
-#define __DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_H__
+#ifndef DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_H
+#define DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_H
 
 /*
  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
@@ -23,7 +23,7 @@
 
 #include <dali/public-api/object/base-object.h>
 #include <dali/public-api/math/vector2.h>
-#include <dali/public-api/events/touch-point.h>
+#include <dali/devel-api/events/touch-point.h>
 #include <dali/integration-api/events/touch-event-combiner.h>
 
 // INTERNAL INCLUDES
@@ -79,6 +79,16 @@ public:
   bool IsEnabled() const;
 
   /**
+   * @copydoc Dali::AccessibilityAdaptor::SetForcedEnable()
+   */
+  void SetForcedEnable( bool forced );
+
+  /**
+   * Whether the accessibility is enabled forcibly or not
+   */
+  bool IsForcedEnable() const;
+
+  /**
    * @copydoc Dali::AccessibilityAdaptor::GetReadPosition() const
    */
   Vector2 GetReadPosition() const;
@@ -144,11 +154,6 @@ public:
   bool HandleActionScrollEvent(const TouchPoint& point, uint32_t timeStamp);
 
   /**
-   * @copydoc Dali::AccessibilityAdaptor::HandleActionTouchEvent()
-   */
-  bool HandleActionTouchEvent(const TouchPoint& point, uint32_t timeStamp);
-
-  /**
    * @copydoc Dali::AccessibilityAdaptor::HandleActionBackEvent()
    */
   bool HandleActionBackEvent();
@@ -233,7 +238,7 @@ protected:
   /**
    * Destructor.
    */
-  virtual ~AccessibilityAdaptor();
+  ~AccessibilityAdaptor() override;
 
 private:
 
@@ -261,6 +266,8 @@ protected:
 
   bool mIsEnabled        : 1; ///< enable/disable the accessibility action
 
+  bool mIsForced         : 1; ///< Is the accessibility enabled forcibly
+
 public:
 
   // Helpers for public-api forwarding methods
@@ -291,4 +298,4 @@ public:
 
 } // namespace Dali
 
-#endif // __DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_H__
+#endif // DALI_INTERNAL_ACCESSIBILITY_ADAPTOR_H