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
qresource.cpp File Reference

(4a984c15dde72e074b2d66e484387cbe0d53130d)

#include "qresource.h"
#include "qresource_p.h"
#include "qresource_iterator_p.h"
#include "qset.h"
#include <private/qlocking_p.h>
#include "qdebug.h"
#include "qlocale.h"
#include "qglobal.h"
#include "qlist.h"
#include "qdatetime.h"
#include "qbytearray.h"
#include "qstringlist.h"
#include "qendian.h"
#include <qshareddata.h>
#include <qplatformdefs.h>
#include "private/qabstractfileengine_p.h"
#include "private/qduplicatetracker_p.h"
#include "private/qnumeric_p.h"
#include "private/qsimd_p.h"
#include "private/qtools_p.h"
#include "private/qsystemerror_p.h"
#include <zconf.h>
#include <zlib.h>
+ Include dependency graph for qresource.cpp:

Go to the source code of this file.

Classes

class  QResourcePrivate
 
class  QResourceFileEnginePrivate
 

Macros

#define RCC_FEATURE_SYMBOL(feature)    Q_CORE_EXPORT quint8 qResourceFeature ## feature() { return 0; }
 
#define MAP_FILE   0
 
#define MAP_FAILED   reinterpret_cast<void *>(-1)
 

Typedefs

typedef QList< QResourceRoot * > ResourceList
 

Functions

 Q_DECLARE_TYPEINFO (QResourceRoot, Q_RELOCATABLE_TYPE)
 
static QRecursiveMutexresourceMutex ()
 
static ResourceListresourceList ()
 
Q_CORE_EXPORT bool qRegisterResourceData (int version, const unsigned char *tree, const unsigned char *name, const unsigned char *data)
 
Q_CORE_EXPORT bool qUnregisterResourceData (int version, const unsigned char *tree, const unsigned char *name, const unsigned char *data)
 
static QString qt_resource_fixResourceRoot (QString r)
 
static auto mappingBoundaries (const void *location, qsizetype size)
 

Macro Definition Documentation

◆ MAP_FAILED

#define MAP_FAILED   reinterpret_cast<void *>(-1)

◆ MAP_FILE

#define MAP_FILE   0

Definition at line 1153 of file qresource.cpp.

Referenced by QTranslatorPrivate::do_load().

◆ RCC_FEATURE_SYMBOL

#define RCC_FEATURE_SYMBOL ( feature)     Q_CORE_EXPORT quint8 qResourceFeature ## feature() { return 0; }

Definition at line 65 of file qresource.cpp.

Typedef Documentation

◆ ResourceList

typedef QList<QResourceRoot*> ResourceList

Definition at line 177 of file qresource.cpp.

Function Documentation

◆ mappingBoundaries()

static auto mappingBoundaries ( const void * location,
qsizetype size )
static

Definition at line 1698 of file qresource.cpp.

References begin(), and R.

+ Here is the call graph for this function:

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QResourceRoot ,
Q_RELOCATABLE_TYPE  )

◆ qRegisterResourceData()

Q_CORE_EXPORT bool qRegisterResourceData ( int version,
const unsigned char * tree,
const unsigned char * name,
const unsigned char * data )

Definition at line 1000 of file qresource.cpp.

References QList< T >::append(), QList< T >::at(), i, list, QBasicAtomicInteger< T >::ref(), resourceList(), resourceMutex(), and QList< T >::size().

+ Here is the call graph for this function:

◆ qt_resource_fixResourceRoot()

static QString qt_resource_fixResourceRoot ( QString r)
static

Definition at line 1234 of file qresource.cpp.

References QDir::cleanPath().

Referenced by QResource::registerResource(), QResource::registerResource(), QResource::unregisterResource(), and QResource::unregisterResource().

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

◆ qUnregisterResourceData()

Q_CORE_EXPORT bool qUnregisterResourceData ( int version,
const unsigned char * tree,
const unsigned char * name,
const unsigned char * data )

Definition at line 1026 of file qresource.cpp.

References QList< T >::at(), QBasicAtomicInteger< T >::deref(), i, list, resourceList(), resourceMutex(), QList< T >::size(), and QList< T >::takeAt().

+ Here is the call graph for this function:

◆ resourceList()

static ResourceList * resourceList ( )
inlinestatic

Definition at line 190 of file qresource.cpp.

Referenced by QResourcePrivate::load(), qRegisterResourceData(), qUnregisterResourceData(), QResource::registerResource(), QResource::registerResource(), QResource::unregisterResource(), and QResource::unregisterResource().

+ Here is the caller graph for this function:

◆ resourceMutex()

static QRecursiveMutex & resourceMutex ( )
inlinestatic

Definition at line 187 of file qresource.cpp.

Referenced by QResourcePrivate::load(), qRegisterResourceData(), qUnregisterResourceData(), QResource::registerResource(), QResource::registerResource(), QResource::unregisterResource(), and QResource::unregisterResource().

+ Here is the caller graph for this function: