From 7c4d85348ecbb9913948edc53b82efaa97d85fda Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 20 Jan 2016 06:31:14 +0300 Subject: protocol: download completed state client-qt: added "download completed" subscription and status support server: module_curl: used events api in core for download state changes core: download completed event support for modules --- server/src/api_core_events.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/src/api_core_events.cpp') diff --git a/server/src/api_core_events.cpp b/server/src/api_core_events.cpp index 525f60b..da0eae7 100644 --- a/server/src/api_core_events.cpp +++ b/server/src/api_core_events.cpp @@ -58,6 +58,9 @@ void core_events::download_state_changed(module_base *m, std::listset_state(SUBSCRIPTION_DOWNLOAD_STATE::SDS_STARTED); break; + case download_state::download_completed: + sc->set_state(SUBSCRIPTION_DOWNLOAD_STATE::SDS_COMPLETED); + break; default: BOOST_LOG_TRIVIAL(debug)<<__FILE__<<":"<<__LINE__<<"\t"<<__func__<<"\nunhandled download state change event"; break; -- cgit v1.2.3