Package that will be used to fill the graphics picker The name of the editor must be unique. If an editor with the given name already exists, the creation will fail. Note that the request to the UI must be send manually by providing this object (serialized) as the package. More...
#include "GraphicsPackage.h"
Public Member Functions | |
GraphicsPickerCollectionPackage () | |
virtual | ~GraphicsPickerCollectionPackage () |
virtual void | addToJsonObject (JsonValue &_object, JsonAllocator &_allocator) const override |
Add the object contents to the provided JSON object. | |
virtual void | setFromJsonObject (const ConstJsonObject &_object) override |
Will set the object contents from the provided JSON object. | |
void | addCollection (GraphicsPickerCollectionCfg *_collection) |
const std::list< GraphicsPickerCollectionCfg * > & | collections (void) const |
Public Member Functions inherited from ot::Serializable | |
Serializable () | |
virtual | ~Serializable () |
virtual void | addToJsonObject (ot::JsonValue &_object, ot::JsonAllocator &_allocator) const =0 |
Add the object contents to the provided JSON object. | |
Package that will be used to fill the graphics picker The name of the editor must be unique. If an editor with the given name already exists, the creation will fail. Note that the request to the UI must be send manually by providing this object (serialized) as the package.
ot::GraphicsPickerCollectionPackage::GraphicsPickerCollectionPackage | ( | ) |
|
virtual |
void ot::GraphicsPickerCollectionPackage::addCollection | ( | GraphicsPickerCollectionCfg * | _collection | ) |
|
overridevirtual |
Add the object contents to the provided JSON object.
_document | The JSON document (used to get the allocator) |
_object | The JSON object to add the contents to |
Reimplemented in ot::GraphicsNewEditorPackage.
|
inline |
|
overridevirtual |
Will set the object contents from the provided JSON object.
_object | The JSON object containing the information |
Will | throw an exception if the provided object is not valid (members missing or invalid types) |
Implements ot::Serializable.
Reimplemented in ot::GraphicsNewEditorPackage.