#include <sensesp/ui/ui_controls.h>
|
| CheckboxConfig (bool value, String title, String config_path) |
|
virtual bool | to_json (JsonObject &doc) override |
|
virtual bool | from_json (const JsonObject &config) override |
|
bool | get_value () |
|
| FileSystemSaveable (const String &config_path) |
|
virtual bool | load () override |
| Load and populate the object from a persistent storage.
|
|
virtual bool | save () override |
| Save the object to a persistent storage.
|
|
virtual bool | clear () override |
| Delete the data from a persistent storage.
|
|
bool | find_config_file (const String &config_path, String &filename) |
|
| Saveable (const String &config_path) |
|
virtual bool | refresh () |
| Refresh the object. This may or may not access the persistent storage but is not expected to overwrite the object's state.
|
|
const String & | get_config_path () const |
|
Definition at line 55 of file ui_controls.h.
◆ CheckboxConfig()
sensesp::CheckboxConfig::CheckboxConfig |
( |
bool | value, |
|
|
String | title, |
|
|
String | config_path ) |
|
inline |
◆ from_json()
bool sensesp::CheckboxConfig::from_json |
( |
const JsonObject & | root | ) |
|
|
overridevirtual |
◆ get_value()
bool sensesp::CheckboxConfig::get_value |
( |
| ) |
|
|
inline |
◆ to_json()
bool sensesp::CheckboxConfig::to_json |
( |
JsonObject & | root | ) |
|
|
overridevirtual |
◆ ConfigSchema
◆ title_
String sensesp::CheckboxConfig::title_ = "Enable" |
|
protected |
◆ value_
bool sensesp::CheckboxConfig::value_ = false |
|
protected |
The documentation for this class was generated from the following files: