Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qnetworkaccessfilebackend_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
4#ifndef QNETWORKACCESSFILEBACKEND_P_H
5#define QNETWORKACCESSFILEBACKEND_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 <QtNetwork/private/qtnetworkglobal_p.h>
20#include "qnetworkrequest.h"
21#include "qnetworkreply.h"
22#include "QtCore/qfile.h"
23
25
27{
29public:
32
33 void open() override;
34 void close() override;
35
36 qint64 bytesAvailable() const override;
37 qint64 read(char *data, qint64 maxlen) override;
38
39public slots:
41private:
42 QFile file;
43 qint64 totalBytes;
44 bool hasUploadFinished;
45
46 bool loadFileInfo();
47};
48
50{
51public:
52 virtual QStringList supportedSchemes() const override;
54 const QNetworkRequest &request) const override;
55};
56
58
59#endif
\inmodule QtCore
Definition qfile.h:93
QNetworkAccessBackend is the base class for implementing support for schemes used by QNetworkAccessMa...
virtual QStringList supportedSchemes() const override
Override this method in your own derived class to let Qt know what schemes your class can handle.
void close() override
You must implement this function in your derived class.
qint64 bytesAvailable() const override
You must implement this function in your derived class.
void open() override
You must implement this in your derived class.
qint64 read(char *data, qint64 maxlen) override
Implement this function to support reading from the resource made available by your plugin.
Operation
Indicates the operation this reply is processing.
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
\inmodule QtCore
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define Q_OBJECT
#define slots
long long qint64
Definition qtypes.h:60
QNetworkRequest request(url)
view create()