aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/statusline_subscriber_adapter.hpp
blob: 925341f709719448cc44498ccb18a0091f6f1fee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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)>;