/* 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. You should have received a copy of the GNU General Public License along with UDM. If not, see . */ #ifndef MARKED_CLASS #define MARKED_CLASS enum widget_type_e { wrong_type_t = -1, QLineEdit_t = 0, QSpinBox_t }; template class marked_class : public BASE { public: void set_mark(int mark) { this->mark = mark; } int get_mark() { 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