![]() |
Qt 6.x
The Qt SDK
|
Inheritance diagram for QResourceRoot:
Collaboration diagram for QResourceRoot:Public Types | |
| enum | Flags { Compressed = 0x01 , Directory = 0x02 , CompressedZstd = 0x04 } |
| enum | ResourceRootType { Resource_Builtin , Resource_File , Resource_Buffer } |
Public Member Functions | |
| QResourceRoot () | |
| QResourceRoot (int version, const uchar *t, const uchar *n, const uchar *d) | |
| virtual | ~QResourceRoot () |
| int | findNode (const QString &path, const QLocale &locale=QLocale()) const |
| bool | isContainer (int node) const |
| QResource::Compression | compressionAlgo (int node) |
| const uchar * | data (int node, qint64 *size) const |
| quint64 | lastModified (int node) const |
| QStringList | children (int node) const |
| virtual QString | mappingRoot () const |
| bool | mappingRootSubdir (const QString &path, QString *match=nullptr) const |
| bool | operator== (const QResourceRoot &other) const |
| bool | operator!= (const QResourceRoot &other) const |
| virtual ResourceRootType | type () const |
Public Attributes | |
| QAtomicInt | ref |
Protected Member Functions | |
| void | setSource (int v, const uchar *t, const uchar *n, const uchar *d) |
Definition at line 98 of file qresource.cpp.
| enum QResourceRoot::Flags |
| Enumerator | |
|---|---|
| Compressed | |
| Directory | |
| CompressedZstd | |
Definition at line 101 of file qresource.cpp.
| Enumerator | |
|---|---|
| Resource_Builtin | |
| Resource_File | |
| Resource_Buffer | |
Definition at line 141 of file qresource.cpp.
|
inline |
Definition at line 118 of file qresource.cpp.
|
inline |
Definition at line 119 of file qresource.cpp.
References d, and setSource().
Here is the call graph for this function:
|
inlinevirtual |
Definition at line 120 of file qresource.cpp.
| QStringList QResourceRoot::children | ( | int | node | ) | const |
Definition at line 928 of file qresource.cpp.
|
inline |
Definition at line 123 of file qresource.cpp.
References Compressed, CompressedZstd, QResource::NoCompression, QResource::ZlibCompression, and QResource::ZstdCompression.
Definition at line 894 of file qresource.cpp.
Definition at line 760 of file qresource.cpp.
References QLocale::AnyTerritory, QLocale::C, child, Directory, QString::endsWith(), hash, QStringSplitter::hasNext(), QString::isEmpty(), j, mappingRoot(), QString::mid(), QStringSplitter::next(), qDebug, qt_hash(), and QString::size().
Here is the call graph for this function:
|
inline |
Definition at line 122 of file qresource.cpp.
References Directory.
| quint64 QResourceRoot::lastModified | ( | int | node | ) | const |
Definition at line 918 of file qresource.cpp.
|
inlinevirtual |
Reimplemented in QDynamicBufferResourceRoot.
Definition at line 135 of file qresource.cpp.
Referenced by findNode(), and mappingRootSubdir().
Here is the caller graph for this function:Definition at line 948 of file qresource.cpp.
References QStringSplitter::hasNext(), QString::isEmpty(), mappingRoot(), match(), QStringSplitter::next(), and QStringView::toString().
Here is the call graph for this function:
|
inline |
Definition at line 139 of file qresource.cpp.
References operator==(), and other().
Here is the call graph for this function:
|
inline |
Definition at line 137 of file qresource.cpp.
References other().
Referenced by operator!=().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 145 of file qresource.cpp.
References d.
Referenced by QResourceRoot(), and QDynamicBufferResourceRoot::registerSelf().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in QDynamicBufferResourceRoot, and QDynamicFileResourceRoot.
Definition at line 142 of file qresource.cpp.
References Resource_Builtin.
|
mutable |
Definition at line 116 of file qresource.cpp.
Referenced by QResourcePrivate::clear(), qRegisterResourceData(), qUnregisterResourceData(), QResource::registerResource(), QResource::registerResource(), QResource::unregisterResource(), and QResource::unregisterResource().