// Copyright (C) 2019 basysKom GmbH, opensource@basyskom.com // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #ifndef QHISTORYREADRAWREQUEST_H #define QHISTORYREADRAWREQUEST_H #include #include #include #include #include #include QT_BEGIN_NAMESPACE class QOpcUaHistoryReadRawRequestData; class Q_OPCUA_EXPORT QOpcUaHistoryReadRawRequest { public: QOpcUaHistoryReadRawRequest(); explicit QOpcUaHistoryReadRawRequest(const QList &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, quint32 numValuesPerNode = 0, bool returnBounds = false); explicit QOpcUaHistoryReadRawRequest(const QList &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, QOpcUa::TimestampsToReturn timestampsToReturn); QOpcUaHistoryReadRawRequest(const QOpcUaHistoryReadRawRequest &other); ~QOpcUaHistoryReadRawRequest(); void swap(QOpcUaHistoryReadRawRequest &other) noexcept { data.swap(other.data); } QDateTime startTimestamp() const; void setStartTimestamp(const QDateTime &startTimestamp); QDateTime endTimestamp() const; void setEndTimestamp(const QDateTime &endTimestamp); quint32 numValuesPerNode() const; void setNumValuesPerNode(quint32 numValuesPerNode); bool returnBounds() const; void setReturnBounds(bool returnBounds); QOpcUa::TimestampsToReturn timestampsToReturn() const; void setTimestampsToReturn(QOpcUa::TimestampsToReturn timestampsToReturn); QList nodesToRead() const; void setNodesToRead(const QList &nodesToRead); void addNodeToRead(const QOpcUaReadItem &nodeToRead); QOpcUaHistoryReadRawRequest &operator=(const QOpcUaHistoryReadRawRequest &other); private: QSharedDataPointer data; friend Q_OPCUA_EXPORT bool operator==(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs) noexcept; friend inline bool operator!=(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs) noexcept { return !(lhs == rhs); } }; Q_DECLARE_SHARED(QOpcUaHistoryReadRawRequest) QT_END_NAMESPACE Q_DECLARE_METATYPE(QOpcUaHistoryReadRawRequest) #endif // QHISTORYREADRAWREQUEST_H