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
4#ifndef QQMLTYPELOADERTHREAD_P_H
5#define QQMLTYPELOADERTHREAD_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/qqmlthread_p.h>
19#include <private/qv4compileddata_p.h>
20#include <private/qqmldatablob_p.h>
21
22#include <QtQml/qtqmlglobal.h>
23
24#if QT_CONFIG(qml_network)
25#include <private/qqmltypeloadernetworkreplyproxy_p.h>
26#include <QtNetwork/qnetworkaccessmanager.h>
27#endif
28
29QT_BEGIN_NAMESPACE
30
31class QQmlTypeLoader;
32class QQmlEngineExtensionInterface;
33class QQmlExtensionInterface;
34
35namespace QQmlPrivate {
36struct CachedQmlUnit;
37}
38
40{
41 typedef QQmlTypeLoaderThread This;
42
43public:
44 QQmlTypeLoaderThread(QQmlTypeLoader *loader);
46#if QT_CONFIG(qml_network)
49#endif // qml_network
50 void load(const QQmlDataBlob::Ptr &b);
51 void loadAsync(const QQmlDataBlob::Ptr &b);
52 void loadWithStaticData(const QQmlDataBlob::Ptr &b, const QByteArray &);
53 void loadWithStaticDataAsync(const QQmlDataBlob::Ptr &b, const QByteArray &);
54 void loadWithCachedUnit(const QQmlDataBlob::Ptr &b, const QQmlPrivate::CachedQmlUnit *unit);
55 void loadWithCachedUnitAsync(const QQmlDataBlob::Ptr &b, const QQmlPrivate::CachedQmlUnit *unit);
56 void callCompleted(const QQmlDataBlob::Ptr &b);
57 void callDownloadProgressChanged(const QQmlDataBlob::Ptr &b, qreal p);
58 void initializeEngine(QQmlExtensionInterface *, const char *);
59 void initializeEngine(QQmlEngineExtensionInterface *, const char *);
60 void drop(const QQmlDataBlob::Ptr &b);
61
62private:
63 void loadThread(const QQmlDataBlob::Ptr &b);
64 void loadWithStaticDataThread(const QQmlDataBlob::Ptr &b, const QByteArray &);
65 void loadWithCachedUnitThread(const QQmlDataBlob::Ptr &b, const QQmlPrivate::CachedQmlUnit *unit);
66 void callCompletedMain(const QQmlDataBlob::Ptr &b);
67 void callDownloadProgressChangedMain(const QQmlDataBlob::Ptr &b, qreal p);
68 void initializeExtensionMain(QQmlExtensionInterface *iface, const char *uri);
69 void initializeEngineExtensionMain(QQmlEngineExtensionInterface *iface, const char *uri);
70 void dropThread(const QQmlDataBlob::Ptr &b);
71
72 QQmlTypeLoader *m_loader;
73#if QT_CONFIG(qml_network)
76#endif // qml_network
77};
78
79QT_END_NAMESPACE
80
81#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)