data->autocapital_type = static_cast<Ecore_IMF_Autocapital_Type> (autocapital_type);
data->return_key_disabled = return_key_disabled;
- LOGD ("REMOTE_CONTROL_CALLBACK_ENTRY_METADATA hint: 0x%04x, layout: %d, variation: %d, autocapital: %d, return_key: %d",
+ LOGD ("REMOTE_CONTROL_CALLBACK_ENTRY_METADATA: hint=0x%04x, layout=%d, variation=%d, autocap=%d, retKey_disabled=%d",
data->hint, data->layout, data->variation, data->autocapital_type, data->return_key_disabled);
if (client->metadata_cb)
int cursor = -1;
client->remote_client.get_surrounding_text (surrounding_text, &cursor);
- SECURE_LOGD ("REMOTE_CONTROL_CALLBACK_TEXT_UPDATED \"%s\" %d", surrounding_text.c_str (), cursor);
+ SECURE_LOGD ("REMOTE_CONTROL_CALLBACK_TEXT_UPDATED: %d \"%s\"", cursor, surrounding_text.c_str ());
if (client->text_updated_cb)
client->text_updated_cb (client->text_updated_cb_user_data, surrounding_text.c_str (), cursor);
break;
}
case REMOTE_CONTROL_CALLBACK_ERROR:
+ LOGE ("REMOTE_CONTROL_CALLBACK_ERROR");
break;
default:
break;
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
goto cleanup;
+ }
client->remote_client_id = client->remote_client.get_panel2remote_connection_number();
LOGD ("%p", client);
return client;
+
cleanup:
if (client)
delete client;
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
if (client->remote_client_iochannel)
g_io_channel_unref (client->remote_client_iochannel);
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
client->focus_in_cb = func;
client->focus_in_cb_user_data = user_data;
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
client->focus_in_cb = NULL;
client->focus_in_cb_user_data = NULL;
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
client->focus_out_cb = func;
client->focus_out_cb_user_data = user_data;
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
client->focus_out_cb = NULL;
client->focus_out_cb_user_data = NULL;
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
client->metadata_cb = func;
client->metadata_cb_user_data = user_data;
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
client->metadata_cb = NULL;
client->metadata_cb_user_data = NULL;
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
client->text_updated_cb = func;
client->text_updated_cb_user_data = user_data;
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
client->text_updated_cb = NULL;
client->text_updated_cb_user_data = NULL;
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
client->input_resource_changed_cb = func;
client->input_resource_changed_cb_user_data = user_data;
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
client->input_resource_changed_cb = NULL;
client->input_resource_changed_cb_user_data = NULL;
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
char key_str[10] = {};
snprintf(key_str, sizeof(key_str), "%d", key);
EXAPI int remote_control_send_commit_string(remote_control_client *client, const char *text)
{
- if (client == NULL || !text)
+ if (client == NULL || !text) {
+ LOGE ("REMOTE_CONTROL_INVALID_PARAMETER");
return REMOTE_CONTROL_INVALID_PARAMETER;
+ }
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
String command = String ("|plain|commit_string|") + String (text) + String ("|");
EXAPI int remote_control_update_preedit_string(remote_control_client *client, const char *text, Eina_List *attrs, int cursor_pos)
{
- if (client == NULL)
+ if (client == NULL) {
+ LOGE ("REMOTE_CONTROL_INVALID_PARAMETER");
return REMOTE_CONTROL_INVALID_PARAMETER;
+ }
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
char cursor_position[10] = {};
snprintf(cursor_position, sizeof(cursor_position), "%d", cursor_pos);
error_e = (remote_control_error_e)client->remote_client.send_remote_input_message(command.c_str ());
if (!error_e)
- SECURE_LOGD ("%p, \"%s\", %d", client, text, cursor_pos);
+ SECURE_LOGD ("%p, %d, \"%s\"", client, cursor_pos, text);
return error_e;
}
}
remote_control_error_e error_e = (remote_control_error_e)client->remote_client.check_privilege();
- if (error_e)
+ if (error_e) {
+ LOGE ("REMOTE_CONTROL_PERMISSION_DENIED");
return error_e;
+ }
if (focus_flag) {
error_e = (remote_control_error_e)client->remote_client.delete_surrounding_text(offset, len);