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 QOPCUALITERALOPERAND_H |
5 | #define QOPCUALITERALOPERAND_H |
6 | |
7 | #include <QtOpcUa/qopcuatype.h> |
8 | |
9 | #include <QtCore/qshareddata.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | // OPC-UA part 4, 7.4.4.3 |
14 | class QOpcUaLiteralOperandData; |
15 | class Q_OPCUA_EXPORT QOpcUaLiteralOperand |
16 | { |
17 | public: |
18 | QOpcUaLiteralOperand(); |
19 | QOpcUaLiteralOperand(const QOpcUaLiteralOperand &); |
20 | QOpcUaLiteralOperand(const QVariant &value, QOpcUa::Types type = QOpcUa::Types::Undefined); |
21 | QOpcUaLiteralOperand &operator=(const QOpcUaLiteralOperand &); |
22 | operator QVariant() const; |
23 | ~QOpcUaLiteralOperand(); |
24 | |
25 | QVariant value() const; |
26 | void setValue(const QVariant &value); |
27 | |
28 | QOpcUa::Types type() const; |
29 | void setType(QOpcUa::Types type); |
30 | |
31 | private: |
32 | QSharedDataPointer<QOpcUaLiteralOperandData> data; |
33 | }; |
34 | |
35 | QT_END_NAMESPACE |
36 | |
37 | Q_DECLARE_METATYPE(QOpcUaLiteralOperand) |
38 | |
39 | #endif // QOPCUALITERALOPERAND_H |
40 |