2#include <ArduinoJson.h>
25 void setName(
const std::string& n) { name = n; }
26 const std::string&
getName()
const {
return name; }
27 bool hasName()
const {
return ! name.empty(); }
31 virtual uint32_t
getDelay()
const {
return 0; }
Base class for all pedal actions.
void setName(const std::string &n)
virtual Type getType() const
virtual ~Action()=default
virtual uint32_t getDelay() const
virtual void getJsonProperties(JsonObject &json) const
virtual bool isSendAction() const
const std::string & getName() const
virtual bool isInProgress() const
Returns true if the action is currently in progress (e.g.