Waybar/include/factory.hpp

20 lines
314 B
C++
Raw Normal View History

2018-08-09 10:05:48 +00:00
#pragma once
#include <AModule.hpp>
2018-08-09 10:05:48 +00:00
namespace waybar {
class Bar;
2018-08-16 12:29:41 +00:00
class Factory {
2019-04-18 15:52:00 +00:00
public:
Factory(const Bar& bar, const Json::Value& config);
2023-10-26 21:08:57 +00:00
AModule* makeModule(const std::string& name, const std::string& pos) const;
2019-04-18 15:52:00 +00:00
private:
2022-04-06 06:37:19 +00:00
const Bar& bar_;
2019-04-18 15:52:00 +00:00
const Json::Value& config_;
2018-08-16 12:29:41 +00:00
};
2018-08-09 10:05:48 +00:00
2019-04-18 15:52:00 +00:00
} // namespace waybar