mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 14:11:12 +01:00
Add magic enum Add function to parse commands Add function to parse events Add function to feed json input to there corresponding parse functions and return there result
29 lines
444 B
C++
29 lines
444 B
C++
#pragma once
|
|
|
|
#include "simulators.hpp"
|
|
|
|
enum class Command
|
|
{
|
|
get_UI_element,
|
|
get_UI_elements,
|
|
switch_simulator,
|
|
get_active_simulator_name,
|
|
get_simulators,
|
|
end,
|
|
begin = 0
|
|
};
|
|
|
|
enum class Event
|
|
{
|
|
clicked,
|
|
value_changed,
|
|
text_changed,
|
|
selected,
|
|
ui_changed,
|
|
end,
|
|
begin = 0
|
|
};
|
|
|
|
std::string message_parser(std::string message);
|
|
json command_parser(json command);
|
|
void event_handler(json event); |