autofill_auth_info_h ah;
autofill_auth_info_create(&ah);
- bool exist_autofill_data;
- bool need_authentication;
+ bool autofill_data_present = false;
+ bool authentication_needed = false;
char *view_id = NULL;
char *service_name = NULL;
char *service_logo_image_path = NULL;
char *service_message = NULL;
rpc_port_autofill_auth_info_get_view_id(auth_info_h, &view_id);
- rpc_port_autofill_auth_info_get_exist_autofill_data(auth_info_h, &exist_autofill_data);
- rpc_port_autofill_auth_info_get_need_authentication(auth_info_h, &need_authentication);
+ rpc_port_autofill_auth_info_get_exist_autofill_data(auth_info_h, &autofill_data_present);
+ rpc_port_autofill_auth_info_get_need_authentication(auth_info_h, &authentication_needed);
rpc_port_autofill_auth_info_get_service_name(auth_info_h, &service_name);
rpc_port_autofill_auth_info_get_service_logo_image_path(auth_info_h, &service_logo_image_path);
rpc_port_autofill_auth_info_get_service_message(auth_info_h, &service_message);
LOGD("service name : %s", service_name);
autofill_auth_info_set_view_id(ah, view_id);
- autofill_auth_info_set_exist_autofill_data(ah, exist_autofill_data);
- autofill_auth_info_set_need_authentication(ah, need_authentication);
+ autofill_auth_info_set_autofill_data_present(ah, autofill_data_present);
+ autofill_auth_info_set_authentication_needed(ah, authentication_needed);
autofill_auth_info_set_service_name(ah, service_name);
autofill_auth_info_set_service_logo_image_path(ah, service_logo_image_path);
autofill_auth_info_set_service_message(ah, service_message);
struct autofill_auth_info_s {
char *app_id;
char *view_id;
- bool exist_autofill_data; // autofill data 보유 여부
- bool need_authentication; // 인증 필요 여부
+ bool autofill_data_present; // autofill data presence
+ bool authentication_needed; // authentication needed
- char *service_name; // 서비스 이름 (ex> Samsung Pass)
- char *service_logo_image_path; // 서비스 로고 이미지 경로 (ex> /home/owner/…/appid/shared/samsung_pass_logo.png)
- char *service_message; // 표기 메시지 (ex> samsung pass로 로그인)
+ char *service_name; // Service name
+ char *service_logo_image_path; // Service logo image path (ex> /home/owner/…/appid/shared/xxx_logo.png)
+ char *service_message; // Service message (ex> Login with autofill service)
};
EXPORT_API int autofill_auth_info_create(autofill_auth_info_h *ai)
EXPORT_API int autofill_auth_info_set_exist_autofill_data(autofill_auth_info_h ai, bool exist_autofill_data)
{
+ return autofill_auth_info_set_autofill_data_present(ai, exist_autofill_data);
+}
+
+EXPORT_API int autofill_auth_info_set_autofill_data_present(autofill_auth_info_h ai, bool autofill_data_present)
+{
if (!ai)
return AUTOFILL_ERROR_INVALID_PARAMETER;
- ai->exist_autofill_data = exist_autofill_data;
+ ai->autofill_data_present = autofill_data_present;
return AUTOFILL_ERROR_NONE;
}
EXPORT_API int autofill_auth_info_get_exist_autofill_data(autofill_auth_info_h ai, bool *exist_autofill_data)
{
- if (!ai || !exist_autofill_data)
+ return autofill_auth_info_get_autofill_data_present(ai, exist_autofill_data);
+}
+
+EXPORT_API int autofill_auth_info_get_autofill_data_present(autofill_auth_info_h ai, bool *autofill_data_present)
+{
+ if (!ai || !autofill_data_present)
return AUTOFILL_ERROR_INVALID_PARAMETER;
- *exist_autofill_data = ai->exist_autofill_data;
+ *autofill_data_present = ai->autofill_data_present;
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_auth_info_set_need_authentication(autofill_auth_info_h ai, bool need_authentication)
+EXPORT_API int autofill_auth_info_set_authentication_needed(autofill_auth_info_h ai, bool authentication_needed)
{
if (!ai)
return AUTOFILL_ERROR_INVALID_PARAMETER;
- ai->need_authentication = need_authentication;
+ ai->authentication_needed = authentication_needed;
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_auth_info_get_need_authentication(autofill_auth_info_h ai, bool *need_authentication)
+EXPORT_API int autofill_auth_info_get_authentication_needed(autofill_auth_info_h ai, bool *authentication_needed)
{
- if (!ai || !need_authentication)
+ if (!ai || !authentication_needed)
return AUTOFILL_ERROR_INVALID_PARAMETER;
- *need_authentication = ai->need_authentication;
+ *authentication_needed = ai->authentication_needed;
return AUTOFILL_ERROR_NONE;
}
+EXPORT_API int autofill_auth_info_set_need_authentication(autofill_auth_info_h ai, bool authentication_needed)
+{
+ return autofill_auth_info_set_authentication_needed(ai, authentication_needed);
+}
+
+EXPORT_API int autofill_auth_info_get_need_authentication(autofill_auth_info_h ai, bool *authentication_needed)
+{
+ return autofill_auth_info_get_authentication_needed(ai, authentication_needed);
+}
+
EXPORT_API int autofill_auth_info_set_service_name(autofill_auth_info_h ai, const char *service_name)
{
if (!ai || !service_name)
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_fill_response_foreach_groups(autofill_fill_response_h h,
+EXPORT_API int autofill_fill_response_foreach_group(autofill_fill_response_h h,
autofill_fill_response_group_cb callback, void *user_data)
{
if (!h || !callback) {
return AUTOFILL_ERROR_NONE;
}
+EXPORT_API int autofill_fill_response_foreach_groups(autofill_fill_response_h h,
+ autofill_fill_response_group_cb callback, void *user_data)
+{
+ return autofill_fill_response_foreach_group(h, callback, user_data);
+}
+
EXPORT_API int autofill_fill_response_get_group_count(autofill_fill_response_h h, int *count)
{
if (!h || !count)
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_fill_response_group_foreach_items(autofill_fill_response_group_h h,
+EXPORT_API int autofill_fill_response_group_foreach_item(autofill_fill_response_group_h h,
autofill_fill_response_item_cb callback, void *user_data)
{
if (!h || !callback) {
return AUTOFILL_ERROR_NONE;
}
+
+EXPORT_API int autofill_fill_response_group_foreach_items(autofill_fill_response_group_h h,
+ autofill_fill_response_item_cb callback, void *user_data)
+{
+ return autofill_fill_response_group_foreach_item(h, callback, user_data);
+}
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_save_view_info_add_item(const autofill_save_view_info_h vi, autofill_save_item_h it)
+EXPORT_API int autofill_save_view_info_add_item(autofill_save_view_info_h vi, autofill_save_item_h it)
{
if (!vi || !it)
return AUTOFILL_ERROR_INVALID_PARAMETER;
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_save_view_info_foreach_items(autofill_save_view_info_h vi,
+EXPORT_API int autofill_save_view_info_foreach_item(autofill_save_view_info_h vi,
autofill_save_item_cb callback, void *user_data)
{
if (!vi || !callback) {
return AUTOFILL_ERROR_NONE;
}
+
+EXPORT_API int autofill_save_view_info_foreach_items(autofill_save_view_info_h vi,
+ autofill_save_item_cb callback, void *user_data)
+{
+ return autofill_save_view_info_foreach_item(vi, callback, user_data);
+}
\ No newline at end of file
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_view_info_add_item(const autofill_view_info_h vi, autofill_item_h it)
+EXPORT_API int autofill_view_info_add_item(autofill_view_info_h vi, autofill_item_h it)
{
if (!vi || !it)
return AUTOFILL_ERROR_INVALID_PARAMETER;
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_view_info_foreach_items(autofill_view_info_h vi,
+EXPORT_API int autofill_view_info_foreach_item(autofill_view_info_h vi,
autofill_item_cb callback, void *user_data)
{
if (!vi || !callback) {
return AUTOFILL_ERROR_NONE;
}
+
+EXPORT_API int autofill_view_info_foreach_items(autofill_view_info_h vi,
+ autofill_item_cb callback, void *user_data)
+{
+ return autofill_view_info_foreach_item(vi, callback, user_data);
+}
\ No newline at end of file
* @param[in] user_data The user data to be passed to the callback function
* @return @c true to continue with the next iteration of the loop,
* otherwise @c false to break out of the loop
- * @pre autofill_view_info_foreach_items() will invoke this callback.
- * @see autofill_view_info_foreach_items()
+ * @pre autofill_view_info_foreach_item() will invoke this callback.
+ * @see autofill_view_info_foreach_item()
*/
typedef bool (*autofill_item_cb)(autofill_item_h item, void *user_data);
* @param[in] user_data The user data to be passed to the callback function
* @return @c true to continue with the next iteration of the loop,
* otherwise @c false to break out of the loop
- * @pre autofill_view_info_foreach_items() will invoke this callback.
- * @see autofill_view_info_foreach_items()
+ * @pre autofill_view_info_foreach_item() will invoke this callback.
+ * @see autofill_view_info_foreach_item()
*/
typedef bool (*autofill_save_item_cb)(autofill_save_item_h item, void *user_data);
* @param[in] user_data The user data to be passed to the callback function
* @return @c true to continue with the next iteration of the loop,
* otherwise @c false to break out of the loop
- * @pre autofill_fill_response_foreach_groups() will invoke this callback.
- * @see autofill_fill_response_foreach_groups()
+ * @pre autofill_fill_response_foreach_group() will invoke this callback.
+ * @see autofill_fill_response_foreach_group()
*/
typedef bool (*autofill_fill_response_group_cb)(autofill_fill_response_group_h item, void *user_data);
* @param[in] user_data The user data to be passed to the callback function
* @return @c true to continue with the next iteration of the loop,
* otherwise @c false to break out of the loop
- * @pre autofill_fill_response_group_foreach_items() will invoke this callback.
- * @see autofill_view_info_foreach_items()
+ * @pre autofill_fill_response_group_foreach_item() will invoke this callback.
+ * @see autofill_view_info_foreach_item()
*/
typedef bool (*autofill_fill_response_item_cb)(autofill_fill_response_item_h item, void *user_data);
int autofill_auth_info_get_view_id(autofill_auth_info_h ai, char **view_id);
/**
- * @brief Sets the exist autofill data in autofill authentication information.
+ * @brief Sets the 'autofill data present' attribute in autofill authentication information.
* @since_tizen 5.5
* @param[in] ai The autofill authentication information handle
- * @param[in] exist_autofill_data The autofill data existence
+ * @param[in] autofill_data_present The autofill data presence
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_auth_info_set_exist_autofill_data(autofill_auth_info_h ai, bool exist_autofill_data);
+int autofill_auth_info_set_autofill_data_present(autofill_auth_info_h ai, bool autofill_data_present);
/**
- * @brief Gets the exist autofill data in autofill authentication information.
+ * @brief Gets the 'autofill data present' attribute in autofill authentication information.
* @since_tizen 5.5
* @param[in] ai The autofill authentication information handle
- * @param[out] exist_autofill_data The autofill data existence
+ * @param[out] autofill_data_present The autofill data presence
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_auth_info_get_exist_autofill_data(autofill_auth_info_h ai, bool *exist_autofill_data);
+int autofill_auth_info_get_autofill_data_present(autofill_auth_info_h ai, bool *autofill_data_present);
/**
- * @brief Sets the need authentication in autofill authentication information.
+ * @brief Sets the 'authentication needed' attribute in autofill authentication information.
* @since_tizen 5.5
* @param[in] ai The autofill authentication information handle
- * @param[in] need_authentication The authentication need
+ * @param[in] authentication_needed The authentication need
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_auth_info_set_need_authentication(autofill_auth_info_h ai, bool need_authentication);
+int autofill_auth_info_set_authentication_needed(autofill_auth_info_h ai, bool authentication_needed);
/**
- * @brief Gets the need authentication in autofill authentication information.
+ * @brief Gets the 'authentication needed' attribute in autofill authentication information.
* @since_tizen 5.5
* @param[in] ai The autofill authentication information handle
- * @param[out] need_authentication The authentication need
+ * @param[out] authentication_needed The authentication need
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_auth_info_get_need_authentication(autofill_auth_info_h ai, bool *need_authentication);
+int autofill_auth_info_get_authentication_needed(autofill_auth_info_h ai, bool *authentication_needed);
/**
* @brief Sets the service name in autofill authentication information.
int autofill_auth_info_get_service_logo_image_path(autofill_auth_info_h ai, char **service_logo_image_path);
/**
- * @brief Creates an autofill view information.
+ * @brief Creates autofill view information.
* @since_tizen 5.5
* @remarks If the function succeeds, @a vi handle must be released with autofill_view_info_destroy().
* @param[out] vi The autofill view info handle
int autofill_view_info_create(autofill_view_info_h *vi);
/**
- * @brief Destroys an autofill view information.
+ * @brief Destroys autofill view information.
* @since_tizen 5.5
* @param[in] vi The autofill view info handle
* @return 0 on success, otherwise a negative error value
int autofill_view_info_destroy(autofill_view_info_h vi);
/**
- * @brief Sets the app id in an autofill view information.
+ * @brief Sets the app id in autofill view information.
* @since_tizen 5.5
* @param[in] vi The autofill view info handle
* @param[in] app_id The app ID
int autofill_view_info_set_app_id(autofill_view_info_h vi, const char *app_id);
/**
- * @brief Gets the app id in an autofill view information.
+ * @brief Gets the app id in autofill view information.
* @since_tizen 5.5
* @remarks @a app_id must be released using free().
* @param[in] vi The autofill view info handle
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_view_info_get_app_id(const autofill_view_info_h vi, char **app_id);
+int autofill_view_info_get_app_id(autofill_view_info_h vi, char **app_id);
/**
- * @brief Sets the view id in an autofill view information.
+ * @brief Sets the view id in autofill view information.
* @since_tizen 5.5
* @param[in] vi The autofill view info handle
* @param[in] view_id The view ID
int autofill_view_info_set_view_id(autofill_view_info_h vi, const char *view_id);
/**
- * @brief Gets the view id in an autofill view information.
+ * @brief Gets the view id in autofill view information.
* @since_tizen 5.5
* @remarks @a view_id must be released using free().
* @param[in] vi The autofill view info handle
int autofill_view_info_get_view_id(autofill_view_info_h vi, char **view_id);
/**
- * @brief Adds autofill item in an autofill view information.
+ * @brief Adds autofill item in autofill view information.
* @since_tizen 5.5
* @param[in] vi The autofill view info handle
* @param[in] it The autofill item handle
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_view_info_add_item(const autofill_view_info_h vi, autofill_item_h it);
+int autofill_view_info_add_item(autofill_view_info_h vi, autofill_item_h it);
/**
- * @brief Retrieves all items in view information.
+ * @brief Retrieves all items in autofill view information.
* @since_tizen 5.5
* @param[in] vi The autofill view info handle
* @param[in] callback The callback function to register
int autofill_view_info_foreach_item(autofill_view_info_h vi, autofill_item_cb callback, void *user_data);
/**
- * @brief Creates an autofill save view.
+ * @brief Creates autofill save view information.
* @since_tizen 5.5
* @remarks If the function succeeds, @a vi handle must be released with autofill_save_view_info_destroy()
* @param[out] vi The autofill view info handle
int autofill_save_view_info_create(autofill_save_view_info_h *vi);
/**
- * @brief Destroys an autofill save view.
+ * @brief Destroys autofill save view information.
* @since_tizen 5.5
* @param[in] vi The autofill view info handle
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_save_view_info_get_app_id(const autofill_save_view_info_h vi, char **app_id);
+int autofill_save_view_info_get_app_id(autofill_save_view_info_h vi, char **app_id);
/**
- * @brief Sets the view ID in autofill save view information.
+ * @brief Sets the view ID in autofill save view information.
* @since_tizen 5.5
* @param[in] vi The autofill view info handle
* @param[in] view_id The view ID
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_save_view_info_add_item(const autofill_save_view_info_h vi, autofill_save_item_h it);
+int autofill_save_view_info_add_item(autofill_save_view_info_h vi, autofill_save_item_h it);
/**
- * @brief Retrieves all items in save view information.
+ * @brief Retrieves all items in autofill save view information.
* @since_tizen 5.5
* @param[in] vi The autofill view info handle
* @param[in] callback The callback function to register
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_save_view_info_foreach_items(autofill_save_view_info_h vi, autofill_save_item_cb callback, void *user_data);
+int autofill_save_view_info_foreach_item(autofill_save_view_info_h vi, autofill_save_item_cb callback, void *user_data);
/**
* @brief Creates an autofill fill response.
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_fill_response_foreach_groups(autofill_fill_response_h h, autofill_fill_response_group_cb callback, void *user_data);
+int autofill_fill_response_foreach_group(autofill_fill_response_h h, autofill_fill_response_group_cb callback, void *user_data);
/**
* @brief Gets the number of fill response group.
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_fill_response_group_foreach_items(autofill_fill_response_group_h h, autofill_fill_response_item_cb callback, void *user_data);
+int autofill_fill_response_group_foreach_item(autofill_fill_response_group_h h, autofill_fill_response_item_cb callback, void *user_data);
/**
* @brief Creates autofill response item.
*/
int autofill_save_item_get_value(autofill_save_item_h it, char **value);
+#include <autofill_common_deprecated.h>
+
/**
* @}
*/
--- /dev/null
+/*
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __TIZEN_UIX_AUTOFILL_COMMON_DEPRECATED_H__
+#define __TIZEN_UIX_AUTOFILL_COMMON_DEPRECATED_H__
+
+/**
+ * @file autofill_common_deprecated.h
+ * @brief This file contains deprecated autofill common APIs and related enumeration.
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @deprecated Use autofill_view_info_foreach_item()
+ * @brief Retrieves all items in view info.
+ * @since_tizen 5.5
+ * @param[in] vi The autofill view info handle
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_view_info_foreach_items(autofill_view_info_h vi, autofill_item_cb callback, void *user_data) TIZEN_DEPRECATED_API;
+
+/**
+ * @deprecated Use autofill_save_view_info_foreach_item()
+ * @brief Retrieves all items in save view info.
+ * @since_tizen 5.5
+ * @param[in] vi The autofill view info handle
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_save_view_info_foreach_items(autofill_save_view_info_h vi, autofill_save_item_cb callback, void *user_data) TIZEN_DEPRECATED_API;
+
+/**
+ * @deprecated Use autofill_fill_response_foreach_group()
+ * @brief Retrieves all groups of each fill response.
+ * @since_tizen 5.5
+ * @param[in] h The autofill fill response handle
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_fill_response_foreach_groups(autofill_fill_response_h h, autofill_fill_response_group_cb callback, void *user_data) TIZEN_DEPRECATED_API;
+
+/**
+ * @deprecated Use autofill_fill_response_group_foreach_item()
+ * @brief Retrieves all fill response items of each group.
+ * @since_tizen 5.5
+ * @param[in] h The autofill fill response group handle
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_fill_response_group_foreach_items(autofill_fill_response_group_h h, autofill_fill_response_item_cb callback, void *user_data) TIZEN_DEPRECATED_API;
+
+/**
+ * @deprecated Use autofill_auth_info_set_autofill_data_present()
+ * @brief Sets the exist autofill data in an autofill authentication information.
+ * @since_tizen 5.5
+ * @param[in] ai The autofill authentication information handle
+ * @param[in] exist_autofill_data The autofill data existence
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_auth_info_set_exist_autofill_data(autofill_auth_info_h ai, bool exist_autofill_data) TIZEN_DEPRECATED_API;
+
+/**
+ * @brief Gets the exist autofill data in an autofill authentication information.
+ * @since_tizen 5.5
+ * @param[in] ai The autofill authentication information handle
+ * @param[out] exist_autofill_data The autofill data existence
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_auth_info_get_exist_autofill_data(autofill_auth_info_h ai, bool *exist_autofill_data) TIZEN_DEPRECATED_API;
+
+/**
+ * @deprecated Use autofill_auth_info_set_authentication_needed()
+ * @brief Sets the need authentication in an autofill authentication information.
+ * @since_tizen 5.5
+ * @param[in] ai The autofill authentication information handle
+ * @param[in] need_authentication The authentication need
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_auth_info_set_need_authentication(autofill_auth_info_h ai, bool need_authentication) TIZEN_DEPRECATED_API;
+
+/**
+ * @deprecated Use autofill_auth_info_get_authentication_needed()
+ * @brief Gets the need authentication in an autofill authentication information.
+ * @since_tizen 5.5
+ * @param[in] ai The autofill authentication information handle
+ * @param[out] need_authentication The authentication need
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_auth_info_get_need_authentication(autofill_auth_info_h ai, bool *need_authentication) TIZEN_DEPRECATED_API;
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __TIZEN_UIX_AUTOFILL_COMMON_DEPRECATED_H__ */
EXPORT_API int autofill_service_send_auth_info(autofill_auth_info_h h)
{
- bool exist_autofill_data;
- bool need_authentication;
+ bool autofill_data_present = false;
+ bool authentication_needed = false;
char *app_id = NULL;
char *view_id = NULL;
char *service_name = NULL;
autofill_auth_info_get_app_id(h, &app_id);
autofill_auth_info_get_view_id(h, &view_id);
- autofill_auth_info_get_exist_autofill_data(h, &exist_autofill_data);
- autofill_auth_info_get_need_authentication(h, &need_authentication);
+ autofill_auth_info_get_autofill_data_present(h, &autofill_data_present);
+ autofill_auth_info_get_authentication_needed(h, &authentication_needed);
autofill_auth_info_get_service_name(h, &service_name);
autofill_auth_info_get_service_message(h, &service_message);
autofill_auth_info_get_service_logo_image_path(h, &service_logo_image_path);
rpc_port_autofill_svc_auth_info_create(&auth_info_h);
rpc_port_autofill_svc_auth_info_set_app_id(auth_info_h, app_id);
rpc_port_autofill_svc_auth_info_set_view_id(auth_info_h, view_id);
- rpc_port_autofill_svc_auth_info_set_exist_autofill_data(auth_info_h, exist_autofill_data);
- rpc_port_autofill_svc_auth_info_set_need_authentication(auth_info_h, need_authentication);
+ rpc_port_autofill_svc_auth_info_set_exist_autofill_data(auth_info_h, autofill_data_present);
+ rpc_port_autofill_svc_auth_info_set_need_authentication(auth_info_h, authentication_needed);
rpc_port_autofill_svc_auth_info_set_service_name(auth_info_h, service_name);
rpc_port_autofill_svc_auth_info_set_service_message(auth_info_h, service_message);
rpc_port_autofill_svc_auth_info_set_service_logo_image_path(auth_info_h, service_logo_image_path);
{
rpc_port_autofill_svc_response_group_create(&res_group_h);
- autofill_fill_response_group_foreach_items(it, __fill_response_item_cb, res_group_h);
+ autofill_fill_response_group_foreach_item(it, __fill_response_item_cb, res_group_h);
rpc_port_autofill_svc_fill_response_add_response_groups(fill_response_h, res_group_h);