From ef4041f9a350b73fc88fdfaa8af36631b656dcd2 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 19 Mar 2015 03:38:18 +0300 Subject: protocol: implementing initial structures qt-client: project skeleton docs: diagram fixes --- protocol/udm.proto | 47 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 3 deletions(-) (limited to 'protocol') diff --git a/protocol/udm.proto b/protocol/udm.proto index dd21b70..ccbff46 100644 --- a/protocol/udm.proto +++ b/protocol/udm.proto @@ -1,3 +1,44 @@ -message placeholder_message { - required string placeholder_value = 1; -} \ No newline at end of file + + + + +enum UI_ELEMENT_TYPE { + STRING = 0; + INTEGER = 1; + PERCENT_BAR = 2; +} + +message ui_element_info { + optional UI_ELEMENT_TYPE type = 1 [default = STRING]; + required string id = 2; //internal element id used to get element value + optional string name = 3 [default = "not set"]; +} + +message module_info +{ + required string name = 1; + repeated ui_element_info ui_element = 2; + optional string decription = 3 [default = "no description specified"]; +} + + + + +enum CLIENT_MSG_TYPE { + CLIENT_HELLO = 0; +} + +message client_msg { + required CLIENT_MSG_TYPE type = 1; +} + + + + +enum SERVER_MSG_TYPE { + SERVER_HELLO = 0; +} + +message server_msg { + required SERVER_MSG_TYPE type = 1; +} -- cgit v1.2.3