Delete multi_language support apis 21/213421/1
authormk5004.lee <mk5004.lee@samsung.com>
Thu, 5 Sep 2019 06:45:58 +0000 (15:45 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Thu, 5 Sep 2019 06:45:58 +0000 (15:45 +0900)
Change-Id: I0143b3a1a65e9f7f2a62cd5574b3d222c08b4a81
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
notification-ex/api/notification_ex_button.h
notification-ex/api/notification_ex_checkbox.h
notification-ex/api/notification_ex_item.h
notification-ex/api/notification_ex_text.h

index d95f8b0..32aa34d 100644 (file)
@@ -85,33 +85,6 @@ int noti_ex_item_button_create(noti_ex_item_h *handle, const char *id, const cha
 int noti_ex_item_button_get_title(noti_ex_item_h handle, char **title);
 
 /**
- * @brief Sets the multi language handle for the title of a button item.
- * @since_tizen 5.5
- * @param[in] handle The notification_ex item handle
- * @param[in] lang The notification_ex_multi_lang handle
- * @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_multi_lang_h
- * @see noti_ex_item_button_create()
- * @par Sample code:
- * @code
-#include <notification_ex.h>
-
-{
-       int ret;
-       noti_ex_item_h button_item = NULL;
-       noti_ex_multi_lang_h lang = NULL;
-
-       ret = noti_ex_item_button_create(&button_item, "button_id", "button_title");
-       ret = noti_ex_multi_lang_create(&lang, "Button 1", "IDS_BUTTON_TITLE", 1);
-       ret = noti_ex_item_button_set_multi_language(button_item, lang);
-}
- * @endcode
- */
-int noti_ex_item_button_set_multi_language(noti_ex_item_h handle, noti_ex_multi_lang_h lang);
-
-/**
  * @}
  */
 
index 469be38..685ea6b 100644 (file)
@@ -133,14 +133,14 @@ 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 Sets the multi language handle for the title of a checkbox item.
+ * @brief Gets the check state of a checkbox.
  * @since_tizen 5.5
  * @param[in] handle The notification_ex item handle
- * @param[in] lang The notification_ex_multi_lang 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_multi_lang_h
+ * @see #noti_ex_item_h
  * @see noti_ex_item_checkbox_create()
  * @par Sample code:
  * @code
@@ -148,19 +148,12 @@ int noti_ex_item_checkbox_set_check_state(noti_ex_item_h handle, bool checked);
 
 {
        int ret;
-       noti_ex_item_h checkbox_item = NULL;
-       noti_ex_multi_lang_h lang = NULL;
-
-       noti_ex_item_h text_item = NULL;
+       bool checked;
 
-       ret = noti_ex_item_checkbox_create(&checkbox_item, "checkbox_id", "checkbox_title", false);
-       ret = noti_ex_multi_lang_create(&lang, "title 1", "IDS_CHECKBOX_TITLE", 1);
-       ret = noti_ex_item_checkbox_set_multi_language(checkbox_item, lang);
+       ret = noti_ex_item_checkbox_is_checked(checkbox_item, &checked);
 }
  * @endcode
  */
-int noti_ex_item_checkbox_set_multi_language(noti_ex_item_h handle, noti_ex_multi_lang_h lang);
-
 int noti_ex_item_checkbox_is_checked(noti_ex_item_h handle, bool *checked);
 
 /**
index da0a286..3288f7d 100644 (file)
@@ -2222,61 +2222,6 @@ int noti_ex_item_find_by_main_type(noti_ex_item_h handle, int type,
                noti_ex_item_h *item);
 
 /**
- * @brief The notification_ex_nulti_lang handle.
- * @since_tizen 5.5
- */
-typedef void *noti_ex_multi_lang_h;
-
-/**
- * @brief Creates the notification_ex_multi_lang handle for multi language support.
- * @since_tizen 5.5
- * @remarks @a handle must be released using noti_ex_multi_lang_destroy().
- * @param[out] handle The notification_ex_multi_lang handle
- * @param[in] text The basic text
- * @param[in] msg_id The message id for localization
- * @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
- * @retval #NOTI_EX_ERROR_OUT_OF_MEMORY out of memory
- * @see #noti_ex_multi_lang_h
- * @see noti_ex_multi_lang_destroy()
- * @par Sample code:
- * @code
-#include <notification_ex.h>
-
-{
-       int ret;
-       noti_ex_multi_lang_h lang;
-
-       noti_ex_multi_lang_create(&lang, "You get 20 messages.", "IDS_APP_BODY_GET_MESSAGES", 20);
-}
- * @endcode
- */
-int noti_ex_multi_lang_create(noti_ex_multi_lang_h *lang, const char *text,  const char *msg_id, ...);
-
-/**
- * @brief Releases the notification_ex_multi_lang handle.
- * @since_tizen 5.5
- * @param[in] handle The notification_ex_multi_lang handle
- * @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
- * @see #noti_ex_multi_lang_h
- * @par Sample code:
- * @code
-#include <notification_ex.h>
-
-{
-       int ret;
-
-       ret = noti_ex_multi_lang_destroy(lang);
-}
- * @endcode
- */
-int noti_ex_multi_lang_destroy(noti_ex_multi_lang_h lang);
-
-
-/**
  * @}
  */
 
index dcbdac6..851538e 100644 (file)
@@ -134,35 +134,6 @@ int noti_ex_item_text_get_contents(noti_ex_item_h handle, char **contents);
 int noti_ex_item_text_get_hyperlink(noti_ex_item_h handle, char **hyperlink);
 
 /**
- * @brief Sets the multi language handle for the title of a text item.
- * @since_tizen 5.5
- * @param[in] handle The notification_ex item handle
- * @param[in] lang The notification_ex_multi_lang handle
- * @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_multi_lang_h
- * @see noti_ex_item_text_create()
- * @par Sample code:
- * @code
-#include <notification_ex.h>
-
-{
-       int ret;
-       noti_ex_item_h text_item = NULL;
-       noti_ex_multi_lang_h lang = NULL;
-
-       noti_ex_item_h text_item = NULL;
-
-       ret = noti_ex_item_text_create(&text_item, "text_id", "title", "hyperlink");
-       ret = noti_ex_multi_lang_create(&lang, "title 1", "IDS_TEXT_TITLE", 1);
-       ret = noti_ex_item_text_set_multi_language(text_item, lang);
-}
- * @endcode
- */
-int noti_ex_item_text_set_multi_language(noti_ex_item_h handle, noti_ex_multi_lang_h lang);
-
-/**
  * @}
  */