Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmlscriptblob_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQMLSCRIPTBLOB_P_H
5#define QQMLSCRIPTBLOB_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qqmltypeloader_p.h>
19
21
22class QQmlScriptData;
24{
25private:
26 friend class QQmlTypeLoader;
27
29
30public:
31 ~QQmlScriptBlob() override;
32
34 {
39 };
40
41 QQmlRefPointer<QQmlScriptData> scriptData() const;
42
43protected:
44 void dataReceived(const SourceCodeData &) override;
46 void done() override;
47
48 QString stringAt(int index) const override;
49
50private:
51 void scriptImported(const QQmlRefPointer<QQmlScriptBlob> &blob, const QV4::CompiledData::Location &location, const QString &qualifier, const QString &nameSpace) override;
52 void initializeFromCompilationUnit(const QQmlRefPointer<QV4::ExecutableCompilationUnit> &unit);
53 void initializeFromNative(const QV4::Value &value);
54
55 QList<ScriptReference> m_scripts;
57 const bool m_isModule;
58};
59
61
62#endif // QQMLSCRIPTBLOB_P_H
Definition qlist.h:74
virtual void dataReceived(const SourceCodeData &)=0
Invoked when data for the blob is received.
virtual void initializeFromCachedUnit(const QQmlPrivate::CachedQmlUnit *)=0
virtual void done()
Invoked once data has either been received or a network error occurred, and all dependencies are comp...
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
Definition qstring.h:127
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLint location
GLuint index
[2]
#define Q_AUTOTEST_EXPORT
QQmlRefPointer< QQmlScriptBlob > script
QV4::CompiledData::Location location