2018-08-09 12:05:48 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <json/json.h>
|
|
|
|
#include "modules/clock.hpp"
|
2018-08-15 20:17:17 +02:00
|
|
|
#include "modules/sway/workspaces.hpp"
|
|
|
|
#include "modules/sway/window.hpp"
|
2018-08-09 12:05:48 +02:00
|
|
|
#include "modules/battery.hpp"
|
|
|
|
#include "modules/memory.hpp"
|
|
|
|
#include "modules/cpu.hpp"
|
2018-08-09 16:38:24 +02:00
|
|
|
#include "modules/network.hpp"
|
2018-08-09 23:55:38 +02:00
|
|
|
#include "modules/pulseaudio.hpp"
|
2018-08-10 16:26:46 +02:00
|
|
|
#include "modules/custom.hpp"
|
2018-08-09 12:05:48 +02:00
|
|
|
|
|
|
|
namespace waybar {
|
|
|
|
|
2018-08-16 14:29:41 +02:00
|
|
|
class Factory {
|
|
|
|
public:
|
|
|
|
Factory(Bar &bar, Json::Value config);
|
2018-08-19 13:39:57 +02:00
|
|
|
IModule* makeModule(const std::string &name);
|
2018-08-16 14:29:41 +02:00
|
|
|
private:
|
|
|
|
Bar &_bar;
|
|
|
|
Json::Value _config;
|
|
|
|
};
|
2018-08-09 12:05:48 +02:00
|
|
|
|
|
|
|
}
|