From 3f9004b598fc8006576db9b8d2ae4e080101101b Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 8 Jun 2022 16:06:03 +0200 Subject: refactor: give game responsibility of statusline --- src/interfaces/status_manager.hpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/interfaces/status_manager.hpp') diff --git a/src/interfaces/status_manager.hpp b/src/interfaces/status_manager.hpp index 9c7234e..7c56df1 100644 --- a/src/interfaces/status_manager.hpp +++ b/src/interfaces/status_manager.hpp @@ -2,8 +2,6 @@ #include "interfaces/statusline.hpp" -#include - #include #include @@ -13,7 +11,7 @@ class IStatusManager public: virtual ~IStatusManager() = default; - virtual void initialize() noexcept = 0; + virtual void bind(const std::shared_ptr &statusline) noexcept = 0; virtual void set_section_title( const StatusLineSection §ion, @@ -22,10 +20,5 @@ public: virtual void set_section_body( const StatusLineSection §ion, const std::string_view &body) noexcept = 0; - - [[nodiscard]] virtual auto get_statusline() const noexcept - -> std::shared_ptr = 0; }; -using IStatusManagerFactory = yacppdic::Factory( - const std::shared_ptr &statusline)>; -- cgit v1.2.3-18-g5258