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
QQmlJS::Dom::QmlUri Class Reference

#include <qqmldomelements_p.h>

+ Collaboration diagram for QQmlJS::Dom::QmlUri:

Public Types

enum class  Kind {
  Invalid , ModuleUri , DirectoryUrl , RelativePath ,
  AbsolutePath
}
 

Public Member Functions

 QmlUri ()=default
 
bool isValid () const
 
bool isDirectory () const
 
bool isModule () const
 
QString moduleUri () const
 
QString localPath () const
 
QString absoluteLocalPath (const QString &basePath=QString()) const
 
QUrl directoryUrl () const
 
QString directoryString () const
 
QString toString () const
 
Kind kind () const
 

Static Public Member Functions

static QmlUri fromString (const QString &importStr)
 
static QmlUri fromUriString (const QString &importStr)
 
static QmlUri fromDirectoryString (const QString &importStr)
 

Friends

bool operator== (const QmlUri &i1, const QmlUri &i2)
 
bool operator!= (const QmlUri &i1, const QmlUri &i2)
 

Detailed Description

Definition at line 231 of file qqmldomelements_p.h.

Member Enumeration Documentation

◆ Kind

enum class QQmlJS::Dom::QmlUri::Kind
strong
Enumerator
Invalid 
ModuleUri 
DirectoryUrl 
RelativePath 
AbsolutePath 

Definition at line 234 of file qqmldomelements_p.h.

Constructor & Destructor Documentation

◆ QmlUri()

QQmlJS::Dom::QmlUri::QmlUri ( )
default

Member Function Documentation

◆ absoluteLocalPath()

QString QQmlJS::Dom::QmlUri::absoluteLocalPath ( const QString & basePath = QString()) const

◆ directoryString()

QString QQmlJS::Dom::QmlUri::directoryString ( ) const

◆ directoryUrl()

QUrl QQmlJS::Dom::QmlUri::directoryUrl ( ) const

◆ fromDirectoryString()

static QmlUri QQmlJS::Dom::QmlUri::fromDirectoryString ( const QString & importStr)
static

◆ fromString()

static QmlUri QQmlJS::Dom::QmlUri::fromString ( const QString & importStr)
static

◆ fromUriString()

static QmlUri QQmlJS::Dom::QmlUri::fromUriString ( const QString & importStr)
static

◆ isDirectory()

bool QQmlJS::Dom::QmlUri::isDirectory ( ) const

◆ isModule()

bool QQmlJS::Dom::QmlUri::isModule ( ) const

◆ isValid()

bool QQmlJS::Dom::QmlUri::isValid ( ) const

◆ kind()

Kind QQmlJS::Dom::QmlUri::kind ( ) const

◆ localPath()

QString QQmlJS::Dom::QmlUri::localPath ( ) const

◆ moduleUri()

QString QQmlJS::Dom::QmlUri::moduleUri ( ) const

◆ toString()

QString QQmlJS::Dom::QmlUri::toString ( ) const

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const QmlUri & i1,
const QmlUri & i2 )
friend

Definition at line 254 of file qqmldomelements_p.h.

◆ operator==

bool operator== ( const QmlUri & i1,
const QmlUri & i2 )
friend

Definition at line 250 of file qqmldomelements_p.h.


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