4#ifndef QQMLTYPELOADER_P_H
5#define QQMLTYPELOADER_P_H
18#include <private/qqmldatablob_p.h>
19#include <private/qqmlimport_p.h>
20#include <private/qqmlmetatype_p.h>
22#include <QtQml/qtqmlglobal.h>
23#include <QtQml/qqmlerror.h>
25#include <QtCore/qcache.h>
26#include <QtCore/qmutex.h>
75 QQmlImports::ImportFlags
flags);
100 bool loadImportDependencies(
101 const PendingImportPtr ¤tImport,
const QString &qmldirUri,
105 bool loadDependentImports(
112 bool readCacheFile()
const;
113 bool writeCacheFile()
const;
142 void setQmldirContent(
const QString &filePath,
const QString &content);
147 bool isTypeLoaded(
const QUrl &
url)
const;
148 bool isScriptLoaded(
const QUrl &
url)
const;
150 void lock() { m_mutex.lock(); }
162#if !QT_CONFIG(qml_debug)
166 QQmlProfiler *profiler()
const {
return m_profiler.data(); }
174#if QT_CONFIG(qml_network)
178 void shutdownThread();
183#if QT_CONFIG(qml_network)
205#if QT_CONFIG(qml_debug)
209#if QT_CONFIG(qml_network)
210 NetworkReplies m_networkReplies;
213 int m_typeCacheTrimThreshold;
220 template<
typename Loader>
222 void updateTypeCacheTrimThreshold();
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
The QQmlDataBlob encapsulates a data request that can be issued to a QQmlTypeLoader.
Type
This enum describes the type of the data blob.
The QQmlEngine class provides an environment for instantiating QML components.
The QQmlImportDatabase class manages the QML imports for a QQmlEngine.
The QQmlImports class encapsulates one QML document's import statements.
std::shared_ptr< PendingImport > PendingImportPtr
virtual void scriptImported(const QQmlRefPointer< QQmlScriptBlob > &, const QV4::CompiledData::Location &, const QString &, const QString &)
virtual QString stringAt(int) const
const QQmlImports * imports() const
void setCachedUnitStatus(QQmlMetaType::CachedUnitLookupError status)
QVector< QQmlRefPointer< QQmlQmldirData > > m_qmldirs
QVector< PendingImportPtr > m_unresolvedImports
QQmlRefPointer< QQmlImports > m_importCache
The QQmlTypeLoader class abstracts loading files and their dependencies over the network.
quintptr profiler() const
ChecksumCache * checksumCache()
const ChecksumCache * checksumCache() const
void setProfiler(quintptr)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_DECLARE_TR_FUNCTIONS(context)
static Q_CONSTINIT QBasicAtomicInt isDebugging
static QT_BEGIN_NAMESPACE bool fileExists(const wchar_t *fileName)
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLsizei const GLchar *const * path
static void normalize(double &x, double &y)
static QString absoluteFilePath(const Options *options, const QString &relativeFileName)
QUrl url("example.com")
[constructor-url-reference]
mimeData setData("text/csv", csvData)
QQmlImports::ImportFlags flags
QV4::CompiledData::Location location