diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-09-14 12:31:13 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-09-14 12:31:13 +0300 |
commit | 1d6ced38a89547aaf2cc3745876360f0e5086474 (patch) | |
tree | bbc627e26fb759884d8aefd4a789805a98beec31 /client-qt/udm-client-qt/marked_class.h | |
parent | b8dd66d71676603dc3081b1de07f2e76732737bd (diff) |
protocol:
added module field to client_download_add_request as required
server:
small handle_command redesign to avoid crashes
client-qt:
implemented all basic features of download add widget (working now, tested)
Diffstat (limited to 'client-qt/udm-client-qt/marked_class.h')
-rw-r--r-- | client-qt/udm-client-qt/marked_class.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/client-qt/udm-client-qt/marked_class.h b/client-qt/udm-client-qt/marked_class.h index de5bd96..f3fef9c 100644 --- a/client-qt/udm-client-qt/marked_class.h +++ b/client-qt/udm-client-qt/marked_class.h @@ -23,6 +23,14 @@ #ifndef MARKED_CLASS #define MARKED_CLASS +enum widget_type_e +{ + wrong_type_t = -1, + QLineEdit_t = 0, + QSpinBox_t +}; + + template <typename BASE> class marked_class : public BASE { @@ -37,8 +45,19 @@ public: return mark; } + void set_type(widget_type_e t) + { + type = t; + } + widget_type_e get_type() + { + return type; + } + + private: int mark = -1; + widget_type_e type = wrong_type_t; }; #endif // MARKED_CLASS |