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 QCOAPOPTION_P_H
6#define QCOAPOPTION_P_H
7
8#include <QtCoap/qcoapoption.h>
9#include <private/qobject_p.h>
10
11//
12// W A R N I N G
13// -------------
14//
15// This file is not part of the Qt API. It exists purely as an
16// implementation detail. This header file may change from version to
17// version without notice, or even be removed.
18//
19// We mean it.
20//
21
22QT_BEGIN_NAMESPACE
23
24class Q_AUTOTEST_EXPORT QCoapOptionPrivate
25{
26public:
27 QCoapOptionPrivate() = default;
28
29 void setValue(const QByteArray &opaqueValue);
30 void setValue(const QString &value);
31 void setValue(quint32 value);
32
33 QCoapOption::OptionName name = QCoapOption::Invalid;
34 QByteArray value;
35};
36
37QT_END_NAMESPACE
38
39#endif // QCOAPOPTION_P_H
40

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