Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qqmltypeloaderthread_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 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
// Qt-Security score:significant
4
5
#
ifndef
QQMLTYPELOADERTHREAD_P_H
6
#
define
QQMLTYPELOADERTHREAD_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
private
/
qqmlthread_p
.
h
>
20
#
include
<
private
/
qv4compileddata_p
.
h
>
21
#
include
<
private
/
qqmldatablob_p
.
h
>
22
23
#
include
<
QtQml
/
qtqmlglobal
.
h
>
24
25
#
if
QT_CONFIG
(
qml_network
)
26
#
include
<
private
/
qqmltypeloadernetworkreplyproxy_p
.
h
>
27
#
include
<
QtNetwork
/
qnetworkaccessmanager
.
h
>
28
#
endif
29
30
QT_BEGIN_NAMESPACE
31
32
class
QQmlTypeLoader;
33
class
QQmlEngineExtensionInterface;
34
class
QQmlExtensionInterface;
35
36
namespace
QQmlPrivate
{
37
struct
CachedQmlUnit
;
38
}
39
40
class
QQmlTypeLoaderThread
:
public
QQmlThread
41
{
42
typedef
QQmlTypeLoaderThread
This;
43
44
public
:
45
QQmlTypeLoaderThread
(QQmlTypeLoader *loader);
46
~
QQmlTypeLoaderThread
();
47
#
if
QT_CONFIG
(
qml_network
)
48
QNetworkAccessManager
*
networkAccessManager
()
const
;
49
QQmlTypeLoaderNetworkReplyProxy
*
networkReplyProxy
()
const
;
50
#
endif
// qml_network
51
void
load
(
const
QQmlDataBlob::Ptr &b);
52
void
loadAsync
(
const
QQmlDataBlob::Ptr &b);
53
void
loadWithStaticData
(
const
QQmlDataBlob::Ptr &b,
const
QByteArray &);
54
void
loadWithStaticDataAsync
(
const
QQmlDataBlob::Ptr &b,
const
QByteArray &);
55
void
loadWithCachedUnit
(
const
QQmlDataBlob::Ptr &b,
const
QQmlPrivate
::
CachedQmlUnit
*unit);
56
void
loadWithCachedUnitAsync
(
const
QQmlDataBlob::Ptr &b,
const
QQmlPrivate
::
CachedQmlUnit
*unit);
57
void
callCompleted
(
const
QQmlDataBlob::Ptr &b);
58
void
callDownloadProgressChanged
(
const
QQmlDataBlob::Ptr &b, qreal p);
59
void
initializeEngine
(QQmlExtensionInterface *,
const
char
*);
60
void
initializeEngine
(QQmlEngineExtensionInterface *,
const
char
*);
61
void
drop
(
const
QQmlDataBlob::Ptr &b);
62
63
private
:
64
void
loadThread(
const
QQmlDataBlob::Ptr &b);
65
void
loadWithStaticDataThread(
const
QQmlDataBlob::Ptr &b,
const
QByteArray &);
66
void
loadWithCachedUnitThread(
const
QQmlDataBlob::Ptr &b,
const
QQmlPrivate
::
CachedQmlUnit
*unit);
67
void
callCompletedMain(
const
QQmlDataBlob::Ptr &b);
68
void
callDownloadProgressChangedMain(
const
QQmlDataBlob::Ptr &b, qreal p);
69
void
initializeExtensionMain(QQmlExtensionInterface *iface,
const
char
*uri);
70
void
initializeEngineExtensionMain(QQmlEngineExtensionInterface *iface,
const
char
*uri);
71
void
dropThread(
const
QQmlDataBlob::Ptr &b);
72
73
QQmlTypeLoader *m_loader;
74
#
if
QT_CONFIG
(
qml_network
)
75
mutable
QNetworkAccessManager
*
m_networkAccessManager
=
nullptr
;
76
mutable
QQmlTypeLoaderNetworkReplyProxy
*
m_networkReplyProxy
=
nullptr
;
77
#
endif
// qml_network
78
};
79
80
QT_END_NAMESPACE
81
82
#
endif
// QQMLTYPELOADERTHREAD_P_H
QQmlTypeLoaderThread
Definition
qqmltypeloaderthread_p.h:41
QQmlTypeLoaderThread::callCompleted
void callCompleted(const QQmlDataBlob::Ptr &b)
Definition
qqmltypeloaderthread.cpp:86
QQmlTypeLoaderThread::loadAsync
void loadAsync(const QQmlDataBlob::Ptr &b)
Definition
qqmltypeloaderthread.cpp:61
QQmlTypeLoaderThread::drop
void drop(const QQmlDataBlob::Ptr &b)
Definition
qqmltypeloaderthread.cpp:108
QQmlTypeLoaderThread::callDownloadProgressChanged
void callDownloadProgressChanged(const QQmlDataBlob::Ptr &b, qreal p)
Definition
qqmltypeloaderthread.cpp:91
QQmlTypeLoaderThread::initializeEngine
void initializeEngine(QQmlExtensionInterface *, const char *)
Definition
qqmltypeloaderthread.cpp:96
QQmlTypeLoaderThread::loadWithCachedUnit
void loadWithCachedUnit(const QQmlDataBlob::Ptr &b, const QQmlPrivate::CachedQmlUnit *unit)
Definition
qqmltypeloaderthread.cpp:76
QQmlTypeLoaderThread::load
void load(const QQmlDataBlob::Ptr &b)
Definition
qqmltypeloaderthread.cpp:56
QQmlTypeLoaderThread::loadWithStaticDataAsync
void loadWithStaticDataAsync(const QQmlDataBlob::Ptr &b, const QByteArray &)
Definition
qqmltypeloaderthread.cpp:71
QQmlTypeLoaderThread::loadWithCachedUnitAsync
void loadWithCachedUnitAsync(const QQmlDataBlob::Ptr &b, const QQmlPrivate::CachedQmlUnit *unit)
Definition
qqmltypeloaderthread.cpp:81
QQmlTypeLoaderThread::~QQmlTypeLoaderThread
~QQmlTypeLoaderThread()
Definition
qqmltypeloaderthread.cpp:20
QQmlTypeLoaderThread::loadWithStaticData
void loadWithStaticData(const QQmlDataBlob::Ptr &b, const QByteArray &)
Definition
qqmltypeloaderthread.cpp:66
QQmlTypeLoaderThread::initializeEngine
void initializeEngine(QQmlEngineExtensionInterface *, const char *)
Definition
qqmltypeloaderthread.cpp:102
QQmlTypeLoaderThread::QQmlTypeLoaderThread
QQmlTypeLoaderThread(QQmlTypeLoader *loader)
Definition
qqmltypeloaderthread.cpp:15
QQmlPrivate
Definition
qv4compileddata_p.h:67
QQmlPrivate::CachedQmlUnit
Definition
qqmlprivate.h:868
qtdeclarative
src
qml
qml
qqmltypeloaderthread_p.h
Generated on
for Qt by
1.18.0