diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-09-13 08:17:15 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-09-13 08:17:15 +0300 |
commit | eb5bc25a3ce4eb9a650e433a5206f535c54b453c (patch) | |
tree | 913aaa9450937ebe6553195d853ed69b7a47bddc /client-qt/udm-client-qt/marked_class.h | |
parent | 53ecb7e48ede8dbfde85b6452d3fdbd7c56ae01e (diff) |
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
Diffstat (limited to 'client-qt/udm-client-qt/marked_class.h')
-rw-r--r-- | client-qt/udm-client-qt/marked_class.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/client-qt/udm-client-qt/marked_class.h b/client-qt/udm-client-qt/marked_class.h new file mode 100644 index 0000000..c12d68d --- /dev/null +++ b/client-qt/udm-client-qt/marked_class.h @@ -0,0 +1,23 @@ +#ifndef MARKED_CLASS +#define MARKED_CLASS + +template <typename BASE> +class marked_class : public BASE +{ +public: + + void set_mark(int mark) + { + this->mark = mark; + } + int get_mark() + { + return mark; + } + +private: + int mark = -1; +}; + +#endif // MARKED_CLASS + |