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 QOPCUAARGUMENT_H |
5 | #define QOPCUAARGUMENT_H |
6 | |
7 | #include <QtOpcUa/qopcuaglobal.h> |
8 | #include <QtOpcUa/qopcualocalizedtext.h> |
9 | |
10 | #include <QtCore/qshareddata.h> |
11 | |
12 | QT_BEGIN_NAMESPACE |
13 | |
14 | class QVariant; |
15 | |
16 | class QOpcUaArgumentData; |
17 | class Q_OPCUA_EXPORT QOpcUaArgument |
18 | { |
19 | public: |
20 | QOpcUaArgument(); |
21 | QOpcUaArgument(const QOpcUaArgument &rhs); |
22 | QOpcUaArgument(const QString &name, const QString &dataTypeId, qint32 valueRank, |
23 | const QList<quint32> &arrayDimensions, const QOpcUaLocalizedText &description); |
24 | QOpcUaArgument &operator=(const QOpcUaArgument &); |
25 | bool operator==(const QOpcUaArgument &other) const; |
26 | operator QVariant() const; |
27 | ~QOpcUaArgument(); |
28 | |
29 | QString name() const; |
30 | void setName(const QString &name); |
31 | |
32 | QString dataTypeId() const; |
33 | void setDataTypeId(const QString &dataTypeId); |
34 | |
35 | qint32 valueRank() const; |
36 | void setValueRank(qint32 valueRank); |
37 | |
38 | QList<quint32> arrayDimensions() const; |
39 | QList<quint32> &arrayDimensionsRef(); |
40 | void setArrayDimensions(const QList<quint32> &arrayDimensions); |
41 | |
42 | QOpcUaLocalizedText description() const; |
43 | void setDescription(const QOpcUaLocalizedText &description); |
44 | |
45 | private: |
46 | QSharedDataPointer<QOpcUaArgumentData> data; |
47 | }; |
48 | |
49 | QT_END_NAMESPACE |
50 | |
51 | Q_DECLARE_METATYPE(QOpcUaArgument) |
52 | |
53 | #endif // QOPCUAARGUMENT_H |
54 |