Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qnetworkreplyfileimpl_p.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef QNETWORKREPLYFILEIMPL_P_H
6#define QNETWORKREPLYFILEIMPL_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of the Network Access API. This header file may change from
14// version to version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtNetwork/private/qtnetworkglobal_p.h>
20#include "qnetworkreply.h"
23
24#include <QFile>
25#include <QtCore/qpointer.h>
26#include <private/qabstractfileengine_p.h>
27
29
32{
34public:
37 virtual void abort() override;
38
39 // reimplemented from QNetworkReply
40 virtual void close() override;
41 virtual qint64 bytesAvailable() const override;
42 virtual bool isSequential () const override;
43 qint64 size() const override;
44
45 virtual qint64 readData(char *data, qint64 maxlen) override;
46
47private Q_SLOTS:
48 void fileOpenFinished(bool isOpen);
49
50private:
52};
53
54class QNetworkReplyFileImplPrivate: public QNetworkReplyPrivate
55{
56public:
58
61
62 Q_DECLARE_PUBLIC(QNetworkReplyFileImpl)
63};
64
65QT_END_NAMESPACE
66
67// ### move to qnetworkrequest.h
68QT_DECL_METATYPE_EXTERN_TAGGED(QNetworkRequest::KnownHeaders,
69 QNetworkRequest__KnownHeaders, Q_NETWORK_EXPORT)
70
71#endif // QNETWORKREPLYFILEIMPL_P_H
The QNetworkCookieJar class implements a simple jar of QNetworkCookie objects.
The QNetworkCookie class holds one network cookie.
virtual void close() override
Closes this device for reading.
virtual void abort() override
Aborts the operation immediately and closes any network connections still open.
virtual qint64 readData(char *data, qint64 maxlen) override
qint64 size() const override
For open random-access devices, this function returns the size of the device.
virtual qint64 bytesAvailable() const override
Returns the number of bytes that are available for reading.
virtual bool isSequential() const override
QNetworkAccessManagerPrivate * managerPrivate
virtual void close() override
Closes this device for reading.
virtual qint64 readData(char *data, qint64 maxlen) override
virtual bool isSequential() const override
virtual qint64 bytesAvailable() const override
Returns the number of bytes that are available for reading.
virtual void abort() override
Aborts the operation immediately and closes any network connections still open.
qint64 size() const override
For open random-access devices, this function returns the size of the device.
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
Definition qdir.cpp:2568
#define QNetworkAccessBackendFactory_iid