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
MetaTypesJsonProcessor Class Reference

#include <qmetatypesjsonprocessor_p.h>

+ Collaboration diagram for MetaTypesJsonProcessor:

Public Member Functions

 MetaTypesJsonProcessor (bool privateIncludes)
 
bool processTypes (const QStringList &files)
 
bool processForeignTypes (const QString &foreignTypesFile)
 
bool processForeignTypes (const QStringList &foreignTypesFiles)
 
void postProcessTypes ()
 
void postProcessForeignTypes ()
 
QVector< MetaTypetypes () const
 
QVector< MetaTypeforeignTypes () const
 
QList< QAnyStringViewreferencedTypes () const
 
QList< QStringincludes () const
 
QString extractRegisteredTypes () const
 

Static Public Member Functions

static QList< QAnyStringViewnamespaces (const MetaType &classDef)
 

Detailed Description

Definition at line 212 of file qmetatypesjsonprocessor_p.h.

Constructor & Destructor Documentation

◆ MetaTypesJsonProcessor()

MetaTypesJsonProcessor::MetaTypesJsonProcessor ( bool privateIncludes)
inline

Definition at line 217 of file qmetatypesjsonprocessor_p.h.

Member Function Documentation

◆ extractRegisteredTypes()

◆ foreignTypes()

QVector< MetaType > MetaTypesJsonProcessor::foreignTypes ( ) const
inline

Definition at line 228 of file qmetatypesjsonprocessor_p.h.

◆ includes()

QList< QString > MetaTypesJsonProcessor::includes ( ) const
inline

Definition at line 230 of file qmetatypesjsonprocessor_p.h.

◆ namespaces()

QList< QAnyStringView > MetaTypesJsonProcessor::namespaces ( const MetaType & classDef)
static

Definition at line 41 of file qmetatypesjsonprocessor.cpp.

References namespaces(), Q_ASSERT, and split().

Referenced by QmlTypesClassDescription::collect(), namespaces(), and QmlTypeRegistrar::write().

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

◆ postProcessForeignTypes()

void MetaTypesJsonProcessor::postProcessForeignTypes ( )

Definition at line 151 of file qmetatypesjsonprocessor.cpp.

References sortStringList().

+ Here is the call graph for this function:

◆ postProcessTypes()

void MetaTypesJsonProcessor::postProcessTypes ( )

Definition at line 146 of file qmetatypesjsonprocessor.cpp.

◆ processForeignTypes() [1/2]

bool MetaTypesJsonProcessor::processForeignTypes ( const QString & foreignTypesFile)

Definition at line 97 of file qmetatypesjsonprocessor.cpp.

References QJsonParseError::error, error, QJsonParseError::errorString(), fromJson(), metaObject(), QJsonParseError::NoError, processForeignTypes(), and QIODeviceBase::ReadOnly.

Referenced by processForeignTypes(), and processForeignTypes().

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

◆ processForeignTypes() [2/2]

bool MetaTypesJsonProcessor::processForeignTypes ( const QStringList & foreignTypesFiles)

Definition at line 127 of file qmetatypesjsonprocessor.cpp.

References processForeignTypes().

+ Here is the call graph for this function:

◆ processTypes()

bool MetaTypesJsonProcessor::processTypes ( const QStringList & files)

Definition at line 56 of file qmetatypesjsonprocessor.cpp.

References QJsonParseError::error, error, QJsonParseError::errorString(), files, fromJson(), QCborValue::isArray(), QCborValue::isMap(), metaObject(), QJsonParseError::NoError, processTypes(), QIODeviceBase::ReadOnly, QCborValue::toArray(), and QCborValue::toMap().

Referenced by processTypes().

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

◆ referencedTypes()

QList< QAnyStringView > MetaTypesJsonProcessor::referencedTypes ( ) const
inline

Definition at line 229 of file qmetatypesjsonprocessor_p.h.

◆ types()

QVector< MetaType > MetaTypesJsonProcessor::types ( ) const
inline

Definition at line 227 of file qmetatypesjsonprocessor_p.h.


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