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

(1c9e155b0571ece99ca350cc5f43af4fa8d64e4d)

#include "qfactoryloader_p.h"
#include "private/qcoreapplication_p.h"
#include "private/qduplicatetracker_p.h"
#include "private/qloggingregistry_p.h"
#include "private/qobject_p.h"
#include "qcborarray.h"
#include "qcbormap.h"
#include "qcborstreamreader.h"
#include "qcborvalue.h"
#include "qdirlisting.h"
#include "qfileinfo.h"
#include "qjsonarray.h"
#include "qjsondocument.h"
#include "qjsonobject.h"
#include "qmutex.h"
#include "qplugin.h"
#include "qplugin_p.h"
#include "qpluginloader.h"
#include <qtcore_tracepoints_p.h>
#include <map>
#include <vector>
#include "moc_qfactoryloader_p.cpp"
+ Include dependency graph for qfactoryloader.cpp:

Go to the source code of this file.

Classes

class  QFactoryLoaderPrivate
 

Macros

#define CONVERT_TO_STRING(IntKey, StringKey, Description)    case int(IntKey): key = QStringLiteral(StringKey); break;
 

Functions

 Q_TRACE_POINT (qtcore, QFactoryLoader_update, const QString &fileName)
 
template<typename F >
static IterationResult iterateInPluginMetaData (QByteArrayView raw, F &&f)
 
static bool isIidMatch (QByteArrayView raw, QLatin1StringView iid)
 

Macro Definition Documentation

◆ CONVERT_TO_STRING

#define CONVERT_TO_STRING ( IntKey,
StringKey,
Description )    case int(IntKey): key = QStringLiteral(StringKey); break;

Function Documentation

◆ isIidMatch()

static bool isIidMatch ( QByteArrayView raw,
QLatin1StringView iid )
static

Definition at line 177 of file qfactoryloader.cpp.

References iterateInPluginMetaData().

Referenced by QFactoryLoader::instance().

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

◆ iterateInPluginMetaData()

template<typename F >
static IterationResult iterateInPluginMetaData ( QByteArrayView raw,
F && f )
static

Definition at line 128 of file qfactoryloader.cpp.

References ba, QPluginMetaData::CurrentMetaDataVersion, QByteArray::fromRawData(), header(), Q_ASSERT, and Q_UNLIKELY.

Referenced by isIidMatch(), QFactoryLoader::metaDataKeys(), and QPluginParsedMetaData::parse().

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

◆ Q_TRACE_POINT()

Q_TRACE_POINT ( qtcore ,
QFactoryLoader_update ,
const QString & fileName )