Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
40
41 QQmlRefPointer<QQmlScriptData> scriptData() const;
42 bool isNative() const;
43
44protected:
45 void dataReceived(const SourceCodeData &) override;
47 void done() override;
48
49 QString stringAt(int index) const override;
50
51private:
52 void scriptImported(const QQmlRefPointer<QQmlScriptBlob> &blob, const QV4::CompiledData::Location &location, const QString &qualifier, const QString &nameSpace) override;
53 void initializeFromCompilationUnit(QQmlRefPointer<QV4::CompiledData::CompilationUnit> &&cu);
54 void initializeFromNative(const QV4::Value &value);
55
56 QList<ScriptReference> m_scripts;
57 QQmlRefPointer<QQmlScriptData> m_scriptData;
58 const bool m_isModule;
59};
60
62
63#endif // QQMLSCRIPTBLOB_P_H
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:129
\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