SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
|
Class providing sufficient data for rendering a config card in the frontend. More...
#include <sensesp/ui/config_item.h>
Public Member Functions | |
ConfigItemT (std::shared_ptr< T > config_object) | |
virtual bool | to_json (JsonObject &config) const override |
virtual bool | from_json (const JsonObject &config) const override |
virtual bool | load () override |
virtual bool | refresh () override |
virtual bool | save () override |
virtual const String & | get_config_path () const override |
ConfigItemT< T > * | set_title (const String &title) |
ConfigItemT< T > * | set_description (const String &description) |
ConfigItemT< T > * | set_sort_order (int sort_order) |
ConfigItemT< T > * | set_requires_restart (bool requires_restart) |
ConfigItemT< T > * | set_config_schema (const String &config_schema) |
T * | get_config_object () |
Get the object that this ConfigItemT is managing. | |
Public Member Functions inherited from sensesp::ConfigItemBase | |
const String & | get_title () const |
ConfigItemBase * | set_title (const String &title) |
const String & | get_description () const |
ConfigItemBase * | set_description (const String &description) |
Set the description of the ConfigItemT. | |
virtual const String | get_config_schema () const |
int | get_sort_order () const |
ConfigItemBase * | set_sort_order (int sort_order) |
bool | requires_restart () const |
Return true if the ConfigItemT requires restart after saving for the changes to take effect. | |
ConfigItemBase * | set_requires_restart (bool requires_restart) |
Set the requires_restart flag. | |
Protected Member Functions | |
const String | get_default_config_schema () const |
Get the default configuration schema. | |
Protected Member Functions inherited from sensesp::ConfigItemBase |
Protected Attributes | |
std::shared_ptr< T > | config_object_ |
Protected Attributes inherited from sensesp::ConfigItemBase | |
String | config_path_ = "" |
The path of the ConfigItemT. This is used to identify the ConfigItemT. | |
String | config_schema_ = "" |
String | title_ = "" |
Title of the ConfigItemT to be displayed on the web UI. | |
String | description_ = "" |
Description of the ConfigItemT to be displayed on the web UI. | |
int | sort_order_ = 1000 |
The sort order of ConfigItemT. Lower numbers have precedence. | |
bool | requires_restart_ = false |
Additional Inherited Members | |
Static Public Member Functions inherited from sensesp::ConfigItemBase | |
static std::shared_ptr< ConfigItemBase > | get_config_item (const String key) |
Get a single ConfigItemT by key. | |
static std::unique_ptr< std::vector< std::shared_ptr< ConfigItemBase > > > | get_config_items () |
Get all config items as a vector. | |
Static Protected Attributes inherited from sensesp::ConfigItemBase | |
static std::map< String, std::shared_ptr< ConfigItemBase > > | config_items_ |
Class providing sufficient data for rendering a config card in the frontend.
Definition at line 201 of file config_item.h.
|
inline |
Definition at line 209 of file config_item.h.
|
inlineoverridevirtual |
Implements sensesp::ConfigItemBase.
Definition at line 216 of file config_item.h.
|
inline |
Get the object that this ConfigItemT is managing.
Definition at line 258 of file config_item.h.
|
inlineoverridevirtual |
Implements sensesp::ConfigItemBase.
Definition at line 224 of file config_item.h.
|
inlineprotectedvirtual |
Get the default configuration schema.
Implements sensesp::ConfigItemBase.
Definition at line 268 of file config_item.h.
|
inlineoverridevirtual |
Implements sensesp::ConfigItemBase.
Definition at line 220 of file config_item.h.
|
inlineoverridevirtual |
Implements sensesp::ConfigItemBase.
Definition at line 221 of file config_item.h.
|
inlineoverridevirtual |
Implements sensesp::ConfigItemBase.
Definition at line 222 of file config_item.h.
|
inline |
Definition at line 248 of file config_item.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements sensesp::ConfigItemBase.
Definition at line 212 of file config_item.h.
|
protected |
Definition at line 262 of file config_item.h.