diff options
-rw-r--r-- | protocol/udm.proto | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/protocol/udm.proto b/protocol/udm.proto index 1a821b8..c928882 100644 --- a/protocol/udm.proto +++ b/protocol/udm.proto @@ -19,16 +19,18 @@ */ + enum MODULE_UI_ELEMENT_TYPE { - UI_STRING = 0; - UI_INTEGER = 1; - UI_PROGRESS_BAR = 2; - UI_WINDOW = 3; - UI_GROUP = 4; + UI_EMPTY = 0; //helper type to set empty element + UI_STRING = 1; //ui elements containing strings + UI_INTEGER = 2; //numeric only ui elements (use strings instead ?) + UI_PROGRESS_BAR = 3; //generic progress bar + UI_WINDOW = 4; //ui window ... + UI_GROUP = 5; //empty ui element to group children together in ui } message module_ui_element_info { - optional MODULE_UI_ELEMENT_TYPE type = 1 [default = UI_STRING]; + optional MODULE_UI_ELEMENT_TYPE type = 1 [default = UI_EMPTY]; repeated module_ui_element_info children = 2; required string id = 3; //internal element id used to get element value optional string name = 4 [default = "not set"]; |