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 QOPCUARANGE_H
5#define QOPCUARANGE_H
6
7#include <QtOpcUa/qopcuaglobal.h>
8
9#include <QtCore/qshareddata.h>
10#include <QtCore/qvariant.h>
11
12QT_BEGIN_NAMESPACE
13
14class QOpcUaRangeData;
15class Q_OPCUA_EXPORT QOpcUaRange
16{
17public:
18 QOpcUaRange();
19 QOpcUaRange(const QOpcUaRange &);
20 QOpcUaRange(double low, double high);
21 QOpcUaRange &operator=(const QOpcUaRange &);
22 bool operator==(const QOpcUaRange &rhs) const;
23 operator QVariant() const;
24 ~QOpcUaRange();
25
26 double low() const;
27 void setLow(double low);
28
29 double high() const;
30 void setHigh(double high);
31
32private:
33 QSharedDataPointer<QOpcUaRangeData> data;
34};
35
36QT_END_NAMESPACE
37
38Q_DECLARE_METATYPE(QOpcUaRange)
39
40#endif // QOPCUARANGE_H
41

source code of qtopcua/src/opcua/client/qopcuarange.h