diff --git a/src/ui/view.hpp b/src/ui/view.hpp index 7c6e91e39c53d557d6e11db4469ba89647f3c695..0dde1716facb291374a2c3c6d7fca8c57e492082 100644 --- a/src/ui/view.hpp +++ b/src/ui/view.hpp @@ -4,8 +4,15 @@ #include <memory> #include <shared_mutex> +#include "progress_indicator.hpp" + namespace rmrf::ui { +/** + * This class is designed to be the first level adapter to curses. + * It implements some basic information handling and a registry for + * views. + */ class display : public std::enable_shared_from_this<display> { public: typedef display self_type; @@ -30,4 +37,12 @@ public: }; +/** + * This abstract class implements a view page. + */ +virtual class view { +public: + void set_progress_indicator(std::shared_ptr<progress_indicator>); +} + }