13#include "bussettings.h"
14#include "ledsettings.h"
15#include "buttonsettings.h"
44 const std::map <int, LedSettings> &
leds,
45 const std::map <int, ButtonSettings> &
buttons);
103 const std::map <int, LedSettings> &
leds()
const;
108 const std::map <int, ButtonSettings> &
buttons()
const;
143 std::unique_ptr<Private> d_ptr;
SPI 2840X Bus settings.
Definition bussettings.h:25
This class represents the hardware settings of a SpaIot device.
Definition hardwaresettings.h:25
static bool registerContains(const String &name)
Returns true if the register contains the name.
const std::map< int, LedSettings > & leds() const
Returns the led settings as a map.
bool isEmpty() const
Checks if all attributes are set to their default values (same as the default constructor)
const BusSettings & bus() const
Returns the bus settings.
bool operator!=(const HardwareSettings &other) const
Checks if the two objects are not equal.
HardwareSettings()
The default constructor.
HardwareSettings(const HardwareSettings &other)
Copy Constructor.
bool isNull() const
Returns true if the object is null (i.e. it has not been initialized, d_ptr is null)
const std::map< int, ButtonSettings > & buttons() const
Returns the button settings as a map.
static const HardwareSettings & getFromRegister(const String &name)
Returns the HardwareSettings object from the register.
void clear()
Clears the HardwareSettings object After the call to this function, the HardwareSettings object is th...
HardwareSettings(const BusSettings &bus, const std::map< int, LedSettings > &leds, const std::map< int, ButtonSettings > &buttons)
The constructor for the HardwareSettings class takes three parameters.
void print(Print &out) const
Prints the object to the Print interface.
bool operator==(const HardwareSettings &other) const
Checks if the two objects are equal.
virtual ~HardwareSettings()
Destructor.
HardwareSettings(HardwareSettings &&other)
Move Constructor after the move, other is null, other.clear() must be called if it is to be used agai...
static bool addToRegister(const String &name, const HardwareSettings &settings)
Adds a HardwareSettings object to the register.
HardwareSettings & operator=(const HardwareSettings &other)
Sets the HardwareSettings object to be equal to other.
const HardwareSettings Scip2Sjb
Hardware settings for the SJB Spa with Scip2 board.
const HardwareSettings SpaIotS38574Sjb
Hardware settings for the SJB Spa with SpaIot Extended board with PCF8574A (ESP32 S3 Version)
const HardwareSettings SpaIotS3Ssp
Hardware settings for the SSP Spa with SpaIot board (ESP32 S3 Version)
const HardwareSettings SpaIot328574Ssp
Hardware settings for the SSP Spa with SpaIot Extended board with PCF8574A (ESP32 Version)
const HardwareSettings SpaIot328574Sjb
Hardware settings for the SJB Spa with SpaIot Extended board with PCF8574A (ESP32 Version)
const HardwareSettings SpaIotS38574Ssp
Hardware settings for the SSP Spa with SpaIot Extended board with PCF8574A (ESP32 S3 Version)
const HardwareSettings Scip2Ssp
Hardware settings for the SSP Spa with Scip2 board.
const HardwareSettings SpaIot8266Sjb
Hardware settings for the SJB Spa with SpaIot board (ESP8266 Version)
const HardwareSettings SpaIot32Sjb
Hardware settings for the SJB Spa with SpaIot board (ESP32 Version)
const HardwareSettings SpaIotS3Sjb
Hardware settings for the SJB Spa with SpaIot board (ESP32 S3 Version)
const HardwareSettings SpaIot32Ssp
Hardware settings for the SSP Spa with SpaIot board (ESP32 Version)
const HardwareSettings SpaIot8266Ssp
Hardware settings for the SSP Spa with SpaIot board (ESP8266 Version)
SpaIot name space.
Definition bussettings.h:15