static void __ise_smartreply_gl_sel(void *data, Evas_Object *obj, void *event_info)
{
- App_Data* app_data = (App_Data*) data;
Elm_Object_Item *item = (Elm_Object_Item *) event_info;
if (item) {
char *reply = input_smartreply_get_nth_item(index, &type);
if (reply) {
input_smartreply_send_feedback(reply);
- reply_to_sender_by_callback(reply, "smartreply", NULL);
+ reply_to_sender_by_callback(reply, "smartreply", NULL, NULL);
free(reply);
elm_exit();
}
const std::vector<TemplateData> template_list = input_template_get_list();
if (index < (int)template_list.size()) {
- reply_to_sender_by_callback(gettext(template_list[index].text.c_str()), "template", NULL);
+ reply_to_sender_by_callback(gettext(template_list[index].text.c_str()), "template", NULL, NULL);
ui_app_exit();
}
}
}
}
-void reply_to_sender_by_callback(const char *value, const char *type, const char *path[])
+void reply_to_sender_by_callback(const char *value, const char *type, const char *path[], const char *cursor_position)
{
PRINTFUNC(DLOG_DEBUG, "");
app_control_add_extra_data_array(app_control, APP_CONTROL_DATA_PATH, path, 1);
}
+ if (cursor_position != NULL)
+ app_control_add_extra_data(app_control, "cursor_position_get", cursor_position);
+
set_source_caller_app_id(app_control);
ret = app_control_reply_to_launch_request(app_control, app_data->source_app_control, APP_CONTROL_RESULT_SUCCEEDED);
}
if (app_data->app_type == APP_TYPE_STT || app_data->app_type == APP_TYPE_EMOTICON || app_data->app_type == APP_TYPE_KEYBOARD){
PRINTFUNC(DLOG_DEBUG, "launched as STT/EMOTICON/KEYBOARD mode, So exit here.");
- reply_to_sender_by_callback(NULL, NULL, NULL);
+ reply_to_sender_by_callback(NULL, NULL, NULL, NULL);
ui_app_exit();
}
}
Elm_Object_Item *first;
Elm_Object_Item *menu;
- Elm_Object_Item *pos;
unsigned int i = 0;
unsigned int len = 0;
itc->func.state_get = NULL;
itc->func.del = NULL;
- pos = menu;
-
for (i = 0; i < len; i++) {
char *reply = "hello";
unsigned int j;
continue;
PRINTFUNC(DLOG_DEBUG, "SmartReply = [%d]%s", i, reply);
-
for (j = 0; j < template_list.size(); j++) {
const char *template_str;
if (matched == true)
continue;
- pos = elm_genlist_item_append(app_data->genlist,
+ elm_genlist_item_append(app_data->genlist,
itc,
(void *)(uintptr_t)i,
NULL,