4#ifndef QQMLDOMMODULEINDEX_P_H
5#define QQMLDOMMODULEINDEX_P_H
28 constexpr static DomType kindValue = DomType::ModuleScope;
32 : uri(uri), version(version)
38 return Path::Field(Fields::moduleScope)
44 return self.owner().canonicalPath().path(pathFromOwner());
57 std::shared_ptr<OwningItem> doCopy(
DomItem &self)
const override;
60 enum class Status { NotLoaded, Loading, Loaded };
61 constexpr static DomType kindValue = DomType::ModuleIndex;
66 :
OwningItem(derivedFrom, lastDataUpdateAt), m_uri(uri), m_majorVersion(majorVersion)
76 return std::static_pointer_cast<ModuleIndex>(doCopy(self));
81 return Paths::moduleIndexPath(uri(), majorVersion());
89 int minorVersion)
const;
98 return m_moduleScope.keys();
101 void mergeWith(std::shared_ptr<ModuleIndex>
o);
105 if (!m_qmltypesFilesPaths.contains(
p))
106 m_qmltypesFilesPaths.append(
p);
113 return m_qmltypesFilesPaths;
118 return m_qmldirPaths;
123 return m_directoryPaths;
\inmodule QtCore\reentrant
static QDateTime fromMSecsSinceEpoch(qint64 msecs, const QTimeZone &timeZone)
DomType kind() const override
QList< Path > qmldirPaths() const
std::shared_ptr< ModuleIndex > makeCopy(DomItem &self) const
QList< int > minorVersions() const
Path canonicalPath(DomItem &) const override
QList< Path > directoryPaths() const
ModuleIndex(QString uri, int majorVersion, int derivedFrom=0, QDateTime lastDataUpdateAt=QDateTime::fromMSecsSinceEpoch(0, QTimeZone::UTC))
void addQmltypeFilePath(Path p)
QList< Path > qmltypesFilesPaths() const
Path pathFromOwner(DomItem &) const override
Path canonicalPath(DomItem &self) const override
ModuleScope(QString uri=QString(), const Version &version=Version())
DomType kind() const override
Path pathFromOwner() const
Path key(QString name) const
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Combined button and popup list for selecting options.
#define Q_DECLARE_TR_FUNCTIONS(context)