1// Copyright (C) 2021 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//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef QOPCUAHISTORYREADRESPONSEPRIVATE_H
16#define QOPCUAHISTORYREADRESPONSEPRIVATE_H
17
18#include <QtOpcUa/qopcuahistoryreadresponse.h>
19#include <QtOpcUa/qopcuahistoryreadrawrequest.h>
20
21#include "private/qopcuahistoryreadresponseimpl_p.h"
22
23#include <private/qobject_p.h>
24#include <QObject>
25
26#include <QUuid>
27
28QT_BEGIN_NAMESPACE
29
30class Q_OPCUA_EXPORT QOpcUaHistoryReadResponsePrivate : public QObjectPrivate {
31 Q_DECLARE_PUBLIC(QOpcUaHistoryReadResponse)
32
33public:
34 QOpcUaHistoryReadResponsePrivate(QOpcUaHistoryReadResponseImpl *impl)
35 : m_impl(impl)
36 {
37 QObject::connect(sender: impl, signal: &QOpcUaHistoryReadResponseImpl::readHistoryDataFinished, context: impl,
38 slot: [this](const QList<QOpcUaHistoryData> &data, QOpcUa::UaStatusCode serviceResult) {
39 if (q_func())
40 emit q_func()->readHistoryDataFinished(results: data, serviceResult);
41 });
42
43 QObject::connect(sender: impl, signal: &QOpcUaHistoryReadResponseImpl::stateChanged, context: impl,
44 slot: [this](QOpcUaHistoryReadResponse::State state) {
45 if (q_func())
46 emit q_func()->stateChanged(state);
47 });
48 }
49
50 ~QOpcUaHistoryReadResponsePrivate() = default;
51
52 QScopedPointer<QOpcUaHistoryReadResponseImpl> m_impl;
53};
54
55QT_END_NAMESPACE
56
57#endif // QOPCUAHISTORYREADRESPONSEPRIVATE_H
58

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