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
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
30
31class QQmlTypeLoader;
34
35namespace QQmlPrivate {
36struct CachedQmlUnit;
37}
38
40{
42
43public:
45#if QT_CONFIG(qml_network)
46 QNetworkAccessManager *networkAccessManager() const;
47 QQmlTypeLoaderNetworkReplyProxy *networkReplyProxy() const;
48#endif // qml_network
49 void load(const QQmlDataBlob::Ptr &b);
50 void loadAsync(const QQmlDataBlob::Ptr &b);
57 void initializeEngine(QQmlExtensionInterface *, const char *);
59
60private:
61 void loadThread(const QQmlDataBlob::Ptr &b);
62 void loadWithStaticDataThread(const QQmlDataBlob::Ptr &b, const QByteArray &);
63 void loadWithCachedUnitThread(const QQmlDataBlob::Ptr &b, const QQmlPrivate::CachedQmlUnit *unit);
64 void callCompletedMain(const QQmlDataBlob::Ptr &b);
65 void callDownloadProgressChangedMain(const QQmlDataBlob::Ptr &b, qreal p);
66 void initializeExtensionMain(QQmlExtensionInterface *iface, const char *uri);
67 void initializeEngineExtensionMain(QQmlEngineExtensionInterface *iface, const char *uri);
68
69 QQmlTypeLoader *m_loader;
70#if QT_CONFIG(qml_network)
71 mutable QNetworkAccessManager *m_networkAccessManager = nullptr;
72 mutable QQmlTypeLoaderNetworkReplyProxy *m_networkReplyProxy = nullptr;
73#endif // qml_network
74};
75
77
78#endif // QQMLTYPELOADERTHREAD_P_H
\inmodule QtCore
Definition qbytearray.h:57
The QNetworkAccessManager class allows the application to send network requests and receive replies.
void callCompleted(const QQmlDataBlob::Ptr &b)
void loadAsync(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 &)
QQmlTypeLoaderThread(QQmlTypeLoader *loader)
The QQmlTypeLoader class abstracts loading files and their dependencies over the network.
Combined button and popup list for selecting options.
GLboolean GLboolean GLboolean b
GLfloat GLfloat p
[1]
double qreal
Definition qtypes.h:187