Beginning of scheduler code

This commit is contained in:
AlexandreRouma
2021-11-14 18:30:58 +01:00
parent d20b41401f
commit 0ab4d16f9d
11 changed files with 419 additions and 37 deletions

View File

@@ -0,0 +1,28 @@
#pragma once
#include <json.hpp>
#include <memory>
#include <spdlog/spdlog.h>
using namespace nlohmann;
namespace sched_action {
class ActionClass {
public:
virtual ~ActionClass() {
spdlog::warn("Base destructor");
};
virtual void trigger() = 0;
virtual void prepareEditMenu() = 0;
virtual void validateEditMenu() = 0;
virtual void showEditMenu() = 0;
virtual void loadFromConfig(json config) = 0;
virtual json saveToConfig() = 0;
virtual std::string getName() = 0;
virtual bool isValid() = 0;
};
typedef std::shared_ptr<ActionClass> Action;
}
#include <actions/start_recorder.h>
#include <actions/tune_vfo.h>