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