mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 22:52:30 +02:00
feat: basic config file
This commit is contained in:
21
include/factory.hpp
Normal file
21
include/factory.hpp
Normal file
@ -0,0 +1,21 @@
|
||||
#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"
|
||||
|
||||
namespace waybar {
|
||||
|
||||
class Factory {
|
||||
public:
|
||||
Factory(Bar &bar, Json::Value config);
|
||||
IModule &makeModule(std::string name);
|
||||
private:
|
||||
Bar &_bar;
|
||||
Json::Value _config;
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user