2019-09-04 15:28:38 +02:00
|
|
|
#ifndef COMMANDHANDLER_H
|
|
|
|
#define COMMANDHANDLER_H
|
|
|
|
#include "DisplayProxy.h"
|
|
|
|
|
2021-10-28 14:44:20 +00:00
|
|
|
/**
|
|
|
|
* Parse a JSON command and convert it into a display command
|
|
|
|
*/
|
2019-09-04 15:28:38 +02:00
|
|
|
class CommandHandler
|
|
|
|
{
|
|
|
|
public:
|
2021-10-28 11:50:57 +00:00
|
|
|
explicit CommandHandler(DisplayProxy *display);
|
|
|
|
bool parse(const char *cmd);
|
2019-09-04 15:28:38 +02:00
|
|
|
private:
|
|
|
|
void debugWrite(int x, int y, const char *text);
|
|
|
|
DisplayProxy *display;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|