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 QCOAPRESOURCE_P_H
6#define QCOAPRESOURCE_P_H
7
8#include <QtCoap/qcoapresource.h>
9#include <QtCore/qshareddata.h>
10#include <QtNetwork/qhostaddress.h>
11#include <QtCore/private/qglobal_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 QCoapResourcePrivate : public QSharedData
27{
28public:
29 QCoapResourcePrivate() {}
30 QCoapResourcePrivate(const QCoapResourcePrivate &other)
31 : QSharedData(other), maximumSize(other.maximumSize), contentFormat(other.contentFormat)
32 , resourceType(other.resourceType), interface(other.interface), host(other.host)
33 , path(other.path), title(other.title), observable(other.observable) {}
34 ~QCoapResourcePrivate() {}
35
36 int maximumSize = -1; // sz field
37 uint contentFormat = 0; // ct field
38 QString resourceType; // rt field
39 QString interface; // if field
40 QHostAddress host;
41 QString path;
42 QString title;
43 bool observable = false; // obs field
44};
45
46QT_END_NAMESPACE
47
48#endif // QCOAPRESOURCE_P_H
49

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