PNP_PIbd-31_Rodionov_I_A_Co.../models/devicestructureelement.h
2024-12-24 18:13:22 +04:00

41 lines
917 B
C++

#ifndef DEVICESTRUCTUREELEMENT_H
#define DEVICESTRUCTUREELEMENT_H
#include <QString>
#include "baseentity.h"
class DeviceStructureElement : public BaseEntity
{
public:
DeviceStructureElement();
virtual ~DeviceStructureElement();
QString nameModel() const;
void setNameModel(const QString &newNameModel);
QString nameManuf() const;
void setNameManuf(const QString &newNameManuf);
QString description() const;
void setDescription(const QString &newDescription);
QString nameType() const;
void setNameType(const QString &newNameType);
int count() const;
void setCount(int newCount);
void fromJson(const QJsonObject &json) override;
QJsonObject toJson() const override;
private:
QString _nameModel = "";
QString _nameManuf = "";
QString _description = "";
QString _nameType = "";
int _count = 1;
};
#endif // DEVICESTRUCTUREELEMENT_H