7#include "mission_parameter.h"
35 QString
getid()
const override;
37 QString getname()
const override;
44 const IValue*
getvalue()
const override;
51 koda::types::TypeReference
gettype()
const override;
58 Types::ControlTypes
getcontrol()
const override;
65 void setId(
const QString& arg);
79 void setType(
const koda::types::TypeReference& arg);
101 QJsonObject
toJson()
const;
111 friend QDataStream& operator<<(QDataStream& out,
const PropertyInfo& config);
112 friend QDataStream& operator>>(QDataStream& in,
PropertyInfo& config);
121QDataStream& operator<<(QDataStream& out,
const QVector<std::shared_ptr<PropertyInfo>>& properties);
122QDataStream& operator>>(QDataStream& in, QVector<std::shared_ptr<PropertyInfo>>& properties);
123QDataStream& operator<<(QDataStream& out,
const QVector<std::shared_ptr<IParameter>>& properties);
124QDataStream& operator>>(QDataStream& in, QVector<std::shared_ptr<IParameter>>& properties);
Configuration for a property.
Definition config.h:17
void setDefaultValue(const maki::Value &arg)
Sets the default value of the property.
Definition property_info.cpp:52
void setType(const koda::types::TypeReference &arg)
Sets the type of the property.
Definition property_info.cpp:57
void setControl(Types::ControlTypes arg)
Sets the control type of the property.
Definition property_info.cpp:62
PropertyInfo getOption(const QString &optionId)
Gets a specific option by ID.
const IValue * getvalue() const override
Gets the default value of the property.
Definition property_info.cpp:32
Types::ControlTypes getcontrol() const override
Gets the control type of the property.
Definition property_info.cpp:42
koda::types::TypeReference gettype() const override
Gets the type of the property.
Definition property_info.cpp:37
Types::ControlTypes mControlType
Type of the property.
Definition property_info.h:118
void setId(const QString &arg)
Sets the ID of the property.
Definition property_info.cpp:47
QJsonObject toJson() const
Converts the PropertyInfo object to a JSON object.
Definition property_info.cpp:69
PropertyInfo()
Constructs an empty PropertyInfo object.
Definition property_info.cpp:10
maki::Value mDefaultValue
ID of the property.
Definition property_info.h:116
QString getid() const override
Gets the ID of the property.
Definition property_info.cpp:22
koda::types::TypeReference mType
Default value of the property.
Definition property_info.h:117
static PropertyInfo fromJson(const QJsonObject &data)
Creates a PropertyInfo object from a JSON object.
Definition property_info.cpp:80