mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-18 22:32:44 +00:00
Beginning of scheduler code
This commit is contained in:
28
misc_modules/scheduler/src/sched_action.h
Normal file
28
misc_modules/scheduler/src/sched_action.h
Normal 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>
|
||||
Reference in New Issue
Block a user