- * @brief Sets the option value to register notification messages by download service module.
- * @details The three types of notification message can be posted. Those are completion, failed and ongoing type.
- * When the notification message of failed and ongoing types from the notification tray, \n
- * the client application which call this API will be launched. \n
- *
- * @remarks The extra param should be set together (See download_set_notification_extra_param()). \n
- * The downloading and failed notification can be registered only if the extra param for notification message is set. \n
- * If it is not, the client application can not know who request to launch itself. \n
- * It should be necessary to understand the action operation of notification click event.
- * @remarks If the competition notification message is selected from the notification tray,\n
- * the proper player application is launched automatically.
- * @remarks The default value is false. So if the client don't enable it, any notification messages are not registered.
- * @remarks This function should be called before downloading (See download_start())
- * @param[in] download The download id
- * @param[in] enable The boolean type. The true or false value is available.
- * @return 0 on success, otherwise a negative error value.
- * @retval #DOWNLOAD_ERROR_NONE Successful
- * @retval #DOWNLOAD_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #DOWNLOAD_ERROR_ID_NOT_FOUND No Download ID
- * @pre The state must be #DOWNLOAD_STATE_READY, #DOWNLOAD_STATE_FAILED, #DOWNLOAD_STATE_CANCELED
- * @see download_get_notification()
- * @see service_get_operation()
- * @deprecated This API can be replaced with download_set_notification_type()
- @code
- int ret = 0;
- //ret = download_set_notification(id, true);
- ret = download_set_notificationo_type(id, DOWNLOAD_NOTIFICATION_TYPE_ALL);
- //ret = download_set_notification(id, false);
- ret = download_set_notificationo_type(id, DOWNLOAD_NOTIFICATION_TYPE_NONE);
- @endcode
- */
-DEPRECATED int download_set_notification(int download_id, bool enable);
-
-/**
- * @brief Gets the option value to register notification messages by download service module.
- * @param[in] download The download id
- * @param[out] enable The boolean type. The true or false value is returned
- * @return 0 on success, otherwise a negative error value.
- * @retval #DOWNLOAD_ERROR_NONE Successful
- * @retval #DOWNLOAD_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #DOWNLOAD_ERROR_ID_NOT_FOUND No Download ID
- * @see download_set_notification()
- * @deprecated This API can be replaced with download_get_notification_type()
- @code
- int ret = 0;
- bool val = 0;
- download_notification_type_e type;
- //ret = download_get_notification(id, &val);
- ret = download_get_notification_type(id, &type);
- @endcode
- */
-DEPRECATED int download_get_notification(int download_id, bool *enable);
-
-/**
- * @brief Sets the extra param data which pass by application service data when notification message is clicked
- * @details When client set the extra param data for ongoing notification action, \n
- * it can get the data through service_get_extra_data() when client application is launched by notification action.
- *
- * @remarks This function should be called before downloading (See download_start())
- *
- * @param[in] download The download id
- * @param[in] key The character pointer type. The extra param has a pair of key and value
- * @param[in] values The character pointer array type. The extra param has a pair of key and value array
- * @param[in] length The length of value array
- * @return 0 on success, otherwise a negative error value.
- * @retval #DOWNLOAD_ERROR_NONE Successful
- * @retval #DOWNLOAD_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #DOWNLOAD_ERROR_ID_NOT_FOUND No Download ID
- * @see download_get_notification_extra_param()
- * @see download_remove_notification_extra_param()
- * @deprecated This API can be replaced with download_set_notification_bundle()
- @code
- #include <bundle.h>
- int ret = 0;
- // char *value[1] = ("12345",};
- //ret = download_add_notification_extra_param(id, "specific_id", value[0], 1);
- bundle *b = bundle_create();
- char buff[MAX_BUF_LEN] = {0,};
- appsvc_set_pkgname(b, "com.samsung.test-app");
- appsvc_add_data(b, "specific_id", "12345");
- ret = download_set_notification_bundle(id, DOWNLOAD_NOTIFICATION_BUNDLE_TYPE_ALL, b);
- bundle_free(b);
- @endcode
- */
-DEPRECATED int download_add_notification_extra_param(int download_id, const char *key, const char **values, const unsigned int length);
-
-/**
- * @brief Remove the extra param data which pass by application service data when notification message is clicked
- *
- * @remarks This function should be called before downloading (See download_start())
- *
- * @param[in] download The download id
- * @param[in] key The character pointer type. The extra param has a pair of key and value
- * @return 0 on success, otherwise a negative error value.
- * @retval #DOWNLOAD_ERROR_NONE Successful
- * @retval #DOWNLOAD_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #DOWNLOAD_ERROR_ID_NOT_FOUND No Download ID
- * @see download_add_notification_extra_param()
- * @see download_get_notification_extra_param()
- */
-DEPRECATED int download_remove_notification_extra_param(int download_id, const char *key);
-
-/**
- * @brief Gets the extra param value to set by download_set_notification_extra_param
- * @param[in] download The download id
- * @param[out] key The character pointer type. The extra param has a pair of key and value
- * @param[out] values param The character pointer array type. The extra param has a pair of key and value array
- * @param[out] length The length of value array
- * @return 0 on success, otherwise a negative error value.
- * @retval #DOWNLOAD_ERROR_NONE Successful
- * @retval #DOWNLOAD_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #DOWNLOAD_ERROR_ID_NOT_FOUND No Download ID
- * @see download_set_notification_extra_param()
- */
-DEPRECATED int download_get_notification_extra_param(int download_id, const char *key, char ***values, unsigned int *length);
-
-/**
- * @brief Gets the absolute path to save the downloaded file