26 lines
486 B
C++
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
|