[Tizen][ATSPI] Accessibility initial implementation
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / control.h
old mode 100644 (file)
new mode 100755 (executable)
index 58f3205..12aaaf8
@@ -28,6 +28,9 @@
 #include <dali/public-api/events/tap-gesture-detector.h>
 #include <dali/public-api/images/image.h>
 
+// INTERNAL INCLUDES
+#include <dali-toolkit/public-api/visuals/visual-properties.h>
+
 namespace Dali
 {
 
@@ -151,6 +154,11 @@ public:
       MARGIN,
 
       /**
+       * @ TODO
+       */
+      ACCESSIBILITY_ATTRIBUTES,
+
+      /**
        * @brief The inner space of the control.
        * @details Name "padding", type Property::EXTENTS.
        * @SINCE_1_2.62
@@ -191,6 +199,8 @@ public:
   /// @brief ResourceReady signal type. @SINCE_1_2.60
   typedef Signal<void ( Control ) > ResourceReadySignalType;
 
+  typedef Signal< void ( ) > AccessibilityActivateSignalType;
+
 public: // Creation & Destruction
 
   /**
@@ -395,6 +405,15 @@ public:
    */
   bool IsResourceReady() const;
 
+  /**
+   * @brief Get the loading state of the visual resource.
+   *
+   * @SINCE_1_3_5
+   * @param[in] index The Property index of the visual
+   * @return Return the loading status (PREPARING, READY and FAILED) of visual resource
+   */
+  Visual::ResourceStatus GetVisualResourceStatus( const Dali::Property::Index index );
+
   // Signals
 
   /**
@@ -478,6 +497,8 @@ public:
    */
   ResourceReadySignalType& ResourceReadySignal();
 
+  Toolkit::Control::AccessibilityActivateSignalType &AccessibilityActivateSignal();
+
 public: // Intended for control developers
 
   /**
@@ -551,6 +572,10 @@ public: // Templates for Deriving Classes
     }
   }
 
+  void AccessibilitySetAttribute( const std::string& key,
+                                  const std::string value );
+  std::string AccessibilityGetAttribute( const std::string& key );
+  void AccessibilityEraseAttribute( std::string& key );
 };
 
 /**