static void _cb_method_set_tc_start_end(void *data, const Eldbus_Message *msg, Eldbus_Pending *p);
static void _cb_method_set_tc_timeout(void *data, const Eldbus_Message *msg, Eldbus_Pending *p);
static void _cb_method_transient_for_below(void *data, const Eldbus_Message *msg, Eldbus_Pending *p);
+static void _cb_method_aux_hint_get(void *data, const Eldbus_Message *msg, Eldbus_Pending *p);
/* callbacks - signal */
static void _cb_signal_vis_changed(void *data, const Eldbus_Message *msg);
return EINA_TRUE;
}
+std::shared_ptr<auxHintEventItem>
+etRunner::getAuxHint(etWin *tw, const char *hint_key)
+{
+ Eldbus_Pending *p = NULL;
+ auxHintEventItem *hint = NULL;
+
+ p = eldbus_proxy_call(dbus.ds_proxy,
+ "GetAuxHint",
+ _cb_method_aux_hint_get,
+ &hint,
+ -1,
+ "us",
+ tw->native_win,
+ hint_key);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(p, nullptr);
+
+ work();
+
+ if (hint)
+ {
+ std::shared_ptr<auxHintEventItem> shared_hint = std::make_shared<auxHintEventItem>(tw->native_win, E_TC_EVENT_TYPE_AUX_HINT_CHANGED, hint->getID(), hint->getHint().c_str(), hint->getVal().c_str());
+ delete hint;
+ return shared_hint;
+ }
+
+ return NULL;
+}
+
std::shared_ptr<eventItem>
etRunner::waitEvent(etWin *win, E_TC_Event_Type ev_type)
{
etRunner::get().finishWork();
}
+static void
+_cb_method_aux_hint_get(void *data,
+ const Eldbus_Message *msg,
+ Eldbus_Pending *p)
+{
+ auxHintEventItem **hint = (auxHintEventItem **) data;
+ const char *name = NULL, *text = NULL;
+ Eina_Bool res = EINA_FALSE;
+ int id;
+ const char *hint_key, *hint_val;
+
+ res = eldbus_message_error_get(msg, &name, &text);
+ EINA_SAFETY_ON_TRUE_GOTO(res, finish);
+
+ res = eldbus_message_arguments_get(msg, "iss", &id, &hint_key, &hint_val);
+ EINA_SAFETY_ON_FALSE_GOTO(res, finish);
+
+ *hint = new auxHintEventItem(0, E_TC_EVENT_TYPE_AUX_HINT_CHANGED, id, hint_key, hint_val);
+
+finish:
+ if ((name) || (text))
+ {
+ ERR("errname: %s errmsg: %s\n", name, text);
+ }
+
+ etRunner::get().finishWork();
+}
+
/* callbacks - signal */
static void
_cb_signal_vis_changed(void *data,