1// Copyright (C) 2017 Witekio.
2// Copyright (C) 2018 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
4// Qt-Security score:significant reason:default
5
6#ifndef QCOAPCLIENT_P_H
7#define QCOAPCLIENT_P_H
8
9#include <QtCoap/qcoapclient.h>
10#include <QtCore/qthread.h>
11#include <QtCore/qpointer.h>
12#include <private/qobject_p.h>
13
14//
15// W A R N I N G
16// -------------
17//
18// This file is not part of the Qt API. It exists purely as an
19// implementation detail. This header file may change from version to
20// version without notice, or even be removed.
21//
22// We mean it.
23//
24
25QT_BEGIN_NAMESPACE
26
27class Q_AUTOTEST_EXPORT QCoapClientPrivate : public QObjectPrivate
28{
29public:
30 QCoapClientPrivate(QCoapProtocol *protocol, QCoapConnection *connection);
31 ~QCoapClientPrivate();
32
33 QCoapProtocol *protocol = nullptr;
34 QCoapConnection *connection = nullptr;
35 QThread *workerThread = nullptr;
36
37 QCoapReply *sendRequest(const QCoapRequest &request);
38 QCoapResourceDiscoveryReply *sendDiscovery(const QCoapRequest &request);
39 bool send(QCoapReply *reply);
40
41 void setConnection(QCoapConnection *customConnection);
42
43 Q_DECLARE_PUBLIC(QCoapClient)
44};
45
46QT_END_NAMESPACE
47
48#endif // QCOAPCLIENT_P_H
49

source code of qtcoap/src/coap/qcoapclient_p.h