esphome-ratgdo/components/ratgdo/ratgdo_child.h

23 lines
468 B
C
Raw Normal View History

2023-06-07 14:49:24 +00:00
#pragma once
#include "esphome/core/helpers.h"
namespace esphome {
namespace ratgdo {
2023-06-07 14:51:22 +00:00
// Forward declare RATGDOComponent
class RATGDOComponent;
2023-06-07 14:49:24 +00:00
2023-06-07 14:51:22 +00:00
class RATGDOClient : public Parented<RATGDOComponent> {
public:
virtual void on_status() = 0;
virtual void on_ratgdo_state(bool is_ready) = 0;
2023-06-07 14:49:24 +00:00
2023-06-07 14:51:22 +00:00
protected:
friend RATGDOComponent;
virtual std::string describe() = 0;
};
2023-06-07 14:49:24 +00:00
2023-06-07 14:51:22 +00:00
} // namespace ratgdo
} // namespace esphome