#include "MenuEntryCfg.h"
Public Types | |
| enum | EntryType { Menu , Button , Separator } |
Public Member Functions | |
| MenuEntryCfg () | |
| MenuEntryCfg (const MenuEntryCfg &_other) | |
| virtual | ~MenuEntryCfg () |
| MenuEntryCfg & | operator= (const MenuEntryCfg &_other) |
| virtual MenuEntryCfg * | createCopy (void) const =0 |
| virtual EntryType | getMenuEntryType (void) const =0 |
| 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. | |
Public Member Functions inherited from ot::Serializable | |
| Serializable () | |
| virtual | ~Serializable () |
Static Public Member Functions | |
| static std::string | toString (EntryType _type) |
| static EntryType | stringToEntryType (const std::string &_type) |
| static const std::string & | entryTypeJsonKey (void) |
| ot::MenuEntryCfg::MenuEntryCfg | ( | ) |
| ot::MenuEntryCfg::MenuEntryCfg | ( | const MenuEntryCfg & | _other | ) |
|
virtual |
|
overridevirtual |
Add the object contents to the provided JSON object.
| _object | Json object reference to write the data to. |
| _allocator | Allocator. |
Implements ot::Serializable.
Reimplemented in ot::MenuButtonCfg, ot::MenuCfg, and ot::MenuClickableEntryCfg.
|
pure virtual |
Implemented in ot::MenuButtonCfg, ot::MenuCfg, and ot::MenuSeparatorCfg.
|
static |
|
pure virtual |
Implemented in ot::MenuButtonCfg, ot::MenuCfg, and ot::MenuSeparatorCfg.
| ot::MenuEntryCfg & ot::MenuEntryCfg::operator= | ( | const MenuEntryCfg & | _other | ) |
|
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). |
Implements ot::Serializable.
Reimplemented in ot::MenuButtonCfg, ot::MenuCfg, and ot::MenuClickableEntryCfg.
|
static |
|
static |