| 1 | // Copyright (C) 2015 basysKom GmbH, opensource@basyskom.com | 
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only | 
| 3 | |
| 4 | #ifndef QOPCUAAXISINFORMATION_H | 
| 5 | #define QOPCUAAXISINFORMATION_H | 
| 6 | |
| 7 | #include <QtOpcUa/qopcuatype.h> | 
| 8 | |
| 9 | #include <QtCore/qshareddata.h> | 
| 10 | |
| 11 | QT_BEGIN_NAMESPACE | 
| 12 | |
| 13 | class QOpcUaEUInformation; | 
| 14 | class QOpcUaRange; | 
| 15 | class QOpcUaLocalizedText; | 
| 16 | |
| 17 | class QOpcUaAxisInformationData; | 
| 18 | class Q_OPCUA_EXPORT QOpcUaAxisInformation | 
| 19 | { | 
| 20 | public: | 
| 21 | QOpcUaAxisInformation(); | 
| 22 | QOpcUaAxisInformation(const QOpcUaAxisInformation &); | 
| 23 | QOpcUaAxisInformation(const QOpcUaEUInformation &engineeringUnits, const QOpcUaRange &eURange, const QOpcUaLocalizedText &title, | 
| 24 | const QOpcUa::AxisScale &axisScaleType, const QList<double> &axisSteps); | 
| 25 | QOpcUaAxisInformation &operator=(const QOpcUaAxisInformation &); | 
| 26 | bool operator==(const QOpcUaAxisInformation &rhs) const; | 
| 27 | operator QVariant() const; | 
| 28 | ~QOpcUaAxisInformation(); | 
| 29 | |
| 30 | QOpcUaEUInformation engineeringUnits() const; | 
| 31 | void setEngineeringUnits(const QOpcUaEUInformation &engineeringUnits); | 
| 32 | |
| 33 | QOpcUaRange eURange() const; | 
| 34 | void setEURange(const QOpcUaRange &eURange); | 
| 35 | |
| 36 | QOpcUaLocalizedText title() const; | 
| 37 | void setTitle(const QOpcUaLocalizedText &title); | 
| 38 | |
| 39 | QOpcUa::AxisScale axisScaleType() const; | 
| 40 | void setAxisScaleType(QOpcUa::AxisScale axisScaleType); | 
| 41 | |
| 42 | QList<double> axisSteps() const; | 
| 43 | void setAxisSteps(const QList<double> &axisSteps); | 
| 44 | QList<double> &axisStepsRef(); | 
| 45 | |
| 46 | private: | 
| 47 | QSharedDataPointer<QOpcUaAxisInformationData> data; | 
| 48 | }; | 
| 49 | |
| 50 | QT_END_NAMESPACE | 
| 51 | |
| 52 | Q_DECLARE_METATYPE(QOpcUaAxisInformation) | 
| 53 | |
| 54 | #endif // QOPCUAAXISINFORMATION_H | 
| 55 | 
