From be6f83761adc093070cf7ed95be4a23666ecaa6c Mon Sep 17 00:00:00 2001 From: Doralitze <doralitze@chaotikum.org> Date: Sat, 9 Mar 2019 20:24:30 +0100 Subject: [PATCH] add: further structure --- src/ui/view.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ui/view.hpp b/src/ui/view.hpp index 7c6e91e..0dde171 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>); +} + } -- GitLab