diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-11-23 20:17:56 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-11-23 20:17:56 +0300 |
commit | d233b343940602429c4db1fb1bc2c0192240fd75 (patch) | |
tree | 7875ed9aab2c50d343b2ec3f9fb7257e60ec7279 /client-qt/udm-client-qt/udm_main.cpp | |
parent | 7ef827ea95590c3096f7f6255c5d40eb447d4178 (diff) |
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
Diffstat (limited to 'client-qt/udm-client-qt/udm_main.cpp')
-rw-r--r-- | client-qt/udm-client-qt/udm_main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -290,6 +290,12 @@ void udm_main::server_message_received(server_msg msg) 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); s->set_module_name(""); |