Skip to content
Snippets Groups Projects
Unverified Commit be6f8376 authored by Leon Dietrich's avatar Leon Dietrich
Browse files

add: further structure

parent 70696ebd
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -4,8 +4,15 @@ ...@@ -4,8 +4,15 @@
#include <memory> #include <memory>
#include <shared_mutex> #include <shared_mutex>
#include "progress_indicator.hpp"
namespace rmrf::ui { 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> { class display : public std::enable_shared_from_this<display> {
public: public:
typedef display self_type; typedef display self_type;
...@@ -30,4 +37,12 @@ public: ...@@ -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>);
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment