117 operator bool()
const;
125 operator uint16_t()
const;
183 std::unique_ptr<Private> d_ptr;
185 PIMPL_DECLARE_PRIVATE (
Event)
Spa Events.
Definition event.h:25
Type
Type of event.
Definition event.h:31
@ SanitizerOn
Sanitizer On, boolean, true when the sanitizer is on, false when the sanitizer is off.
Definition event.h:36
@ DesiredTemp
Desired water temperature in °C.
Definition event.h:40
@ SetDesiredTemp
Set desired water temperature in °C.
Definition event.h:41
@ SanitizerTime
Remaining sanitation time in hours.
Definition event.h:42
@ BubbleOn
Bubble On, boolean, true when the bubble is on, false when the bubble is off.
Definition event.h:34
@ ErrorCode
Error code displayed by the control panel, 0 if no error.
Definition event.h:43
@ AnyEvent
Any event.
Definition event.h:46
@ HeatReached
Heat Reached, boolean, true when the water temperature is reached (led green), false when the water t...
Definition event.h:38
@ FilterOn
Filter On, boolean, true when the filter is on, false when the filter is off.
Definition event.h:33
@ HeaterOn
Heater On, boolean, true when the heater is on, false when the heater is off.
Definition event.h:37
@ NoEvent
No event.
Definition event.h:45
@ WaterTemp
Water temperature in °C.
Definition event.h:39
@ JetOn
Jet On, boolean, true when the jet is on, false when the jet is off.
Definition event.h:35
@ PowerOn
Power On, boolean, true when the spa is powered on, false when the spa is powered off.
Definition event.h:32
@ AmbientTemperature
Ambient temperature in °C (if air temperature sensor is available)
Definition event.h:44
void setValue(uint16_t value)
Set the Data object.
void setType(Type type)
Set the Type object.
uint16_t value() const
Get the Value object.
void clear()
Clears the Event object After the call to this function, the Event object is the same as one that has...
bool operator!=(const Event &other) const
Checks if the two objects are not equal.
bool isNull() const
Returns true if the object is null (i.e. it has not been initialized, d_ptr is null)
static bool TypeIsBoolean(Type type)
Returns true if the event type is a boolean.
Event(Type type=Type::NoEvent, uint16_t value=0)
Construct a new Event object.
bool isEmpty() const
Checks if all attributes are set to their default values (same as the default constructor)
String toString() const
Convert the event to a string.
bool operator==(const Event &other) const
Checks if the two objects are equal.
static String typeToString(Type type)
Convert the event type to a string.
Event & operator=(const Event &other)
Sets the Event object to be equal to other.
Event(const Event &other)
Copy Constructor.
bool isBoolean() const
Returns true if the event type is a boolean.
Type type() const
Get the Type object.
virtual ~Event()
Destructor.
Event(Event &&other)
Move Constructor after the move, other is null, other.clear() must be called if it is to be used agai...
SpaIot name space.
Definition bussettings.h:15
@ Jet
Jet Led or Button.
Definition global.h:37
@ Filter
Filter Led or Button.
Definition global.h:35
@ Sanitizer
Sanitizer Led or Button.
Definition global.h:38
@ HeatReached
Heat Reached Led (Green)
Definition global.h:40
@ TempUp
Temperature Up Button.
Definition global.h:41
@ Bubble
Bubble Led or Button.
Definition global.h:36
@ Heater
Heater Led (Red) or Button.
Definition global.h:39
@ Power
Power Led or Button.
Definition global.h:34