#define LOG_TAG "AUTOFILL"
struct autofill_response_item_s {
- char *id;
- char *presentation_text; // context popup 표기용 (ex> ‘ID A’s password)
- char *value; // autofill value
+ char *id;
+ char *presentation_text;
+ char *value;
};
-// autofill fill response item 생성
EXPORT_API int autofill_fill_response_item_create(autofill_fill_response_item_h *it)
{
LOGD("autofill fill response item create");
return AUTOFILL_ERROR_NONE;
}
-// autofill fill response item 삭제
EXPORT_API int autofill_fill_response_item_destroy(autofill_fill_response_item_h it)
{
if (!it)
return AUTOFILL_ERROR_NONE;
}
-// Set autofill ID
EXPORT_API int autofill_fill_response_item_set_id(autofill_fill_response_item_h it, const char *id)
{
if (!it || !id)
return AUTOFILL_ERROR_NONE;
}
-// Get autofill ID
EXPORT_API int autofill_fill_response_item_get_id(autofill_fill_response_item_h it, char **id)
{
if (!it || !id)
return AUTOFILL_ERROR_NONE;
}
-// Set autofill value
EXPORT_API int autofill_fill_response_item_set_value(autofill_fill_response_item_h it, const char *value)
{
if (!it || !value)
return AUTOFILL_ERROR_NONE;
}
-// Get autofill value
EXPORT_API int autofill_fill_response_item_get_value(autofill_fill_response_item_h it, char **value)
{
if (!it || !value)
return AUTOFILL_ERROR_NONE;
}
-// Set presentation text
EXPORT_API int autofill_fill_response_item_set_presentation_text(autofill_fill_response_item_h it, const char *presentation_text)
{
if (!it || !presentation_text)
return AUTOFILL_ERROR_NONE;
}
-// Get presentation text
EXPORT_API int autofill_fill_response_item_get_presentation_text(autofill_fill_response_item_h it, char ** presentation_text)
{
if (!it || !presentation_text)
* @since_tizen 5.5
*/
typedef enum {
- AUTOFILL_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
- AUTOFILL_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< I/O Error */
- AUTOFILL_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
- AUTOFILL_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
- AUTOFILL_ERROR_NOT_INITIALIZED = TIZEN_ERROR_ENDPOINT_NOT_CONNECTED, /**< Initialization is not set */
- AUTOFILL_ERROR_NO_CALLBACK_FUNCTION = TIZEN_ERROR_IME | 0x0001, /**< Necessary callback function is not set */
- AUTOFILL_ERROR_NOT_RUNNING = TIZEN_ERROR_IME | 0x0002, /**< IME main loop isn't started yet */
- AUTOFILL_ERROR_OPERATION_FAILED = TIZEN_ERROR_IME | 0x0003, /**< Operation failed */
- AUTOFILL_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< out of memory */
+ AUTOFILL_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
+ AUTOFILL_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< I/O Error */
+ AUTOFILL_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
+ AUTOFILL_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
+ AUTOFILL_ERROR_NOT_INITIALIZED = TIZEN_ERROR_ENDPOINT_NOT_CONNECTED, /**< Initialization is not set */
+ AUTOFILL_ERROR_NO_CALLBACK_FUNCTION = TIZEN_ERROR_IME | 0x0001, /**< Necessary callback function is not set */
+ AUTOFILL_ERROR_NOT_RUNNING = TIZEN_ERROR_IME | 0x0002, /**< IME main loop isn't started yet */
+ AUTOFILL_ERROR_OPERATION_FAILED = TIZEN_ERROR_IME | 0x0003, /**< Operation failed */
+ AUTOFILL_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< out of memory */
} autofill_error_e;
typedef struct autofill_item_s *autofill_item_h;
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
*/
-int autofill_auth_info_create(autofill_auth_info_h *vi); //
+int autofill_auth_info_create(autofill_auth_info_h *vi);
/**
* @brief Destroy autofill view info
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
*/
-int autofill_auth_info_set_app_id(autofill_auth_info_h vi, const char *app_id); //
+int autofill_auth_info_set_app_id(autofill_auth_info_h vi, const char *app_id);
/**
* @brief Get app id
* @return 0 on success, otherwise a negative error value
* @retval #IME_ERROR_NONE No error
*/
-int autofill_save_view_info_get_view_id(autofill_save_view_info_h vi, char **view_id); // app id get
+int autofill_save_view_info_get_view_id(autofill_save_view_info_h vi, char **view_id);
/**
* @brief Add autofill save item
int autofill_save_view_info_foreach_items(autofill_save_view_info_h h, bool (*callback)(autofill_save_item_h item, void *user_data), void *user_data);
// fill response
-// 각 입력 필드별 autofill fill response item
/**
- * @brief Add autofill fill response item
+ * @brief Create autofill fill response
*
* @since_tizen 5.5
*
int autofill_fill_response_create(autofill_fill_response_h *h);
/**
- * @brief Remove autofill fill response item
+ * @brief Destroy autofill fill response
*
* @since_tizen 5.5
*
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
*/
-int autofill_fill_response_item_create(autofill_fill_response_item_h *it); //
+int autofill_fill_response_item_create(autofill_fill_response_item_h *it);
/**
* @brief Destroy autofill fill response item
* @return 0 on success, otherwise a negative error value
* @retval #IME_ERROR_NONE No error
*/
-int autofill_save_item_set_id(autofill_save_item_h it, const char *id); // Set autofill ID
+int autofill_save_item_set_id(autofill_save_item_h it, const char *id);
/**
* @brief Get autofill ID
* @return 0 on success, otherwise a negative error value
* @retval #IME_ERROR_NONE No error
*/
-int autofill_save_item_get_id(autofill_save_item_h it, char **id); // Get autofill ID
+int autofill_save_item_get_id(autofill_save_item_h it, char **id);
/**
* @brief Set autofill label
* @return 0 on success, otherwise a negative error value
* @retval #IME_ERROR_NONE No error
*/
-int autofill_save_item_get_sensitive_data(autofill_save_item_h it, bool *sensitive); // Get sensitive data
+int autofill_save_item_get_sensitive_data(autofill_save_item_h it, bool *sensitive);
/**
* @brief Set autofill value
LOGD("id : %s, value : %s, presentation text : %s", id, value, presentation_text);
if (id1 && strcmp(id, id1) == 0) {
- //ecore_imf_context_event_callback_call(en1.imf_context, ECORE_IMF_CALLBACK_AUTOFILL_DATA_SET, response_item->value);
- //LOGD("autofill id : %s, value : %s", response_item->id, response_item->value);
evas_object_textblock_text_markup_prepend(en1.cursor, value);
- //return;
}
if (id2 && strcmp(id, id2) == 0) {
- //ecore_imf_context_event_callback_call(en1.imf_context, ECORE_IMF_CALLBACK_AUTOFILL_DATA_SET, response_item->value);
- //LOGD("autofill id : %s, value : %s", response_item->id, response_item->value);
evas_object_textblock_text_markup_prepend(en2.cursor, value);
- //return;
}
if (id) {