constexpr LayoutTheme LAYOUT_IMG_REJECT
{"layout", "callui_image", "reject"};
+ const std::string ATSPI_ATTRIBUTE_KEY = "gesture_required";
+ const std::string ATSPI_ATTRIBUTE_VALUE = "scroll";
+
constexpr auto BC_ITEM_COUNT = 4;
constexpr auto BC_ANIMATE_COUNT_MAX = 3;
acceptAtspi.setName(AO_STR_ACCEPT_CALL);
acceptAtspi.setDescription(
AO_STR_SWIPE_RIGHT_WITH_TWO_FINGERS_TO_ACCEPT);
+ acceptAtspi.addAttribute(impl::ATSPI_ATTRIBUTE_KEY,
+ impl::ATSPI_ATTRIBUTE_VALUE);
m_rejAo = utils::createAccessObject(parent, *m_rejEventLy);
if (!m_rejAo) {
rejectAtspi.setName(AO_STR_REJECT_CALL);
rejectAtspi.setDescription(
AO_STR_SWIPE_LEFT_WITH_TWO_FINGERS_TO_REJECT);
+ rejectAtspi.addAttribute(impl::ATSPI_ATTRIBUTE_KEY,
+ impl::ATSPI_ATTRIBUTE_VALUE);
return RES_OK;
}
*/
void clearRelationships();
+ /**
+ * @brief Adds key-value pair identifying widget extra attribute
+ * @param[in] key The string key to give extra information
+ * @param[in] value The string value to give extra information
+ */
+ void addAttribute(const std::string &key, const std::string &value);
+
+ /**
+ * @brief Removes all attributes in accessible object
+ */
+ void clearAttributes();
+
/**
* @brief Registers gesture event handler
* @param[in] handler Handler of the event
elm_atspi_accessible_relationships_clear(getAo());
}
+ inline void Atspi::addAttribute(const std::string &key,
+ const std::string &value)
+ {
+ elm_atspi_accessible_attribute_append(getAo(),
+ key.c_str(), value.c_str());
+ }
+
+ inline void Atspi::clearAttributes()
+ {
+ elm_atspi_accessible_attributes_clear(getAo());
+ }
+
inline void Atspi::addGestureHandler(AtspiGestureHandler handler)
{
if (handler) {