get rid of strings

This commit is contained in:
J. Nick Koston 2023-06-07 10:02:53 -05:00
parent 858157c7a0
commit 3d9bdd5897
No known key found for this signature in database
1 changed files with 6 additions and 11 deletions

View File

@ -8,20 +8,15 @@ namespace ratgdo {
// Forward declare RATGDOComponent // Forward declare RATGDOComponent
class RATGDOComponent; class RATGDOComponent;
// Forward declare enums
enum DoorState;
enum LightState;
enum LockState;
enum MotionState;
enum ObstructionState;
class RATGDOClient : public Parented<RATGDOComponent> { class RATGDOClient : public Parented<RATGDOComponent> {
public: public:
virtual void on_door_state(DoorState state) = 0; virtual void on_door_state(RATGDOComponent::DoorState state) = 0;
virtual void on_light_state(LightState state) = 0; virtual void on_light_state(RATGDOComponent::LightState state) = 0;
virtual void on_lock_state(LockState state) = 0; virtual void on_lock_state(RATGDOComponent::LockState state) = 0;
virtual void on_motion_state(MotionState state) = 0; virtual void on_motion_state(RATGDOComponent::MotionState state) = 0;
virtual void on_obstruction_state(ObstructionState state) = 0; virtual void on_obstruction_state(RATGDOComponent::ObstructionState state) = 0;
protected: protected:
friend RATGDOComponent; friend RATGDOComponent;