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
QDynamicFileResourceRoot Class Reference
+ Inheritance diagram for QDynamicFileResourceRoot:
+ Collaboration diagram for QDynamicFileResourceRoot:

Public Member Functions

 QDynamicFileResourceRoot (const QString &_root)
 
 ~QDynamicFileResourceRoot ()
 
QString mappingFile () const
 
ResourceRootType type () const override
 
bool registerSelf (const QString &f)
 
- Public Member Functions inherited from QDynamicBufferResourceRoot
 QDynamicBufferResourceRoot (const QString &_root)
 
 ~QDynamicBufferResourceRoot ()
 
const ucharmappingBuffer () const
 
QString mappingRoot () const override
 
bool registerSelf (const uchar *b, qsizetype size)
 
- Public Member Functions inherited from QResourceRoot
 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 uchardata (int node, qint64 *size) const
 
qint64 lastModified (int node) const
 
QStringList children (int node) const
 
bool mappingRootSubdir (const QString &path, QString *match=nullptr) const
 
bool operator== (const QResourceRoot &other) const
 
bool operator!= (const QResourceRoot &other) const
 

Additional Inherited Members

- Public Types inherited from QResourceRoot
enum  Flags { Compressed = 0x01 , Directory = 0x02 , CompressedZstd = 0x04 }
 
enum  ResourceRootType { Resource_Builtin , Resource_File , Resource_Buffer }
 
- Public Attributes inherited from QResourceRoot
QAtomicInt ref
 
- Protected Member Functions inherited from QResourceRoot
void setSource (int v, const uchar *t, const uchar *n, const uchar *d)
 

Detailed Description

Definition at line 1106 of file qresource.cpp.

Constructor & Destructor Documentation

◆ QDynamicFileResourceRoot()

QDynamicFileResourceRoot::QDynamicFileResourceRoot ( const QString & _root)
inline

Definition at line 1114 of file qresource.cpp.

◆ ~QDynamicFileResourceRoot()

QDynamicFileResourceRoot::~QDynamicFileResourceRoot ( )
inline

Definition at line 1117 of file qresource.cpp.

References QDynamicBufferResourceRoot::mappingBuffer().

+ Here is the call graph for this function:

Member Function Documentation

◆ mappingFile()

QString QDynamicFileResourceRoot::mappingFile ( ) const
inline

Definition at line 1129 of file qresource.cpp.

References fileName.

Referenced by QResource::unregisterResource().

+ Here is the caller graph for this function:

◆ registerSelf()

bool QDynamicFileResourceRoot::registerSelf ( const QString & f)

Definition at line 1142 of file qresource.cpp.

References QFile::encodeName(), file, MAP_FAILED, MAP_FILE, ok, QFile::open(), ptr(), QT_CLOSE, QT_OPEN, QIODevice::read(), QIODeviceBase::ReadOnly, QDynamicBufferResourceRoot::registerSelf(), and QFile::size().

Referenced by QResource::registerResource().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ type()

ResourceRootType QDynamicFileResourceRoot::type ( ) const
inlineoverridevirtual

Reimplemented from QDynamicBufferResourceRoot.

Definition at line 1130 of file qresource.cpp.

References QResourceRoot::Resource_File.


The documentation for this class was generated from the following file: