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

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