diff options
| author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-11-22 10:26:42 +0300 |
|---|---|---|
| committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-11-22 10:26:42 +0300 |
| commit | 7ef827ea95590c3096f7f6255c5d40eb447d4178 (patch) | |
| tree | fa06fec027849c00f122bbf79a1b45134414a496 /protocol | |
| parent | f3693316d59943ca30f07dcdb614ffc8ebc30efe (diff) | |
prootcol:
added download_state change structure (used in download state changes event
from server)
client-qt:
subscription to download state changes events
server:
basic implementation of download state changes events
TODO: use single structure for download_state_changes in messages instead of all
separate ones.
Diffstat (limited to 'protocol')
| -rw-r--r-- | protocol/download.proto | 6 | ||||
| -rw-r--r-- | protocol/udm.proto | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/protocol/download.proto b/protocol/download.proto index d40ecb9..7684db3 100644 --- a/protocol/download.proto +++ b/protocol/download.proto @@ -19,6 +19,7 @@ */ import "misc.proto"; +import "events.proto"; message client_download_add_request { required string module_name = 1; @@ -80,3 +81,8 @@ message download { message server_download_reply { required download download = 1; } + +message download_state_change { + required int32 download_id = 1; + required SUBSCRIPTION_DOWNLOAD_STATE state = 2; +} diff --git a/protocol/udm.proto b/protocol/udm.proto index d80e1f0..78793fb 100644 --- a/protocol/udm.proto +++ b/protocol/udm.proto @@ -74,6 +74,7 @@ message client_msg { repeated client_event_unsubscription_request unsubscription_request = 6; optional client_download_request download_info_request = 7; optional client_download_add_request download_add_request = 8; + //TODO: use new download_state_change_request instaed of all download_*_request structures (simplification) repeated client_download_start_request download_start_request = 9; repeated client_download_stop_request download_stop_request = 10; repeated client_download_delete_request download_delete_request = 11; @@ -92,6 +93,7 @@ enum SERVER_MSG_TYPE { SERVER_UNSUBSCRIPTIONS_REPLY = 5; SERVER_DOWNLOADS_LIST_REPLY = 6; SERVER_DOWNLOAD_INFO_REPLY = 7; + SERVER_DOWNLOAD_STATE_CHANGE = 8; } @@ -106,6 +108,7 @@ message server_msg { repeated server_event_unsubscription_reply unsubscription_reply = 7; optional server_download_reply download = 8; repeated server_download_reply downloads = 9; + repeated download_state_change download_state_changes = 10; } //top level messages end |
