#define DALI_INTERNAL_ACCESSIBILITY_BRIDGE_ACCESSIBLE_H
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <vector>
// INTERNAL INCLUDES
-#include "bridge-base.h"
+#include <dali/devel-api/atspi-interfaces/accessible.h>
+#include <dali/devel-api/atspi-interfaces/component.h>
+#include <dali/internal/accessibility/bridge/bridge-base.h>
/**
* @brief The BridgeAccessible class is to correspond with Dali::Accessibility::Accessible.
*/
void RegisterInterfaces();
+ /**
+ * @brief Returns the Accessible object of the currently executed DBus method call.
+ *
+ * @return The Accessible object
+ */
+ Dali::Accessibility::Accessible* FindSelf() const;
+
public:
/**
* @brief Enumeration for NeighborSearchMode.
std::string, // localized name
int32_t, // child count
double, // current value
+ std::string, // formatted current value
double, // minimum increment
double, // maximum value
double, // minimum value
Dali::Accessibility::Accessible* // describedByObject
>;
- using Relation = std::tuple<uint32_t, std::vector<Dali::Accessibility::Address>>;
+ using NodeInfoType = DBus::ValueOrError<
+ std::string, // role name
+ std::string, // name
+ std::string, // toolkit name
+ std::unordered_map<std::string, std::string>, // attributes
+ Dali::Accessibility::States, // states
+ std::tuple<int32_t, int32_t, int32_t, int32_t>, // screen extents
+ std::tuple<int32_t, int32_t, int32_t, int32_t>, // window extents
+ double, // current value
+ double, // minimum increment
+ double, // maximum value
+ double // minimum value
+ >;
+
+ using Relation = std::tuple<uint32_t, std::vector<Dali::Accessibility::Accessible*>>;
/**
* @copydoc Dali::Accessibility::Accessible::GetChildCount()
DBus::ValueOrError<std::unordered_map<std::string, std::string>> GetAttributes();
/**
- * @copydoc Dali::Accessibility::Accessible::GetInterfaces()
+ * @copydoc Dali::Accessibility::Accessible::GetInterfacesAsStrings()
*/
- DBus::ValueOrError<std::vector<std::string>> GetInterfaces();
+ DBus::ValueOrError<std::vector<std::string>> GetInterfacesAsStrings();
/**
* @brief Gets Accessible object on which surface lies the point with given coordinates.
*/
DBus::ValueOrError<std::vector<Relation>> GetRelationSet();
+ /**
+ * @copydoc Dali::Accessibility::Accessible::SetListenPostRender()
+ */
+ DBus::ValueOrError<void> SetListenPostRender(bool enabled);
+
+ /**
+ * @brief Gets Node information of the self object.
+ * @return Node information
+ */
+ NodeInfoType GetNodeInfo();
+
private:
/**
* @brief Calculates Neighbor candidate object in root node.