Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlDirParser Class Reference

#include <qqmldirparser_p.h>

+ Collaboration diagram for QQmlDirParser:

Classes

struct  Component
 
struct  Import
 
struct  Plugin
 
struct  Script
 

Public Member Functions

void clear ()
 
bool parse (const QString &source)
 url is used for generating errors.
 
bool hasError () const
 
void setError (const QQmlJS::DiagnosticMessage &)
 
QList< QQmlJS::DiagnosticMessageerrors (const QString &uri) const
 
QString typeNamespace () const
 
void setTypeNamespace (const QString &s)
 
QMultiHash< QString, Componentcomponents () const
 
QList< Importdependencies () const
 
QList< Importimports () const
 
QList< Scriptscripts () const
 
QList< Pluginplugins () const
 
bool designerSupported () const
 
bool isStaticModule () const
 
bool isSystemModule () const
 
QStringList typeInfos () const
 
QStringList classNames () const
 
QString preferredPath () const
 
QString linkTarget () const
 

Static Public Member Functions

static void checkNonRelative (const char *item, const QString &typeName, const QString &fileName)
 

Detailed Description

Definition at line 28 of file qqmldirparser_p.h.

Member Function Documentation

◆ checkNonRelative()

static void QQmlDirParser::checkNonRelative ( const char *  item,
const QString typeName,
const QString fileName 
)
inlinestatic

Definition at line 41 of file qqmldirparser_p.h.

References fileName, item, qWarning, and typeName.

◆ classNames()

QStringList QQmlDirParser::classNames ( ) const
inline

Definition at line 135 of file qqmldirparser_p.h.

◆ clear()

void QQmlDirParser::clear ( )

Definition at line 40 of file qqmldirparser.cpp.

References QString::clear(), and QList< T >::clear().

+ Here is the call graph for this function:

◆ components()

QMultiHash< QString, Component > QQmlDirParser::components ( ) const
inline

Definition at line 125 of file qqmldirparser_p.h.

Referenced by QQmlTypeLoaderQmldirContent::components().

+ Here is the caller graph for this function:

◆ dependencies()

QList< Import > QQmlDirParser::dependencies ( ) const
inline

Definition at line 126 of file qqmldirparser_p.h.

◆ designerSupported()

bool QQmlDirParser::designerSupported ( ) const
inline

Definition at line 130 of file qqmldirparser_p.h.

Referenced by QQmlTypeLoaderQmldirContent::designerSupported().

+ Here is the caller graph for this function:

◆ errors()

QList< QQmlJS::DiagnosticMessage > QQmlDirParser::errors ( const QString uri) const

Definition at line 394 of file qqmldirparser.cpp.

References QList< T >::at(), e, errors(), i, QList< T >::reserve(), and QList< T >::size().

Referenced by QQmlTypeLoaderQmldirContent::errors(), and errors().

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

◆ hasError()

bool QQmlDirParser::hasError ( ) const
inline

Definition at line 34 of file qqmldirparser_p.h.

Referenced by QQmlTypeLoaderQmldirContent::hasError(), and parse().

+ Here is the caller graph for this function:

◆ imports()

QList< Import > QQmlDirParser::imports ( ) const
inline

Definition at line 127 of file qqmldirparser_p.h.

Referenced by QQmlTypeLoaderQmldirContent::imports().

+ Here is the caller graph for this function:

◆ isStaticModule()

bool QQmlDirParser::isStaticModule ( ) const
inline

Definition at line 131 of file qqmldirparser_p.h.

◆ isSystemModule()

bool QQmlDirParser::isSystemModule ( ) const
inline

Definition at line 132 of file qqmldirparser_p.h.

◆ linkTarget()

QString QQmlDirParser::linkTarget ( ) const
inline

Definition at line 137 of file qqmldirparser_p.h.

◆ parse()

bool QQmlDirParser::parse ( const QString source)

url is used for generating errors.

Definition at line 73 of file qqmldirparser.cpp.

References arg, QQmlDirParser::Import::Auto, ch, QQmlDirParser::Import::Default, fileName, hasError(), QString::isEmpty(), QTypeRevision::isValid(), QString::mid(), QQmlDirParser::Import::Optional, QQmlDirParser::Import::OptionalDefault, parseVersion(), QStringLiteral, scanSpace(), scanToEnd(), and scanWord().

Referenced by createQmldirParserForFile().

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

◆ plugins()

QList< Plugin > QQmlDirParser::plugins ( ) const
inline

Definition at line 129 of file qqmldirparser_p.h.

Referenced by QQmlTypeLoaderQmldirContent::plugins().

+ Here is the caller graph for this function:

◆ preferredPath()

QString QQmlDirParser::preferredPath ( ) const
inline

Definition at line 136 of file qqmldirparser_p.h.

Referenced by QQmlTypeLoaderQmldirContent::preferredPath().

+ Here is the caller graph for this function:

◆ scripts()

QList< Script > QQmlDirParser::scripts ( ) const
inline

Definition at line 128 of file qqmldirparser_p.h.

Referenced by QQmlTypeLoaderQmldirContent::scripts().

+ Here is the caller graph for this function:

◆ setError()

void QQmlDirParser::setError ( const QQmlJS::DiagnosticMessage e)

Definition at line 388 of file qqmldirparser.cpp.

References QList< T >::clear(), and e.

+ Here is the call graph for this function:

◆ setTypeNamespace()

void QQmlDirParser::setTypeNamespace ( const QString s)
inline

Definition at line 39 of file qqmldirparser_p.h.

◆ typeInfos()

QStringList QQmlDirParser::typeInfos ( ) const
inline

Definition at line 134 of file qqmldirparser_p.h.

Referenced by QQmlTypeLoaderQmldirContent::hasTypeInfo().

+ Here is the caller graph for this function:

◆ typeNamespace()

QString QQmlDirParser::typeNamespace ( ) const
inline

Definition at line 38 of file qqmldirparser_p.h.

Referenced by QQmlTypeLoaderQmldirContent::typeNamespace().

+ Here is the caller graph for this function:

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