![]() |
Qt 4.8
|
#include <qnetworkdiskcache_p.h>
Public Functions | |
| QString | cacheFileName (const QUrl &url) const |
| Generates fully qualified path of cached resource from a URL. More... | |
| void | prepareLayout () |
| Create subdirectories and other housekeeping on the filesystem. More... | |
| QNetworkDiskCachePrivate () | |
| bool | removeFile (const QString &file) |
| Put all of the misc file removing into one function to be extra safe. More... | |
| void | storeItem (QCacheItem *item) |
| QString | tmpCacheFileName () const |
Public Functions inherited from QObjectPrivate | |
| void | _q_reregisterTimers (void *pointer) |
| void | addConnection (int signal, Connection *c) |
| void | cleanConnectionLists () |
| void | connectNotify (const char *signal) |
| void | deleteChildren () |
| void | disconnectNotify (const char *signal) |
| bool | isSender (const QObject *receiver, const char *signal) const |
| bool | isSignalConnected (uint signalIdx) const |
| Returns true if the signal with index signal_index from object sender is connected. More... | |
| void | moveToThread_helper () |
| QObjectPrivate (int version=QObjectPrivateVersion) | |
| QObjectList | receiverList (const char *signal) const |
| QObjectList | senderList () const |
| void | setParent_helper (QObject *) |
| void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData) |
| int | signalIndex (const char *signalName) const |
| Returns the signal index used in the internal connectionLists vector. More... | |
| virtual | ~QObjectPrivate () |
Public Functions inherited from QObjectData | |
| virtual | ~QObjectData ()=0 |
Static Public Functions | |
| static quint32 | crc32 (const char *data, uint len) |
| static QString | uniqueFileName (const QUrl &url) |
| Given a URL, generates a unique enough filename (and subdirectory) More... | |
Static Public Functions inherited from QObjectPrivate | |
| static void | clearGuards (QObject *) |
| static QObjectPrivate * | get (QObject *o) |
| static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
| static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
| static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Public Variables | |
| QString | cacheDirectory |
| qint64 | currentCacheSize |
| QString | dataDirectory |
| QHash< QIODevice *, QCacheItem * > | inserting |
| QCacheItem | lastItem |
| qint64 | maximumCacheSize |
Public Variables inherited from QObjectPrivate | |
| union { | |
| QObject * currentChildBeingDeleted | |
| QAbstractDeclarativeData * declarativeData | |
| }; | |
| quint32 | connectedSignals [2] |
| QObjectConnectionListVector * | connectionLists |
| Sender * | currentSender |
| QList< QPointer< QObject > > | eventFilters |
| ExtraData * | extraData |
| QString | objectName |
| Connection * | senders |
| QAtomicPointer< QtSharedPointer::ExternalRefCountData > | sharedRefcount |
| QThreadData * | threadData |
| void * | unused |
Public Variables inherited from QObjectData | |
| uint | blockSig: 1 |
| QObjectList | children |
| uint | hasGuards: 1 |
| uint | inEventHandler: 1 |
| uint | inThreadChangeEvent: 1 |
| uint | isWidget: 1 |
| QMetaObject * | metaObject |
| uint | ownObjectName: 1 |
| QObject * | parent |
| uint | pendTimer: 1 |
| int | postedEvents |
| QObject * | q_ptr |
| uint | receiveChildEvents: 1 |
| uint | sendChildEvents: 1 |
| uint | unused: 22 |
| uint | wasDeleted: 1 |
Additional Inherited Members | |
Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
Definition at line 98 of file qnetworkdiskcache_p.h.
|
inline |
Definition at line 101 of file qnetworkdiskcache_p.h.
Generates fully qualified path of cached resource from a URL.
Definition at line 626 of file qnetworkdiskcache.cpp.
| void QNetworkDiskCachePrivate::prepareLayout | ( | ) |
Create subdirectories and other housekeeping on the filesystem.
Prevents too many files from being present in any single directory.
Definition at line 260 of file qnetworkdiskcache.cpp.
| bool QNetworkDiskCachePrivate::removeFile | ( | const QString & | file | ) |
Put all of the misc file removing into one function to be extra safe.
Definition at line 346 of file qnetworkdiskcache.cpp.
Referenced by QNetworkDiskCache::fileMetaData().
| void QNetworkDiskCachePrivate::storeItem | ( | QCacheItem * | item | ) |
Definition at line 275 of file qnetworkdiskcache.cpp.
| QString QNetworkDiskCachePrivate::tmpCacheFileName | ( | ) | const |
Definition at line 617 of file qnetworkdiskcache.cpp.
Given a URL, generates a unique enough filename (and subdirectory)
Definition at line 599 of file qnetworkdiskcache.cpp.
Referenced by QCacheItem::read().
| QString QNetworkDiskCachePrivate::cacheDirectory |
Definition at line 116 of file qnetworkdiskcache_p.h.
| qint64 QNetworkDiskCachePrivate::currentCacheSize |
Definition at line 119 of file qnetworkdiskcache_p.h.
| QString QNetworkDiskCachePrivate::dataDirectory |
Definition at line 117 of file qnetworkdiskcache_p.h.
| QHash<QIODevice*, QCacheItem*> QNetworkDiskCachePrivate::inserting |
Definition at line 121 of file qnetworkdiskcache_p.h.
|
mutable |
Definition at line 115 of file qnetworkdiskcache_p.h.
| qint64 QNetworkDiskCachePrivate::maximumCacheSize |
Definition at line 118 of file qnetworkdiskcache_p.h.