From eb5bc25a3ce4eb9a650e433a5206f535c54b453c Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 13 Sep 2015 08:17:15 +0300 Subject: protocol: added "data_required" field to module_download_ui_element_info for download creation ui renamed download_children_menu to download_content_menu as it's more apropriate name server: added "data_required" field to module_download_ui_element_info_s for download creation ui changed "id" field in module_download_menu_element_info_s from string to int implemented helper functions to fill module_info protobuff structure implemented most of module_info structures filling (tested, working) client: basic implementation of "download add widget" "marked_class" template for adding module defined id's to ui elements basic action buttons toolbar in main windows --- protocol/udm.proto | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'protocol') diff --git a/protocol/udm.proto b/protocol/udm.proto index 029183f..120fc9e 100644 --- a/protocol/udm.proto +++ b/protocol/udm.proto @@ -37,9 +37,11 @@ message module_download_ui_element_info { required int32 id = 2; //internal element id used to get element value (should be unique for every loaded module) optional string name = 3 [default = "not set"]; //can be non unique optional string description = 4; - repeated module_download_ui_element_info children = 5; + optional bool data_required = 5 [default = false]; //ui element may required data specified (used in download creation ui) + repeated module_download_ui_element_info children = 6; } + message module_download_menu_element_info { required int32 id = 1; required string name = 2; @@ -247,7 +249,7 @@ message module_info //general module info for client including settings, downloa repeated module_download_ui_element_info download_info_ui = 6; //always complete here repeated module_download_ui_element_info download_creation_ui = 7; repeated module_download_menu_element_info download_menu = 8; - repeated module_download_menu_element_info download_children_menu = 9; //menu for files and folders inside download root, may not present + repeated module_download_menu_element_info download_content_menu = 9; //menu for files and folders inside download root, may not present repeated string_pair get_downloads_parameters_info = 10; } -- cgit v1.2.3