summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-19 03:38:18 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-19 03:38:18 +0300
commitef4041f9a350b73fc88fdfaa8af36631b656dcd2 (patch)
treeec1f1806a3134dfaf48aacc44435f4ab6a5c1cbd
parente3224fa845a04c632721bca236f024e83cdfee68 (diff)
protocol:
implementing initial structures qt-client: project skeleton docs: diagram fixes
-rw-r--r--client-qt/udm-client-qt/main.cpp11
-rw-r--r--client-qt/udm-client-qt/udm-client-qt.pro18
-rw-r--r--client-qt/udm-client-qt/udm_main.cpp11
-rw-r--r--client-qt/udm-client-qt/udm_main.h15
-rw-r--r--docs/draft-0.0.0.1.diabin3477 -> 3560 bytes
-rw-r--r--protocol/udm.proto47
6 files changed, 99 insertions, 3 deletions
diff --git a/client-qt/udm-client-qt/main.cpp b/client-qt/udm-client-qt/main.cpp
new file mode 100644
index 0000000..d4dce0b
--- /dev/null
+++ b/client-qt/udm-client-qt/main.cpp
@@ -0,0 +1,11 @@
+#include "udm_main.h"
+#include <QApplication>
+
+int main(int argc, char *argv[])
+{
+ QApplication a(argc, argv);
+ udm_main w;
+ w.show();
+
+ return a.exec();
+}
diff --git a/client-qt/udm-client-qt/udm-client-qt.pro b/client-qt/udm-client-qt/udm-client-qt.pro
new file mode 100644
index 0000000..ce81c93
--- /dev/null
+++ b/client-qt/udm-client-qt/udm-client-qt.pro
@@ -0,0 +1,18 @@
+#-------------------------------------------------
+#
+# Project created by QtCreator 2015-03-19T03:37:05
+#
+#-------------------------------------------------
+
+QT += core gui
+
+greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+
+TARGET = udm-client-qt
+TEMPLATE = app
+
+
+SOURCES += main.cpp\
+ udm_main.cpp
+
+HEADERS += udm_main.h
diff --git a/client-qt/udm-client-qt/udm_main.cpp b/client-qt/udm-client-qt/udm_main.cpp
new file mode 100644
index 0000000..eb836bc
--- /dev/null
+++ b/client-qt/udm-client-qt/udm_main.cpp
@@ -0,0 +1,11 @@
+#include "udm_main.h"
+
+udm_main::udm_main(QWidget *parent)
+ : QMainWindow(parent)
+{
+}
+
+udm_main::~udm_main()
+{
+
+}
diff --git a/client-qt/udm-client-qt/udm_main.h b/client-qt/udm-client-qt/udm_main.h
new file mode 100644
index 0000000..4c9bf91
--- /dev/null
+++ b/client-qt/udm-client-qt/udm_main.h
@@ -0,0 +1,15 @@
+#ifndef UDM_MAIN_H
+#define UDM_MAIN_H
+
+#include <QMainWindow>
+
+class udm_main : public QMainWindow
+{
+ Q_OBJECT
+
+public:
+ udm_main(QWidget *parent = 0);
+ ~udm_main();
+};
+
+#endif // UDM_MAIN_H
diff --git a/docs/draft-0.0.0.1.dia b/docs/draft-0.0.0.1.dia
index 985a6c1..66958b9 100644
--- a/docs/draft-0.0.0.1.dia
+++ b/docs/draft-0.0.0.1.dia
Binary files differ
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;
+}