mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-15 04:37:11 +01:00
28 lines
722 B
C++
28 lines
722 B
C++
#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> |