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 QCOAPRESOURCEDISCOVERYREPLY_P_H
6#define QCOAPRESOURCEDISCOVERYREPLY_P_H
7
8#include <QtCore/qlist.h>
9#include <QtCoap/qcoapresourcediscoveryreply.h>
10#include <QtCoap/qcoapresource.h>
11#include <private/qcoapreply_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 QCoapResourceDiscoveryReplyPrivate : public QCoapReplyPrivate
27{
28public:
29 QCoapResourceDiscoveryReplyPrivate(const QCoapRequest &request);
30
31 void _q_setContent(const QHostAddress &sender, const QCoapMessage &, QtCoap::ResponseCode) override;
32
33 static QList<QCoapResource> resourcesFromCoreLinkList(
34 const QHostAddress &sender, const QByteArray &data);
35
36 QList<QCoapResource> resources;
37
38 Q_DECLARE_PUBLIC(QCoapResourceDiscoveryReply)
39};
40
41QT_END_NAMESPACE
42
43#endif // QCOAPRESOURCEDISCOVERYREPLY_P_H
44

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