#include "CheckBoxCfg.h"
Public Types | |
| enum | CheckBoxState { Unchecked , PartiallyChecked , Checked } |
Public Member Functions | |
| CheckBoxCfg () | |
| CheckBoxCfg (const std::string &_name, const std::string &_text, CheckBoxState _checkedState=CheckBoxState::Checked) | |
| CheckBoxCfg (const CheckBoxCfg &)=default | |
| CheckBoxCfg (CheckBoxCfg &&)=default | |
| virtual | ~CheckBoxCfg () |
| CheckBoxCfg & | operator= (const CheckBoxCfg &)=default |
| CheckBoxCfg & | operator= (CheckBoxCfg &&)=default |
| virtual std::string | getWidgetBaseTypeString (void) const override |
| virtual void | addToJsonObject (ot::JsonValue &_object, ot::JsonAllocator &_allocator) const override |
| Add the object contents to the provided JSON object. | |
| virtual void | setFromJsonObject (const ot::ConstJsonObject &_object) override |
| Set the object contents from the provided JSON object. | |
| void | setText (const std::string &_text) |
| const std::string & | getText (void) const |
| void | setChecked (bool _checked) |
| void | setCheckedState (CheckBoxState _state) |
| bool | getChecked (void) const |
| CheckBoxState | getCheckedState (void) const |
Public Member Functions inherited from ot::WidgetBaseCfg | |
| WidgetBaseCfg () | |
| WidgetBaseCfg (const std::string &_name) | |
| WidgetBaseCfg (const WidgetBaseCfg &)=default | |
| WidgetBaseCfg (WidgetBaseCfg &&)=default | |
| virtual | ~WidgetBaseCfg () |
| WidgetBaseCfg & | operator= (const WidgetBaseCfg &)=default |
| WidgetBaseCfg & | operator= (WidgetBaseCfg &&)=default |
| void | setName (const std::string &_name) |
| const std::string & | getName (void) const |
| void | setToolTip (const std::string &_toolTip) |
| const std::string & | getToolTip (void) const |
Public Member Functions inherited from ot::Serializable | |
| Serializable () | |
| virtual | ~Serializable () |
Static Public Member Functions | |
| static std::string | toString (CheckBoxState _state) |
| static CheckBoxState | stringToCheckBoxState (const std::string &_state) |
| static std::string | getCheckBoxCfgTypeString (void) |
Static Public Member Functions inherited from ot::WidgetBaseCfg | |
| static std::string | typeStringJsonKey (void) |
| ot::CheckBoxCfg::CheckBoxCfg | ( | ) |
| ot::CheckBoxCfg::CheckBoxCfg | ( | const std::string & | _name, |
| const std::string & | _text, | ||
| CheckBoxState | _checkedState = CheckBoxState::Checked ) |
|
default |
|
default |
|
virtual |
|
overridevirtual |
Add the object contents to the provided JSON object.
| _object | Json object reference to write the data to. |
| _allocator | Allocator. |
Reimplemented from ot::WidgetBaseCfg.
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements ot::WidgetBaseCfg.
|
default |
|
default |
|
inline |
|
inline |
|
overridevirtual |
Set the object contents from the provided JSON object.
| _object | The JSON object containing the information. |
| May | throw an exception if the provided object is not valid (members missing or invalid types). |
Reimplemented from ot::WidgetBaseCfg.
|
inline |
|
static |
|
static |