| 1 | // Copyright (C) 2023 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QRESTREPLY_P_H |
| 5 | #define QRESTREPLY_P_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists for the convenience |
| 12 | // of the Network Access API. This header file may change from |
| 13 | // version to version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <QtCore/private/qstringconverter_p.h> |
| 19 | |
| 20 | #include <optional> |
| 21 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | class QByteArray; |
| 25 | class QNetworkReply; |
| 26 | |
| 27 | class QRestReplyPrivate |
| 28 | { |
| 29 | public: |
| 30 | QRestReplyPrivate(); |
| 31 | ~QRestReplyPrivate(); |
| 32 | |
| 33 | std::optional<QStringDecoder> decoder; |
| 34 | |
| 35 | static QByteArray contentCharset(const QNetworkReply *reply); |
| 36 | }; |
| 37 | |
| 38 | QT_END_NAMESPACE |
| 39 | |
| 40 | #endif |
| 41 | |