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