summaryrefslogtreecommitdiff
path: root/protocol
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-25 20:27:29 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-25 20:27:29 +0300
commita38f42c4f64d4dc7d978a0753f46fb5e324d25bd (patch)
tree68d3f60387603714d6dcbe937305842eb698b584 /protocol
parent4905fe0ada4e147176e8d396ac24389d8ef352eb (diff)
work in progress
Diffstat (limited to 'protocol')
-rw-r--r--protocol/udm.proto50
1 files changed, 42 insertions, 8 deletions
diff --git a/protocol/udm.proto b/protocol/udm.proto
index 2facc50..0898bf9 100644
--- a/protocol/udm.proto
+++ b/protocol/udm.proto
@@ -1,27 +1,61 @@
+/*
+ Copyright © 2015 Gluzskiy Alexandr (sss)
+ This file is part of Unknown Download Manager (UDM).
+ UDM is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+ UDM is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
-enum UI_ELEMENT_TYPE {
- STRING = 0;
- INTEGER = 1;
- PERCENT_BAR = 2;
- WINDOW = 3;
+ You should have received a copy of the GNU General Public License
+ along with UDM. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+
+enum MODULE_UI_ELEMENT_TYPE {
+ UI_STRING = 0;
+ UI_INTEGER = 1;
+ UI_PERCENT_BAR = 2;
+ UI_WINDOW = 3;
}
-message ui_element_info {
- optional UI_ELEMENT_TYPE type = 1 [default = STRING];
+message module_ui_element_info {
+ optional MODULE_UI_ELEMENT_TYPE type = 1 [default = UI_STRING];
required string id = 2; //internal element id used to get element value
optional string name = 3 [default = "not set"];
optional int32 width = 1001 [default = 0];
optional int32 height = 1002 [default = 0];
}
+enum MODULE_SETTING_TYPE {
+ SETTING_INTEGER = 0;
+ SETTING_STRING = 1;
+}
+
+message module_setting {
+ required MODULE_SETTING_TYPE type = 1 [default = SETTING_INTEGER];
+ required string id = 2;
+ optional string name = 3 [default = "not set"];
+ optional string default_value = 4 [default = "empty"];
+ optional string value = 5 [default = "empty"];
+}
+
+message module_settings_info {
+ repeated module_setting settings = 1;
+}
+
message module_info
{
required string name = 1;
required string version = 2;
- repeated ui_element_info ui_element = 3;
+ repeated module_ui_element_info ui_elements = 3;
optional string decription = 4 [default = "no description specified"];
}