aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/statusline_subscriber_adapter.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-02 22:36:21 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:58 +0200
commitfb080f6fb911b1831c176a06259e384772541dd5 (patch)
treee18140e700cd974f84a5630f41fcb0b496b7e772 /src/interfaces/statusline_subscriber_adapter.hpp
parent40d02748924aa7c48b04cf948204d8dacdfbbc74 (diff)
refactor: seperate statusline related concerns
Diffstat (limited to 'src/interfaces/statusline_subscriber_adapter.hpp')
-rw-r--r--src/interfaces/statusline_subscriber_adapter.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/interfaces/statusline_subscriber_adapter.hpp b/src/interfaces/statusline_subscriber_adapter.hpp
new file mode 100644
index 0000000..53543f7
--- /dev/null
+++ b/src/interfaces/statusline_subscriber_adapter.hpp
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "interfaces/status_manager.hpp"
+#include "interfaces/statusline.hpp"
+#include "interfaces/subscriber.hpp"
+
+#include <yacppdic/factory.hpp>
+
+#include <memory>
+#include <vector>
+
+template <typename Context>
+using IStatusLineSubscriberAdapterFactory =
+ yacppdic::Factory<std::unique_ptr<ISubscriber<Context>>(
+ const std::shared_ptr<IStatusManager> &status_manager,
+ std::vector<StatusLineSection> sections
+ )>;