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

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 ()
 

Static Public Member Functions

static bool mayRemapData (const QResource &resource)
 

Public Attributes

QLocale locale
 
QString fileName
 
QString absoluteFilePath
 
QList< QResourceRoot * > related
 
qint64 size
 
qint64 lastModified
 
const uchardata
 
QStringList children
 
quint8 compressionAlgo
 
bool container
 
QResourceq_ptr
 

Detailed Description

Definition at line 283 of file qresource.cpp.

Constructor & Destructor Documentation

◆ QResourcePrivate()

QResourcePrivate::QResourcePrivate ( QResource * _q)
inline

Definition at line 285 of file qresource.cpp.

References clear().

+ Here is the call graph for this function:

◆ ~QResourcePrivate()

QResourcePrivate::~QResourcePrivate ( )
inline

Definition at line 286 of file qresource.cpp.

References clear().

+ Here is the call graph for this function:

Member Function Documentation

◆ clear()

void QResourcePrivate::clear ( )

Definition at line 313 of file qresource.cpp.

References absoluteFilePath, QList< T >::at(), children, QString::clear(), QList< T >::clear(), compressionAlgo, container, QBasicAtomicInteger< T >::deref(), i, lastModified, QResource::NoCompression, related, and QList< T >::size().

Referenced by QResourcePrivate(), and ~QResourcePrivate().

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

◆ decompress()

qsizetype QResourcePrivate::decompress ( char * buffer,
qsizetype bufferSize ) const

◆ ensureChildren()

void QResourcePrivate::ensureChildren ( ) const

Definition at line 395 of file qresource.cpp.

References absoluteFilePath, QList< T >::at(), children, cleaned(), container, ensureInitialized(), i, QList< T >::isEmpty(), QString::mid(), related, and QList< T >::size().

+ Here is the call graph for this function:

◆ ensureInitialized()

void QResourcePrivate::ensureInitialized ( ) const

Definition at line 370 of file qresource.cpp.

References fileName, QList< T >::isEmpty(), QString::prepend(), and related.

Referenced by ensureChildren().

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

◆ load()

bool QResourcePrivate::load ( const QString & file)

Definition at line 330 of file qresource.cpp.

References QList< T >::append(), QList< T >::at(), cleaned(), QList< T >::clear(), compressionAlgo, container, file, i, QList< T >::isEmpty(), lastModified, list, locale, QResource::NoCompression, qWarning, related, resourceList(), resourceMutex(), and QList< T >::size().

+ Here is the call graph for this function:

◆ mayRemapData()

static bool QResourcePrivate::mayRemapData ( const QResource & resource)
static

◆ uncompressedSize()

qint64 QResourcePrivate::uncompressedSize ( ) const

Member Data Documentation

◆ absoluteFilePath

QString QResourcePrivate::absoluteFilePath

Definition at line 299 of file qresource.cpp.

Referenced by clear(), and ensureChildren().

◆ children

QStringList QResourcePrivate::children
mutable

Definition at line 304 of file qresource.cpp.

Referenced by clear(), and ensureChildren().

◆ compressionAlgo

quint8 QResourcePrivate::compressionAlgo

Definition at line 305 of file qresource.cpp.

Referenced by clear(), decompress(), load(), and uncompressedSize().

◆ container

bool QResourcePrivate::container

Definition at line 306 of file qresource.cpp.

Referenced by clear(), ensureChildren(), and load().

◆ data

const uchar* QResourcePrivate::data

Definition at line 303 of file qresource.cpp.

◆ fileName

QString QResourcePrivate::fileName

Definition at line 299 of file qresource.cpp.

Referenced by ensureInitialized().

◆ lastModified

qint64 QResourcePrivate::lastModified

Definition at line 302 of file qresource.cpp.

Referenced by clear(), and load().

◆ locale

QLocale QResourcePrivate::locale

Definition at line 298 of file qresource.cpp.

Referenced by load().

◆ q_ptr

QResource* QResourcePrivate::q_ptr

Definition at line 309 of file qresource.cpp.

◆ related

QList<QResourceRoot *> QResourcePrivate::related

Definition at line 300 of file qresource.cpp.

Referenced by clear(), ensureChildren(), ensureInitialized(), and load().

◆ size

qint64 QResourcePrivate::size

Definition at line 301 of file qresource.cpp.

Referenced by uncompressedSize().


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