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