From: mk5004.lee Date: Thu, 26 Sep 2019 08:45:41 +0000 (+0900) Subject: Remove noti_ex_item_checkbox_is_checked api X-Git-Tag: submit/tizen/20191007.023557~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0eecf0c036fd13f94911e7a8368967c52f197cc;p=platform%2Fcore%2Fapi%2Fnotification.git Remove noti_ex_item_checkbox_is_checked api Change-Id: I5165fa236026ce2867a6cf6543b3c0fd37a7ad17 Signed-off-by: mk5004.lee --- diff --git a/notification-ex/api/notification_ex_checkbox.h b/notification-ex/api/notification_ex_checkbox.h index d5e4ea65..2263f133 100644 --- a/notification-ex/api/notification_ex_checkbox.h +++ b/notification-ex/api/notification_ex_checkbox.h @@ -172,30 +172,6 @@ int noti_ex_item_checkbox_get_check_state(noti_ex_item_h handle, bool *checked); */ int noti_ex_item_checkbox_set_check_state(noti_ex_item_h handle, bool checked); -/** - * @brief Gets the check state of a checkbox. - * @since_tizen 5.5 - * @param[in] handle The notification_ex item handle - * @param[out] checked The check state of a checkbox - * @return #NOTI_EX_ERROR_NONE On success, other value on failure - * @retval #NOTI_EX_ERROR_NONE Success - * @retval #NOTI_EX_ERROR_INVALID_PARAMETER Invalid parameter, if the item type is not correct, this error is returned - * @see #noti_ex_item_h - * @see noti_ex_item_checkbox_create() - * @par Sample code: - * @code -#include - -{ - int ret; - bool checked; - - ret = noti_ex_item_checkbox_is_checked(checkbox_item, &checked); -} - * @endcode - */ -int noti_ex_item_checkbox_is_checked(noti_ex_item_h handle, bool *checked); - /** * @} */ diff --git a/notification-ex/stub.cc b/notification-ex/stub.cc index ac664246..70fcba78 100644 --- a/notification-ex/stub.cc +++ b/notification-ex/stub.cc @@ -627,23 +627,6 @@ extern "C" EXPORT_API int noti_ex_item_checkbox_set_multi_language_title( return NOTI_EX_ERROR_NONE; } -extern "C" EXPORT_API int noti_ex_item_checkbox_is_checked(noti_ex_item_h handle, - bool *checked) { - if (handle == nullptr || checked == nullptr) { - LOGE("Invalid parameter"); - return NOTI_EX_ERROR_INVALID_PARAMETER; - } - Handle* h = static_cast(handle); - if (!h->IsValidType(AbstractItem::CheckBox)) { - LOGE("Invalid handle type"); - return NOTI_EX_ERROR_INVALID_PARAMETER; - } - CheckBoxItem* p = static_cast(h->Get()); - *checked = p->IsChecked(); - - return NOTI_EX_ERROR_NONE; -} - extern "C" EXPORT_API int noti_ex_item_checkbox_get_check_state( noti_ex_item_h handle, bool *checked) { if (handle == nullptr || checked == nullptr) {