Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlJS::Dom::ExternalOwningItem Class Reference

A OwningItem that refers to an external resource (file,...) More...

#include <qqmldomexternalitems_p.h>

+ Inheritance diagram for QQmlJS::Dom::ExternalOwningItem:
+ Collaboration diagram for QQmlJS::Dom::ExternalOwningItem:

Public Member Functions

 ExternalOwningItem (QString filePath, QDateTime lastDataUpdateAt, Path pathFromTop, int derivedFrom=0, QString code=QString())
 
 ExternalOwningItem (const ExternalOwningItem &o)=default
 
QString canonicalFilePath (DomItem &) const override
 
QString canonicalFilePath () const
 
Path canonicalPath (DomItem &) const override
 
Path canonicalPath () const
 
bool iterateDirectSubpaths (DomItem &self, DirectVisitor visitor) override
 
bool iterateSubOwners (DomItem &self, function_ref< bool(DomItem &owner)> visitor) override
 
bool isValid () const
 
void setIsValid (bool val)
 
const QStringcode () const
 
- Public Member Functions inherited from QQmlJS::Dom::OwningItem
 OwningItem (const OwningItem &o)
 
 OwningItem (int derivedFrom=0)
 
 OwningItem (int derivedFrom, QDateTime lastDataUpdateAt)
 
 OwningItem (const OwningItem &&)=delete
 
OwningItemoperator= (const OwningItem &&)=delete
 
Path canonicalPath (DomItem &self) const override=0
 
bool iterateDirectSubpaths (DomItem &self, DirectVisitor) override
 
std::shared_ptr< OwningItemmakeCopy (DomItem &self) const
 
Path pathFromOwner () const
 
Path pathFromOwner (DomItem &) const override final
 
DomItem containingObject (DomItem &self) const override
 
int derivedFrom () const
 
virtual int revision () const
 
QDateTime createdAt () const
 
virtual QDateTime lastDataUpdateAt () const
 
virtual void refreshedDataAt (QDateTime tNew)
 
virtual bool frozen () const
 
virtual bool freeze ()
 
QDateTime frozenAt () const
 
virtual void addError (DomItem &self, ErrorMessage msg)
 
void addErrorLocal (ErrorMessage msg)
 
void clearErrors (ErrorGroups groups=ErrorGroups({}))
 
bool iterateErrors (DomItem &self, function_ref< bool(DomItem source, ErrorMessage msg)> visitor, Path inPath=Path())
 
QMultiMap< Path, ErrorMessagelocalErrors () const
 
virtual bool iterateSubOwners (DomItem &self, function_ref< bool(DomItem &owner)> visitor)
 
QBasicMutexmutex () const
 
- Public Member Functions inherited from QQmlJS::Dom::DomBase
virtual ~DomBase ()=default
 
DomBasedomBase ()
 
virtual DomType kind () const =0
 
virtual DomKind domKind () const
 
virtual Path pathFromOwner (DomItem &self) const =0
 
virtual Path canonicalPath (DomItem &self) const =0
 
virtual bool iterateDirectSubpaths (DomItem &self, DirectVisitor visitor)=0
 
bool iterateDirectSubpathsConst (DomItem &self, DirectVisitor) const
 
virtual DomItem containingObject (DomItem &self) const
 
virtual void dump (DomItem &, Sink sink, int indent, FilterT filter) const
 
virtual quintptr id () const
 
QString typeName () const
 
virtual QList< QStringfields (DomItem &self) const
 
virtual DomItem field (DomItem &self, QStringView name) const
 
virtual index_type indexes (DomItem &self) const
 
virtual DomItem index (DomItem &self, index_type index) const
 
virtual QSet< QString > const keys (DomItem &self) const
 
virtual DomItem key (DomItem &self, QString name) const
 
virtual QString canonicalFilePath (DomItem &self) const
 
virtual void writeOut (DomItem &self, OutWriter &lw) const
 
virtual QCborValue value () const
 

Protected Attributes

QString m_canonicalFilePath
 
QString m_code
 
Path m_path
 
bool m_isValid = false
 

Additional Inherited Members

- Public Types inherited from QQmlJS::Dom::DomBase
using FilterT = function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &)>
 
- Static Public Member Functions inherited from QQmlJS::Dom::OwningItem
static int nextRevision ()
 
- Protected Member Functions inherited from QQmlJS::Dom::OwningItem
virtual std::shared_ptr< OwningItemdoCopy (DomItem &self) const =0
 

Detailed Description

A OwningItem that refers to an external resource (file,...)

Every owning item has a file or directory it refers to.

Definition at line 49 of file qqmldomexternalitems_p.h.

Constructor & Destructor Documentation

◆ ExternalOwningItem() [1/2]

QQmlJS::Dom::ExternalOwningItem::ExternalOwningItem ( QString  filePath,
QDateTime  lastDataUpdateAt,
Path  pathFromTop,
int  derivedFrom = 0,
QString  code = QString() 
)

