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
qnetworkdiskcache.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 QNETWORKDISKCACHE_H
5
#define QNETWORKDISKCACHE_H
6
7
#include <QtNetwork/qtnetworkglobal.h>
8
#include <QtNetwork/qabstractnetworkcache.h>
9
10
QT_REQUIRE_CONFIG
(networkdiskcache);
11
12
QT_BEGIN_NAMESPACE
13
14
class
QNetworkDiskCachePrivate
;
15
class
Q_NETWORK_EXPORT
QNetworkDiskCache
:
public
QAbstractNetworkCache
16
{
17
Q_OBJECT
18
19
public
:
20
explicit
QNetworkDiskCache
(
QObject
*parent =
nullptr
);
21
~QNetworkDiskCache
();
22
23
QString
cacheDirectory()
const
;
24
void
setCacheDirectory
(
const
QString
&cacheDir);
25
26
qint64
maximumCacheSize()
const
;
27
void
setMaximumCacheSize(
qint64
size
);
28
29
qint64
cacheSize
()
const override
;
30
QNetworkCacheMetaData
metaData(
const
QUrl
&
url
)
override
;
31
void
updateMetaData(
const
QNetworkCacheMetaData
&metaData)
override
;
32
QIODevice
*
data
(
const
QUrl
&
url
)
override
;
33
bool
remove
(
const
QUrl
&
url
)
override
;
34
QIODevice
*prepare(
const
QNetworkCacheMetaData
&metaData)
override
;
35
void
insert
(
QIODevice
*
device
)
override
;
36
37
QNetworkCacheMetaData
fileMetaData(
const
QString
&
fileName
)
const
;
38
39
public
Q_SLOTS
:
40
void
clear
()
override
;
41
42
protected
:
43
virtual
qint64
expire();
44
45
private
:
46
Q_DECLARE_PRIVATE(
QNetworkDiskCache
)
47
Q_DISABLE_COPY(
QNetworkDiskCache
)
48
};
49
50
QT_END_NAMESPACE
51
52
#endif
// QNETWORKDISKCACHE_H
device
IOBluetoothDevice * device
Definition
btl2capchannel.mm:17
QAbstractNetworkCache
The QAbstractNetworkCache class provides the interface for cache implementations.
Definition
qabstractnetworkcache.h:79
QIODevice
\inmodule QtCore \reentrant
Definition
qiodevice.h:34
QNetworkCacheMetaData
The QNetworkCacheMetaData class provides cache information.
Definition
qabstractnetworkcache.h:22
QNetworkDiskCachePrivate
Definition
qnetworkdiskcache_p.h:58
QNetworkDiskCache
The QNetworkDiskCache class provides a very basic disk cache.
Definition
qnetworkdiskcache.h:16
QObject
\inmodule QtCore
Definition
qobject.h:103
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QUrl
\inmodule QtCore
Definition
qurl.h:94
clear
b clear()
insert
cache insert(employee->id(), employee)
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
size
GLenum GLuint GLintptr GLsizeiptr size
[1]
Definition
qopengles2ext.h:660
data
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
Definition
qopengles2ext.h:206
cacheSize
static quint64 cacheSize()
Definition
qopengltexturecache.cpp:64
QT_REQUIRE_CONFIG
#define QT_REQUIRE_CONFIG(feature)
Definition
qtconfigmacros.h:67
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_SLOTS
#define Q_SLOTS
Definition
qtmetamacros.h:44
qint64
long long qint64
Definition
qtypes.h:60
remove
settings remove("monkey")
url
QUrl url("example.com")
[constructor-url-reference]
Definition
src_corelib_io_qurl.cpp:19
fileName
fileName
[0]
Definition
src_gui_dialogs_qfiledialog.cpp:5
setCacheDirectory
diskCache setCacheDirectory(directory)
qtbase
src
network
access
qnetworkdiskcache.h
Generated by
1.10.0