Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmlscriptdata_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 QQMLSCRIPTDATA_P_H
5#define QQMLSCRIPTDATA_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/qqmlrefcount_p.h>
19#include <private/qqmlscriptblob_p.h>
20#include <private/qv4value_p.h>
21#include <private/qv4persistent_p.h>
22#include <private/qv4executablecompilationunit_p.h>
23
24#include <QtCore/qurl.h>
25
27
29class QQmlContextData;
30
31class Q_AUTOTEST_EXPORT QQmlScriptData final : public QQmlRefCounted<QQmlScriptData>
32{
33private:
34 friend class QQmlTypeLoader;
35
37
38public:
43
44 QV4::ReturnedValue scriptValueForContext(const QQmlRefPointer<QQmlContextData> &parentCtxt);
45
47
48private:
49 friend class QQmlScriptBlob;
50
51 QQmlRefPointer<QQmlContextData> qmlContextDataForContext(
52 const QQmlRefPointer<QQmlContextData> &parentQmlContextData);
53
54 bool m_loaded;
57};
58
60
61#endif // QQMLSCRIPTDATA_P_H
Definition qlist.h:74
QVector< QQmlRefPointer< QQmlScriptBlob > > scripts
QQmlRefPointer< QV4::ExecutableCompilationUnit > compilationUnit() const
QQmlRefPointer< QQmlTypeNameCache > typeNameCache
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.
quint64 ReturnedValue
#define Q_AUTOTEST_EXPORT