Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qresource.cpp File Reference

(843f39358f764f6bda2a2b4e5ed881d4b728f7cb)

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

Definition at line 1159 of file qresource.cpp.

◆ MAP_FILE

#define MAP_FILE   0

Definition at line 1156 of file qresource.cpp.

◆ RCC_FEATURE_SYMBOL

#define RCC_FEATURE_SYMBOL ( feature)
Value:
Q_CORE_EXPORT quint8 qResourceFeature ## feature() { return 0; }
unsigned char quint8
Definition qtypes.h:51

Definition at line 66 of file qresource.cpp.

Typedef Documentation

◆ ResourceList

typedef QList< QResourceRoot * > ResourceList

Definition at line 178 of file qresource.cpp.

Function Documentation

◆ mappingBoundaries()

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

Definition at line 1704 of file qresource.cpp.

◆ 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 1003 of file qresource.cpp.

References resourceList().

Here is the call graph for this function:

◆ qt_resource_fixResourceRoot()

QString qt_resource_fixResourceRoot ( QString r)
static

Definition at line 1237 of file qresource.cpp.

◆ qUnregisterResourceData()

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

Definition at line 1029 of file qresource.cpp.

References resourceList().

Here is the call graph for this function:

◆ resourceList()

ResourceList * resourceList ( )
inlinestatic

Definition at line 191 of file qresource.cpp.

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

Here is the caller graph for this function:

◆ resourceMutex()

QRecursiveMutex & resourceMutex ( )
inlinestatic

Definition at line 188 of file qresource.cpp.