Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
30QT_BEGIN_NAMESPACE
31
32class QQmlTypeLoader;
33class QQmlEngineExtensionInterface;
34class QQmlExtensionInterface;
35
36namespace QQmlPrivate {
37struct CachedQmlUnit;
38}
39
41{
42 typedef QQmlTypeLoaderThread This;
43
44public:
45 QQmlTypeLoaderThread(QQmlTypeLoader *loader);
47#if QT_CONFIG(qml_network)
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
63private:
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)
77#endif // qml_network
78};
79
80QT_END_NAMESPACE
81
82#endif // QQMLTYPELOADERTHREAD_P_H
void callCompleted(const QQmlDataBlob::Ptr &b)
void loadAsync(const QQmlDataBlob::Ptr &b)
void drop(const QQmlDataBlob::Ptr &b)
void callDownloadProgressChanged(const QQmlDataBlob::Ptr &b, qreal p)
void initializeEngine(QQmlExtensionInterface *, const char *)
void loadWithCachedUnit(const QQmlDataBlob::Ptr &b, const QQmlPrivate::CachedQmlUnit *unit)
void load(const QQmlDataBlob::Ptr &b)
void loadWithStaticDataAsync(const QQmlDataBlob::Ptr &b, const QByteArray &)
void loadWithCachedUnitAsync(const QQmlDataBlob::Ptr &b, const QQmlPrivate::CachedQmlUnit *unit)
void loadWithStaticData(const QQmlDataBlob::Ptr &b, const QByteArray &)
void initializeEngine(QQmlEngineExtensionInterface *, const char *)
QQmlTypeLoaderThread(QQmlTypeLoader *loader)