-bool input_keyboard_launch(Evas_Object *window)
-{
- int ret;
-
- char *app_id;
-
- app_control_h app_control;
-
- if (window == NULL) {
- PRINTFUNC(DLOG_ERROR, "Can not get window");
- return false;
- }
-
- ret = app_control_create(&app_control);
- if (ret != APP_CONTROL_ERROR_NONE) {
- PRINTFUNC(DLOG_ERROR, "Can not create app_control : %d", ret);
- return false;
- }
-
- app_id = g_input_keyboard_data.app_id;
- if (app_id == NULL) {
- PRINTFUNC(DLOG_INFO, "app id is undefined, use defualt");
- app_id = "com.samsung.message.appcontrol.compose";
- }
-
- app_control_set_app_id(app_control, app_id);
- app_control_set_operation(app_control, APP_CONTROL_OPERATION_DEFAULT);
-/*
- ret = app_control_set_window(app_control,
- elm_win_xwindow_get(window));
- if (ret != APP_CONTROL_ERROR_NONE) {
- PRINTFUNC(DLOG_ERROR, "Can not app control set window : %d", ret);
- app_control_destroy(app_control);
- return false;
- }
-*/
- if (g_input_keyboard_data.data_array && g_input_keyboard_data.data_array_len > 0) {
- app_control_add_extra_data_array(app_control,
- "selector_keyboard_data_array",
- (const char**)(g_input_keyboard_data.data_array),
- g_input_keyboard_data.data_array_len);
- }
-
- set_source_caller_app_id(app_control);
-
- ret = app_control_send_launch_request(app_control,
- input_keyboard_app_control_send_reply_cb,
- NULL);
- if (ret != APP_CONTROL_ERROR_NONE)
- PRINTFUNC(DLOG_ERROR, "Can not launch app_control: %d", ret);
-
- app_control_destroy(app_control);
-
- return true;
-}
-