1// Copyright (C) 2016 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 QNETWORKREPLYDATAIMPL_H
5#define QNETWORKREPLYDATAIMPL_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 <QtNetwork/private/qtnetworkglobal_p.h>
19#include "qnetworkreply.h"
20#include "qnetworkreply_p.h"
21#include "qnetworkaccessmanager.h"
22#include <QBuffer>
23
24QT_BEGIN_NAMESPACE
25
26
27class QNetworkReplyDataImplPrivate;
28class QNetworkReplyDataImpl: public QNetworkReply
29{
30 Q_OBJECT
31public:
32 QNetworkReplyDataImpl(QObject *parent, const QNetworkRequest &req, const QNetworkAccessManager::Operation op);
33 ~QNetworkReplyDataImpl();
34 virtual void abort() override;
35
36 // reimplemented from QNetworkReply
37 virtual void close() override;
38 virtual qint64 bytesAvailable() const override;
39 virtual bool isSequential () const override;
40 qint64 size() const override;
41
42 virtual qint64 readData(char *data, qint64 maxlen) override;
43
44 Q_DECLARE_PRIVATE(QNetworkReplyDataImpl)
45};
46
47class QNetworkReplyDataImplPrivate: public QNetworkReplyPrivate
48{
49public:
50 QNetworkReplyDataImplPrivate();
51 ~QNetworkReplyDataImplPrivate();
52
53 QBuffer decodedData;
54
55 Q_DECLARE_PUBLIC(QNetworkReplyDataImpl)
56};
57
58QT_END_NAMESPACE
59
60#endif // QNETWORKREPLYDATAIMPL_H
61

source code of qtbase/src/network/access/qnetworkreplydataimpl_p.h