Files
Hotdog/lib/configurator/Configurator.h
2025-02-16 15:35:18 +11:00

26 lines
486 B
C++

#ifndef CONFIGURATOR_H
#define CONFIGURATOR_H
#include <vector>
#include <map>
#include <functional>
#include "Shade.h"
// TODO: Allow shades to be removed
class Configurator
{
private:
std::vector<std::function<void (Shade)>> shadeConfiguredCallbacks;
uint16_t parseRadioId(const char* rawRadioId);
public:
Configurator();
void addShadeConfiguredCallback(std::function<void (Shade)> callback);
void processJson(std::string json);
};
#endif // CONFIGURATOR_H