summaryrefslogtreecommitdiff
path: root/server/src/api_core_events.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2016-01-20 06:31:14 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2016-01-20 06:31:14 +0300
commit7c4d85348ecbb9913948edc53b82efaa97d85fda (patch)
tree411379a06b9b668069f8ce6d5dac87b1243fea91 /server/src/api_core_events.cpp
parent09a905e401df451f12673d75dc8d4d72ee73b7c9 (diff)
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
Diffstat (limited to 'server/src/api_core_events.cpp')
-rw-r--r--server/src/api_core_events.cpp3
1 files changed, 3 insertions, 0 deletions
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::list<download_stat
case download_state::download_running:
sc->set_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;