2017-04-27 18:24:53 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2016-07-31 21:27:07 +00:00
|
|
|
#ifndef CYLINDER_QOBJECT_H
|
|
|
|
#define CYLINDER_QOBJECT_H
|
|
|
|
|
2019-08-12 16:14:14 +00:00
|
|
|
#include "../equipment.h"
|
2016-07-31 21:27:07 +00:00
|
|
|
#include <QObject>
|
|
|
|
#include <QString>
|
|
|
|
|
2019-08-12 16:26:42 +00:00
|
|
|
class CylinderObjectHelper {
|
|
|
|
Q_GADGET
|
|
|
|
Q_PROPERTY(QString description MEMBER description CONSTANT)
|
|
|
|
Q_PROPERTY(QString size MEMBER size CONSTANT)
|
|
|
|
Q_PROPERTY(QString workingPressure MEMBER workingPressure CONSTANT)
|
|
|
|
Q_PROPERTY(QString startPressure MEMBER startPressure CONSTANT)
|
|
|
|
Q_PROPERTY(QString endPressure MEMBER endPressure CONSTANT)
|
|
|
|
Q_PROPERTY(QString gasMix MEMBER gasMix CONSTANT)
|
2016-07-31 21:27:07 +00:00
|
|
|
public:
|
|
|
|
CylinderObjectHelper(cylinder_t *cylinder = NULL);
|
2019-08-12 16:26:42 +00:00
|
|
|
QString description;
|
|
|
|
QString size;
|
|
|
|
QString workingPressure;
|
|
|
|
QString startPressure;
|
|
|
|
QString endPressure;
|
|
|
|
QString gasMix;
|
2016-07-31 21:27:07 +00:00
|
|
|
};
|
|
|
|
|
2019-08-12 16:26:42 +00:00
|
|
|
Q_DECLARE_METATYPE(CylinderObjectHelper)
|
|
|
|
|
2017-04-27 18:24:53 +00:00
|
|
|
#endif
|