4#ifndef QQMLTYPEDATA_P_H
5#define QQMLTYPEDATA_P_H
18#include <private/qqmltypeloader_p.h>
19#include <private/qv4executablecompilationunit_p.h>
35 bool selfReference =
false;
52 template<
typename Container>
53 void setCompileUnit(
const Container &container);
68 void registerCallback(TypeDataCallback *);
69 void unregisterCallback(TypeDataCallback *);
86 bool tryLoadFromDiskCache();
87 bool loadFromSource();
89 void continueLoadFromIR();
101 TypeReference &
ref,
int lineNumber = -1,
int columnNumber = -1,
102 bool reportErrors =
true,
104 bool *typeRecursionDetected =
nullptr);
110 SourceCodeData m_backupSourceCode;
123 bool m_typesResolved:1;
133 ExecutableCompilationUnitPtr m_compiledData;
137 bool m_implicitImportLoaded;
138 bool loadImplicitImport();
virtual void dataReceived(const SourceCodeData &)=0
Invoked when data for the blob is received.
virtual void initializeFromCachedUnit(const QQmlPrivate::CachedQmlUnit *)=0
virtual void allDependenciesDone()
Called when all blobs waited for have completed.
virtual void completed()
Invoked on the main thread sometime after done() was called on the load thread.
virtual void done()
Invoked once data has either been received or a network error occurred, and all dependencies are comp...
virtual void downloadProgressChanged(qreal)
Called when the download progress of this blob changes.
The QQmlError class encapsulates a QML error.
QByteArray typeClassName() const
SourceCodeData backupSourceCode() const
virtual void scriptImported(const QQmlRefPointer< QQmlScriptBlob > &, const QV4::CompiledData::Location &, const QString &, const QString &)
virtual QString stringAt(int) const
The QQmlTypeLoader class abstracts loading files and their dependencies over the network.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
std::function< QByteArray()> DependentTypesHasher
#define Q_DECLARE_TR_FUNCTIONS(context)
#define Q_AUTOTEST_EXPORT
QQmlRefPointer< QQmlScriptBlob > script
QV4::CompiledData::Location location
virtual void typeDataProgress(QQmlTypeData *, qreal)
virtual void typeDataReady(QQmlTypeData *)
QQmlRefPointer< QQmlTypeData > typeData
QV4::CompiledData::Location location