Definition at line 30 of file qqmldomexternalitems.cpp.

◆ ExternalOwningItem() [2/2]

QQmlJS::Dom::ExternalOwningItem::ExternalOwningItem ( const ExternalOwningItem o)
default

Member Function Documentation

◆ canonicalFilePath() [1/2]

QString QQmlJS::Dom::ExternalOwningItem::canonicalFilePath ( ) const

Definition at line 43 of file qqmldomexternalitems.cpp.

References m_canonicalFilePath.

Referenced by QQmlJS::Dom::QmlDirectory::addQmlFilePath(), QQmlJS::Dom::GlobalScope::doCopy(), QQmlJS::Dom::QmldirFile::fromPathAndCode(), and QQmlJS::Dom::QmlDirectory::iterateDirectSubpaths().

+ Here is the caller graph for this function:

◆ canonicalFilePath() [2/2]

QString QQmlJS::Dom::ExternalOwningItem::canonicalFilePath ( DomItem ) const
overridevirtual

Reimplemented from QQmlJS::Dom::DomBase.

Definition at line 38 of file qqmldomexternalitems.cpp.

References m_canonicalFilePath.

◆ canonicalPath() [1/2]

Path QQmlJS::Dom::ExternalOwningItem::canonicalPath ( ) const

Definition at line 53 of file qqmldomexternalitems.cpp.

References m_path.

Referenced by QQmlJS::Dom::QmlDirectory::addQmlFilePath().

+ Here is the caller graph for this function:

◆ canonicalPath() [2/2]

Path QQmlJS::Dom::ExternalOwningItem::canonicalPath ( DomItem ) const
overridevirtual

Implements QQmlJS::Dom::OwningItem.

Definition at line 48 of file qqmldomexternalitems.cpp.

References m_path.

◆ code()

const QString & QQmlJS::Dom::ExternalOwningItem::code ( ) const
inline

Definition at line 97 of file qqmldomexternalitems_p.h.

Referenced by QQmlJS::Dom::QmlFile::QmlFile(), and QQmlJS::Dom::QmldirFile::fromPathAndCode().

+ Here is the caller graph for this function:

◆ isValid()

bool QQmlJS::Dom::ExternalOwningItem::isValid ( ) const
inline

Definition at line 88 of file qqmldomexternalitems_p.h.

References mutex.

◆ iterateDirectSubpaths()

bool QQmlJS::Dom::ExternalOwningItem::iterateDirectSubpaths ( DomItem self,
DirectVisitor  visitor 
)
inlineoverridevirtual

Implements QQmlJS::Dom::DomBase.

Reimplemented in QQmlJS::Dom::QmlDirectory, QQmlJS::Dom::QmldirFile, QQmlJS::Dom::GlobalScope, QQmlJS::Dom::QmlFile, and QQmlJS::Dom::QmltypesFile.

Definition at line 58 of file qqmldomexternalitems_p.h.

References QString::isNull().

Referenced by QQmlJS::Dom::QmlDirectory::iterateDirectSubpaths(), QQmlJS::Dom::QmldirFile::iterateDirectSubpaths(), QQmlJS::Dom::GlobalScope::iterateDirectSubpaths(), QQmlJS::Dom::QmlFile::iterateDirectSubpaths(), and QQmlJS::Dom::QmltypesFile::iterateDirectSubpaths().

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

◆ iterateSubOwners()

bool QQmlJS::Dom::ExternalOwningItem::iterateSubOwners ( DomItem self,
function_ref< bool(DomItem &owner)>  visitor 
)
inlineoverridevirtual

Reimplemented from QQmlJS::Dom::OwningItem.

Definition at line 72 of file qqmldomexternalitems_p.h.

References QQmlJS::Dom::DomItem::as(), QQmlJS::Dom::DomItem::field(), Q_ASSERT, and QQmlJS::Dom::DomItem::visitIndexes().

+ Here is the call graph for this function:

◆ setIsValid()

void QQmlJS::Dom::ExternalOwningItem::setIsValid ( bool  val)
inline

Definition at line 92 of file qqmldomexternalitems_p.h.

References mutex.

Member Data Documentation

◆ m_canonicalFilePath

QString QQmlJS::Dom::ExternalOwningItem::m_canonicalFilePath
protected

Definition at line 100 of file qqmldomexternalitems_p.h.

Referenced by canonicalFilePath(), and canonicalFilePath().

◆ m_code

QString QQmlJS::Dom::ExternalOwningItem::m_code
protected

Definition at line 101 of file qqmldomexternalitems_p.h.

◆ m_isValid

bool QQmlJS::Dom::ExternalOwningItem::m_isValid = false
protected

Definition at line 103 of file qqmldomexternalitems_p.h.

Referenced by QQmlJS::Dom::QmlFile::QmlFile().

◆ m_path

Path QQmlJS::Dom::ExternalOwningItem::m_path
protected

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