Server settings class.
More...
#include <serversettings.h>
|
| | ServerSettings () |
| |
| | ServerSettings (const String &model, unsigned long interval=30000) |
| | Construct a new Server Settings object.
|
| |
| | ServerSettings (const char *model, unsigned long interval=30000) |
| | Construct a new Server Settings object.
|
| |
|
virtual | ~ServerSettings () |
| | Destructor.
|
| |
|
| ServerSettings (const ServerSettings &other) |
| | Copy Constructor.
|
| |
|
| ServerSettings (ServerSettings &&other) |
| | Move Constructor after the move, other is null, other.clear() must be called if it is to be used again.
|
| |
|
ServerSettings & | operator= (const ServerSettings &other) |
| | Sets the ServerSettings object to be equal to other.
|
| |
|
ServerSettings & | operator= (ServerSettings &&other) |
| | Move assignment after the move, other is null, other.clear() must be called if it is to be used again.
|
| |
|
void | clear () |
| | Clears the ServerSettings object After the call to this function, the ServerSettings object is the same as one that has been default constructed.
|
| |
|
bool | isNull () const |
| | Returns true if the object is null (i.e. it has not been initialized, d_ptr is null)
|
| |
|
bool | isEmpty () const |
| | Checks if all attributes are set to their default values (same as the default constructor)
|
| |
| bool | operator== (const ServerSettings &other) const |
| |
| bool | operator!= (const ServerSettings &other) const |
| |
|
const String & | spaModel () const |
| | Returns the spa model name.
|
| |
|
unsigned long | publishInterval () const |
| | Returns the publish interval.
|
| |
|
void | setPublishInterval (unsigned long interval) |
| | Sets the spa model name.
|
| |
|
void | setSpaModel (const String &model) |
| | Sets the publish interval.
|
| |
Server settings class.
This class represents the settings of a SpaIot server. It is a concrete class, and can be instantiated. This class is copyable and movable.
◆ ServerSettings() [1/3]
| SpaIot::ServerSettings::ServerSettings |
( |
| ) |
|
The constructor takes a single parameter, which is the initial value of the ServerSettings object
◆ ServerSettings() [2/3]
| SpaIot::ServerSettings::ServerSettings |
( |
const String & |
model, |
|
|
unsigned long |
interval = 30000 |
|
) |
| |
Construct a new Server Settings object.
- Parameters
-
| model | spa model name, it must be registered in the spa HardwarSettings registry |
| interval | delay between two publications of the spa state if change occurs (water temperature, desired temperature, sanitizer time, error code) |
◆ ServerSettings() [3/3]
| SpaIot::ServerSettings::ServerSettings |
( |
const char * |
model, |
|
|
unsigned long |
interval = 30000 |
|
) |
| |
Construct a new Server Settings object.
- Parameters
-
| model | spa model name, it must be registered in the spa HardwarSettings registry |
| interval | delay between two publications of the spa state if change occurs (water temperature, desired temperature, sanitizer time, error code) |
◆ operator!=()
| bool SpaIot::ServerSettings::operator!= |
( |
const ServerSettings & |
other | ) |
const |
The function returns true if the two objects are not equal
- Parameters
-
- Returns
- The return value is a boolean value. It is true if the two objects are not equal, and false if they are equal.
◆ operator==()
| bool SpaIot::ServerSettings::operator== |
( |
const ServerSettings & |
other | ) |
const |
The function returns true if the two objects are equal
- Parameters
-
- Returns
- The return value is a boolean value. It is true if the two objects are equal, and false if they are not equal.