From d233b343940602429c4db1fb1bc2c0192240fd75 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 23 Nov 2015 20:17:56 +0300 Subject: client-qt: added subscription to download deleted event (handler not implemented yet) server: simplified "fire _event" implementation basic implementation of "add_event_subscription" in client class --- client-qt/udm-client-qt/udm_main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client-qt/udm-client-qt/udm_main.cpp') diff --git a/client-qt/udm-client-qt/udm_main.cpp b/client-qt/udm-client-qt/udm_main.cpp index 49a5c61..084fa06 100644 --- a/client-qt/udm-client-qt/udm_main.cpp +++ b/client-qt/udm-client-qt/udm_main.cpp @@ -289,6 +289,12 @@ void udm_main::server_message_received(server_msg msg) s->set_mode(SUBSCRIPTION_MODE::SM_EVENT); //this type of event support only "event" mode s->set_module_name(""); //we need this event for all installed modules + s = msg.add_subscription_request(); + s->set_type(SUBSCRIPTION_TYPE::ST_DOWNLOAD_DELETED); //fire event than new download deleted + s->set_mode(SUBSCRIPTION_MODE::SM_EVENT); //this type of event support only "event" mode + s->set_module_name(""); //we need this event for all installed modules + + s = msg.add_subscription_request(); s->set_type(SUBSCRIPTION_TYPE::ST_DOWNLOAD_STATE_CHANGE); //fire event than download state changed s->set_mode(SUBSCRIPTION_MODE::SM_EVENT); -- cgit v1.2.3