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

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