![]() |
Qt 6.x
The Qt SDK
|
Public Member Functions | |
QResourcePrivate (QResource *_q) | |
~QResourcePrivate () | |
void | ensureInitialized () const |
void | ensureChildren () const |
qint64 | uncompressedSize () const Q_DECL_PURE_FUNCTION |
qsizetype | decompress (char *buffer, qsizetype bufferSize) const |
bool | load (const QString &file) |
void | clear () |
Public Attributes | |
QLocale | locale |
QString | fileName |
QString | absoluteFilePath |
QList< QResourceRoot * > | related |
qint64 | size |
quint64 | lastModified |
const uchar * | data |
QStringList | children |
quint8 | compressionAlgo |
bool | container |
QResource * | q_ptr |
Definition at line 256 of file qresource.cpp.
|
inline |
Definition at line 258 of file qresource.cpp.
References clear().
|
inline |
Definition at line 259 of file qresource.cpp.
References clear().
void QResourcePrivate::clear | ( | ) |
Definition at line 284 of file qresource.cpp.
References absoluteFilePath, QList< T >::at(), children, QString::clear(), QList< T >::clear(), compressionAlgo, container, QBasicAtomicInteger< T >::deref(), i, lastModified, QResource::NoCompression, QResourceRoot::ref, related, and QList< T >::size().
Referenced by QResourcePrivate(), and ~QResourcePrivate().
Definition at line 426 of file qresource.cpp.
References compressionAlgo, QResource::NoCompression, Q_ASSERT, Q_UNUSED, qWarning, QResource::ZlibCompression, and QResource::ZstdCompression.
void QResourcePrivate::ensureChildren | ( | ) | const |
Definition at line 366 of file qresource.cpp.
References absoluteFilePath, QList< T >::at(), children, cleaned(), cleanPath(), container, ensureInitialized(), QDuplicateTracker< T, Prealloc >::hasSeen(), i, QList< T >::isEmpty(), QString::mid(), related, and QList< T >::size().
void QResourcePrivate::ensureInitialized | ( | ) | const |
Definition at line 341 of file qresource.cpp.
References absoluteFilePath, fileName, QList< T >::isEmpty(), load(), QString::prepend(), related, and QString::startsWith().
Referenced by ensureChildren().
bool QResourcePrivate::load | ( | const QString & | file | ) |
Definition at line 301 of file qresource.cpp.
References QList< T >::append(), QList< T >::at(), cleaned(), cleanPath(), QList< T >::clear(), compressionAlgo, container, file, i, QList< T >::isEmpty(), lastModified, list, locale, QResource::NoCompression, qWarning, related, resourceList(), resourceMutex(), and QList< T >::size().
Referenced by ensureInitialized().
qint64 QResourcePrivate::uncompressedSize | ( | ) | const |
Definition at line 396 of file qresource.cpp.
References compressionAlgo, QResource::NoCompression, Q_ASSERT, size, QResource::ZlibCompression, and QResource::ZstdCompression.
QString QResourcePrivate::absoluteFilePath |
Definition at line 270 of file qresource.cpp.
Referenced by clear(), ensureChildren(), and ensureInitialized().
|
mutable |
Definition at line 275 of file qresource.cpp.
Referenced by clear(), and ensureChildren().
|
mutable |
Definition at line 276 of file qresource.cpp.
Referenced by clear(), decompress(), load(), and uncompressedSize().
bool QResourcePrivate::container |
Definition at line 277 of file qresource.cpp.
Referenced by clear(), ensureChildren(), and load().
|
mutable |
Definition at line 274 of file qresource.cpp.
QString QResourcePrivate::fileName |
Definition at line 270 of file qresource.cpp.
Referenced by ensureInitialized().
|
mutable |
Definition at line 273 of file qresource.cpp.
QLocale QResourcePrivate::locale |
Definition at line 269 of file qresource.cpp.
Referenced by load().
QResource* QResourcePrivate::q_ptr |
Definition at line 280 of file qresource.cpp.
QList<QResourceRoot *> QResourcePrivate::related |
Definition at line 271 of file qresource.cpp.
Referenced by clear(), ensureChildren(), ensureInitialized(), and load().
|
mutable |
Definition at line 272 of file qresource.cpp.
Referenced by uncompressedSize().