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