1 #ifndef VTESTBED_GUI_TASKDIALOG_HH 2 #define VTESTBED_GUI_TASKDIALOG_HH 6 #include <vtestbed/gui/Task.hh> 24 State _state = State::Initial;
25 bool _visible =
false;
37 this->_state = State::Error;
38 this->_errorText = message;
48 return this->_visible;
53 return !this->_visible;
59 template <
class Function>
62 this->_state = State::Running;
63 this->_visible =
true;
64 this->_task.run(func);
67 inline void open() { this->_open =
true; }
75 #endif // vim:filetype=cpp