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
qnetworkaccesscachebackend_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 QNETWORKACCESSCACHEBACKEND_P_H
5#define QNETWORKACCESSCACHEBACKEND_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
24
26{
27
28public:
31
32 void open() override;
33 void close() override;
34 bool start() override;
35 qint64 bytesAvailable() const override;
36 qint64 read(char *data, qint64 maxlen) override;
37
38private:
39 bool sendCacheContents();
40
41 QIODevice *device = nullptr;
42};
43
45
46#endif // QNETWORKACCESSCACHEBACKEND_P_H
\inmodule QtCore \reentrant
Definition qiodevice.h:34
QNetworkAccessBackend is the base class for implementing support for schemes used by QNetworkAccessMa...
bool start() override
Prepares the backend and calls open().
void close() override
You must implement this function in your derived class.
void open() override
You must implement this in your derived class.
qint64 bytesAvailable() const override
You must implement this function 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.
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
long long qint64
Definition qtypes.h:60