REMOTE_INPUT_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
REMOTE_INPUT_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of Memory */
REMOTE_INPUT_OPERATION_FAILED, /**< Operation failed */
+ REMOTE_INPUT_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
+ REMOTE_INPUT_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
+ REMOTE_INPUT_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of Memory */
+ REMOTE_INPUT_ERROR_OPERATION_FAILED = REMOTE_INPUT_OPERATION_FAILED, /**< Operation failed */
} remote_input_error_e;
/**
* @param[out] remote_handle The remote input handle
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
- * @retval #REMOTE_INPUT_PERMISSION_DENIED Permission denied
- * @retval #REMOTE_INPUT_OUT_OF_MEMORY Out of memory
- * @retval #REMOTE_INPUT_OPERATION_FAILED Operation failure
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #REMOTE_INPUT_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #REMOTE_INPUT_ERROR_OPERATION_FAILED Operation failure
* @see remote_input_destroy()
*/
int remote_input_create(remote_input_h *remote_handle);
* @param[in] remote_handle The remote input handle
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
- * @retval #REMOTE_INPUT_OPERATION_FAILED Operation failed
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_OPERATION_FAILED Operation failed
* @see remote_input_create()
*/
int remote_input_destroy(remote_input_h remote_handle);
* @param[in] user_data User data to be passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @see remote_input_focus_in_callback_unset()
*/
int remote_input_focus_in_callback_set(remote_input_h remote_handle, remote_input_focus_in_cb callback, void *user_data);
* @param[in] remote_handle The remote input handle
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @see remote_input_focus_in_callback_set()
*/
int remote_input_focus_in_callback_unset(remote_input_h remote_handle);
* @param[in] user_data User data to be passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @see remote_input_focus_out_callback_unset()
*/
int remote_input_focus_out_callback_set(remote_input_h remote_handle, remote_input_focus_out_cb callback, void *user_data);
* @param[in] remote_handle The remote input handle
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @see remote_input_focus_out_callback_set()
*/
int remote_input_focus_out_callback_unset(remote_input_h remote_handle);
* @param[in] user_data User data to be passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @see remote_input_metadata_updated_callback_unset()
*/
int remote_input_metadata_updated_callback_set(remote_input_h remote_handle, remote_input_metadata_updated_cb callback, void *user_data);
* @param[in] remote_handle The remote input handle
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @see remote_input_metadata_updated_callback_set()
*/
int remote_input_metadata_updated_callback_unset(remote_input_h remote_handle);
* @param[in] user_data User data to be passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @see remote_input_text_updated_callback_unset()
*/
int remote_input_text_updated_callback_set(remote_input_h remote_handle, remote_input_text_updated_cb callback, void *user_data);
* @param[in] remote_handle The remote input handle
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @see remote_input_text_updated_callback_set()
*/
int remote_input_text_updated_callback_unset(remote_input_h remote_handle);
* @param[in] user_data User data to be passed to the callback function
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @see remote_input_resource_changed_callback_unset()
*/
int remote_input_resource_changed_callback_set(remote_input_h remote_handle, remote_input_resource_changed_cb callback, void *user_data);
* @param[in] remote_handle The remote input handle
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @see remote_input_resource_changed_callback_set()
*/
int remote_input_resource_changed_callback_unset(remote_input_h remote_handle);
* @param[out] input_hint Input hint information
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @post Remote input panel UI should be drawn or operated by this information accordingly.
* @see remote_input_metadata_updated_cb()
*/
* @param[out] layout Layout information
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @post Remote input panel UI should be drawn or operated by this information accordingly.
* @see remote_input_metadata_updated_cb()
*/
* @param[out] variation The layout variation
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @post Remote input panel UI should be drawn or operated by this information accordingly.
* @see remote_input_metadata_updated_cb()
*/
* @param[out] autocapital_type autocapital_type Autocapital type information
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @post Remote input panel UI should be drawn or operated by this information accordingly.
* @see remote_input_metadata_updated_cb()
*/
* @param[out] return_key_state The return key state information \n @c true to enable return key button, @c false to disable return key button
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @post Remote input panel UI should be drawn or operated by this information accordingly.
* @see remote_input_metadata_updated_cb()
*/
* @param[out] return_key_type The return key label type information
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
* @post Remote input panel UI should be drawn or operated by this information accordingly.
* @see remote_input_metadata_updated_cb()
*/
* @brief Sends a key event to the associated text field.
* @since_tizen 5.5
* @remarks This function must be used if an associated text field has focus.
- * Otherwise, #REMOTE_INPUT_OPERATION_FAILED will be returned.
+ * Otherwise, #REMOTE_INPUT_ERROR_OPERATION_FAILED will be returned.
* @param[in] remote_handle The remote input handle
* @param[in] key The key type
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
- * @retval #REMOTE_INPUT_OPERATION_FAILED Operation failure
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_OPERATION_FAILED Operation failure
*/
int remote_input_send_key_event(remote_input_h remote_handle, remote_input_key_type_e key);
* @brief Sends a commit string to the associated text field.
* @since_tizen 5.5
* @remarks This function must be used if an associated text field has focus.
- * Otherwise, #REMOTE_INPUT_OPERATION_FAILED will be returned.
+ * Otherwise, #REMOTE_INPUT_ERROR_OPERATION_FAILED will be returned.
* @param[in] remote_handle The remote input handle
* @param[in] text The UTF-8 string to be committed
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
- * @retval #REMOTE_INPUT_OPERATION_FAILED Operation failure
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_OPERATION_FAILED Operation failure
*/
int remote_input_send_commit_string(remote_input_h remote_handle, const char *text);
* @brief Updates a preedit string to the associated text field.
* @since_tizen 5.5
* @remarks This function must be used if an associated text field has focus.
- * Otherwise, #REMOTE_INPUT_OPERATION_FAILED will be returned.
+ * Otherwise, #REMOTE_INPUT_ERROR_OPERATION_FAILED will be returned.
* @param[in] remote_handle The remote input handle
* @param[in] text The UTF-8 string to be committed
* @param[in] cursor_pos The cursor position; -1 means at the end of line
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
- * @retval #REMOTE_INPUT_OPERATION_FAILED Operation failure
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_OPERATION_FAILED Operation failure
*/
int remote_input_update_preedit_string(remote_input_h remote_handle, const char *text, int cursor_pos);
* @brief Requests to delete surrounding text.
* @since_tizen 5.5
* @remarks This function must be used if an associated text field has focus.
- * Otherwise, #REMOTE_INPUT_OPERATION_FAILED will be returned.
+ * Otherwise, #REMOTE_INPUT_ERROR_OPERATION_FAILED will be returned.
* @param[in] remote_handle The remote input handle
* @param[in] offset The offset value from the cursor position
* @param[in] len The length of the text to delete
* @return 0 on success, otherwise a negative error value
* @retval #REMOTE_INPUT_ERROR_NONE Successful
- * @retval #REMOTE_INPUT_INVALID_PARAMETER Invalid parameter
- * @retval #REMOTE_INPUT_OPERATION_FAILED Operation failure
+ * @retval #REMOTE_INPUT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #REMOTE_INPUT_ERROR_OPERATION_FAILED Operation failure
*/
int remote_input_delete_surrounding_text(remote_input_h remote_handle, int offset, int len);
if (inputmethod_cynara_initialize() == false) {
LOGE("cynara_initialize () == false");
- return REMOTE_INPUT_PERMISSION_DENIED;
+ return REMOTE_INPUT_ERROR_PERMISSION_DENIED;
}
snprintf(uid, 16, "%d", getuid());
if (check_privilege(uid, REMOTE_PRIVILEGE) == false) {
LOGE("check_privilege(uid, REMOTE_PRIVILEGE) == false. uid : %s", uid);
- ret = REMOTE_INPUT_PERMISSION_DENIED;
+ ret = REMOTE_INPUT_ERROR_PERMISSION_DENIED;
}
inputmethod_cynara_finish();
remote_input_error_e ret = REMOTE_INPUT_ERROR_NONE;
if (!remote_handle) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
ret = _remote_check_privilege();
if (ret != REMOTE_INPUT_ERROR_NONE) {
- LOGE("REMOTE_INPUT_PERMISSION_DENIED");
+ LOGE("REMOTE_INPUT_ERROR_PERMISSION_DENIED");
return ret;
}
struct remote_input_s *remote_input = (remote_input_h)calloc(1, sizeof(struct remote_input_s));
if (!remote_input) {
- LOGE("REMOTE_INPUT_OUT_OF_MEMORY");
- return REMOTE_INPUT_OUT_OF_MEMORY;
+ LOGE("REMOTE_INPUT_ERROR_OUT_OF_MEMORY");
+ return REMOTE_INPUT_ERROR_OUT_OF_MEMORY;
}
remote_input->remote_client = remote_control_connect();
if (!remote_input->remote_client) {
- LOGE("REMOTE_INPUT_OPERATION_FAILED");
+ LOGE("REMOTE_INPUT_ERROR_OPERATION_FAILED");
free(remote_input);
remote_input = NULL;
- return REMOTE_INPUT_OPERATION_FAILED;
+ return REMOTE_INPUT_ERROR_OPERATION_FAILED;
}
*remote_handle = (remote_input_h)remote_input;
EXPORT_API int remote_input_destroy(remote_input_h remote_handle)
{
if (!remote_handle || !remote_handle->remote_client) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
if (remote_control_disconnect(remote_handle->remote_client) != REMOTE_CONTROL_ERROR_NONE) {
- LOGE("REMOTE_INPUT_OPERATION_FAILED");
- return REMOTE_INPUT_OPERATION_FAILED;
+ LOGE("REMOTE_INPUT_ERROR_OPERATION_FAILED");
+ return REMOTE_INPUT_ERROR_OPERATION_FAILED;
} else {
remote_handle->remote_client = NULL;
}
EXPORT_API int remote_input_focus_in_callback_set(remote_input_h remote_handle, remote_input_focus_in_cb callback, void *user_data)
{
if (!remote_handle || !remote_handle->remote_client || !callback) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
remote_control_focus_in_callback_set(remote_handle->remote_client, callback, user_data);
EXPORT_API int remote_input_focus_in_callback_unset(remote_input_h remote_handle)
{
if (!remote_handle || !remote_handle->remote_client) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
remote_control_focus_in_callback_unset(remote_handle->remote_client);
EXPORT_API int remote_input_focus_out_callback_set(remote_input_h remote_handle, remote_input_focus_out_cb callback, void *user_data)
{
if (!remote_handle || !remote_handle->remote_client || !callback) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
remote_control_focus_out_callback_set(remote_handle->remote_client, callback, user_data);
EXPORT_API int remote_input_focus_out_callback_unset(remote_input_h remote_handle)
{
if (!remote_handle || !remote_handle->remote_client) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
remote_control_focus_out_callback_unset(remote_handle->remote_client);
EXPORT_API int remote_input_metadata_updated_callback_set(remote_input_h remote_handle, remote_input_metadata_updated_cb callback, void *user_data)
{
if (!remote_handle || !remote_handle->remote_client || !callback) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
remote_control_entry_metadata_callback_set(remote_handle->remote_client, _metadata_updated_cb, (void *)remote_handle);
EXPORT_API int remote_input_metadata_updated_callback_unset(remote_input_h remote_handle)
{
if (!remote_handle || !remote_handle->remote_client) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
remote_control_entry_metadata_callback_unset(remote_handle->remote_client);
EXPORT_API int remote_input_text_updated_callback_set(remote_input_h remote_handle, remote_input_text_updated_cb callback, void *user_data)
{
if (!remote_handle || !remote_handle->remote_client || !callback) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
remote_control_text_updated_callback_set(remote_handle->remote_client, _text_updated_cb, (void *)remote_handle);
EXPORT_API int remote_input_text_updated_callback_unset(remote_input_h remote_handle)
{
if (!remote_handle || !remote_handle->remote_client) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
remote_control_text_updated_callback_unset(remote_handle->remote_client);
EXPORT_API int remote_input_resource_changed_callback_set(remote_input_h remote_handle, remote_input_resource_changed_cb callback, void *user_data)
{
if (!remote_handle || !remote_handle->remote_client || !callback) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
remote_control_input_resource_changed_callback_set(remote_handle->remote_client, _resource_updated_cb, (void *)remote_handle);
EXPORT_API int remote_input_resource_changed_callback_unset(remote_input_h remote_handle)
{
if (!remote_handle || !remote_handle->remote_client) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
remote_control_input_resource_changed_callback_unset(remote_handle->remote_client);
EXPORT_API int remote_input_get_input_hint(remote_input_h remote_handle, Ecore_IMF_Input_Hints *input_hint)
{
if (!remote_handle || !input_hint) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
*input_hint = remote_handle->hint;
EXPORT_API int remote_input_get_layout(remote_input_h remote_handle, Ecore_IMF_Input_Panel_Layout *layout)
{
if (!remote_handle || !layout) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
*layout = remote_handle->layout;
EXPORT_API int remote_input_get_layout_variation(remote_input_h remote_handle, int *variation)
{
if (!remote_handle || !variation) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
*variation = remote_handle->variation;
EXPORT_API int remote_input_get_autocapital_type(remote_input_h remote_handle, Ecore_IMF_Autocapital_Type *autocapital_type)
{
if (!remote_handle || !autocapital_type) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
*autocapital_type = remote_handle->autocapital_type;
EXPORT_API int remote_input_get_return_key_state(remote_input_h remote_handle, bool *return_key_state)
{
if (!remote_handle || !return_key_state) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
*return_key_state = remote_handle->return_key_disabled;
EXPORT_API int remote_input_get_return_key_type(remote_input_h remote_handle, Ecore_IMF_Input_Panel_Return_Key_Type *return_key_type)
{
if (!remote_handle || !return_key_type) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
*return_key_type = remote_handle->return_key_type;
EXPORT_API int remote_input_send_key_event(remote_input_h remote_handle, remote_input_key_type_e key)
{
if (!remote_handle || key > REMOTE_INPUT_KEY_CANCEL) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
if (remote_control_send_key_event(remote_handle->remote_client, (remote_control_key_type_e)key) != REMOTE_CONTROL_ERROR_NONE) {
- LOGE("REMOTE_INPUT_OPERATION_FAILED");
- return REMOTE_INPUT_OPERATION_FAILED;
+ LOGE("REMOTE_INPUT_ERROR_OPERATION_FAILED");
+ return REMOTE_INPUT_ERROR_OPERATION_FAILED;
}
return REMOTE_INPUT_ERROR_NONE;
EXPORT_API int remote_input_send_commit_string(remote_input_h remote_handle, const char *text)
{
if (!remote_handle || !text) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
if (remote_control_send_commit_string(remote_handle->remote_client, text) != REMOTE_CONTROL_ERROR_NONE) {
- LOGE("REMOTE_INPUT_OPERATION_FAILED");
- return REMOTE_INPUT_OPERATION_FAILED;
+ LOGE("REMOTE_INPUT_ERROR_OPERATION_FAILED");
+ return REMOTE_INPUT_ERROR_OPERATION_FAILED;
}
return REMOTE_INPUT_ERROR_NONE;
EXPORT_API int remote_input_update_preedit_string(remote_input_h remote_handle, const char *text, int cursor_pos)
{
if (!remote_handle || !text || cursor_pos < -1) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
if (remote_control_update_preedit_string(remote_handle->remote_client, text, NULL, cursor_pos) != REMOTE_CONTROL_ERROR_NONE) {
- LOGE("REMOTE_INPUT_OPERATION_FAILED");
- return REMOTE_INPUT_OPERATION_FAILED;
+ LOGE("REMOTE_INPUT_ERROR_OPERATION_FAILED");
+ return REMOTE_INPUT_ERROR_OPERATION_FAILED;
}
return REMOTE_INPUT_ERROR_NONE;
EXPORT_API int remote_input_delete_surrounding_text(remote_input_h remote_handle, int offset, int len)
{
if (!remote_handle || len <= 0) {
- LOGE("REMOTE_INPUT_INVALID_PARAMETER");
- return REMOTE_INPUT_INVALID_PARAMETER;
+ LOGE("REMOTE_INPUT_ERROR_INVALID_PARAMETER");
+ return REMOTE_INPUT_ERROR_INVALID_PARAMETER;
}
if (remote_control_delete_surrounding_text(remote_handle->remote_client, offset, len) != REMOTE_CONTROL_ERROR_NONE) {
- LOGE("REMOTE_INPUT_OPERATION_FAILED");
- return REMOTE_INPUT_OPERATION_FAILED;
+ LOGE("REMOTE_INPUT_ERROR_OPERATION_FAILED");
+ return REMOTE_INPUT_ERROR_OPERATION_FAILED;
}
return REMOTE_INPUT_ERROR_NONE;