From ff903ef148e9d354e0ec4675c560a8e74b169633 Mon Sep 17 00:00:00 2001 From: Jungki Kwak Date: Tue, 10 Sep 2013 16:41:38 +0900 Subject: [PATCH] Add implementation part for new notification APIs [model] Redwood [binary_type] AP [customer] N/A [issue#] N/A [problem] N/A [cause] N/A [solution] Add implementation part for new notification APIs [team] Web [request] N/A [horizontal_expansion] N/A modified: src/download-wrapping.c Change-Id: Ie5426d078ddfd0cdc17210de863044df02972b76 --- src/download-wrapping.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/src/download-wrapping.c b/src/download-wrapping.c index eac0f41..5cbd122 100755 --- a/src/download-wrapping.c +++ b/src/download-wrapping.c @@ -301,3 +301,56 @@ int download_get_http_status(int download_id, int *http_status) return dp_interface_get_http_status(download_id, http_status); } +int download_set_notification_bundle(int download_id, download_notification_bundle_type_e type, bundle *b) +{ + TRACE_INFO(""); + return dp_interface_set_notification_bundle(download_id, (int)type, b); +} + +int download_get_notification_bundle(int download_id, download_notification_bundle_type_e type, bundle **b) +{ + TRACE_INFO(""); + return dp_interface_get_notification_bundle(download_id, (int)type, b); +} + +int download_set_notification_title(int download_id, const char *title) +{ + TRACE_INFO(""); + return dp_interface_set_notification_title(download_id, title); +} + +int download_get_notification_title(int download_id, char **title) +{ + TRACE_INFO(""); + return dp_interface_get_notification_title(download_id, title); +} + +int download_set_notification_description(int download_id, const char *description) +{ + TRACE_INFO(""); + return dp_interface_set_notification_description(download_id, description); +} + +int download_get_notification_description(int download_id, char **description) +{ + TRACE_INFO(""); + return dp_interface_get_notification_description(download_id, description); +} + +int download_set_notification_type(int download_id, download_notification_type_e type) +{ + TRACE_INFO(""); + return dp_interface_set_notification_type(download_id, (int)type); +} + +int download_get_notification_type(int download_id, download_notification_type_e *type) +{ + int noti_type = 0; + + TRACE_INFO(""); + int ret = dp_interface_get_notification_type(download_id, ¬i_type); + if (ret == DOWNLOAD_ADAPTOR_ERROR_NONE) + *type = (download_notification_type_e)noti_type; + return ret; +} + -- 2.7.4