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

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