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_H
6#define QCOAPRESOURCEDISCOVERYREPLY_H
7
8#include <QtCoap/qcoapreply.h>
9#include <QtCoap/qcoapresource.h>
10#include <QtCore/qlist.h>
11
12QT_BEGIN_NAMESPACE
13
14class QCoapResourceDiscoveryReplyPrivate;
15class Q_COAP_EXPORT QCoapResourceDiscoveryReply : public QCoapReply
16{
17 Q_OBJECT
18
19public:
20 QList<QCoapResource> resources() const;
21
22Q_SIGNALS:
23 void discovered(QCoapResourceDiscoveryReply *reply, QList<QCoapResource> resources);
24
25private:
26 explicit QCoapResourceDiscoveryReply(const QCoapRequest &request, QObject *parent = nullptr);
27 friend class QCoapClientPrivate;
28
29 Q_DECLARE_PRIVATE(QCoapResourceDiscoveryReply)
30};
31
32QT_END_NAMESPACE
33
34#endif // QCOAPRESOURCEDISCOVERYREPLY_H
35

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