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
qqmltypeloadernetworkreplyproxy_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
// Qt-Security score:significant
4
5
#
ifndef
QQMLTYPELOADERNETWORKREPLYPROXY_P_H
6
#
define
QQMLTYPELOADERNETWORKREPLYPROXY_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
<
QtQml
/
qtqmlglobal
.
h
>
20
#
include
<
QtCore
/
qobject
.
h
>
21
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
22
23
QT_REQUIRE_CONFIG
(
qml_network
);
24
25
QT_BEGIN_NAMESPACE
26
27
class
QNetworkReply;
28
class
QQmlTypeLoader;
29
30
// This is a lame object that we need to ensure that slots connected to
31
// QNetworkReply get called in the correct thread (the loader thread).
32
// As QQmlTypeLoader lives in the main thread, and we can't use
33
// Qt::DirectConnection connections from a QNetworkReply (because then
34
// sender() wont work), we need to insert this object in the middle.
35
class
QQmlTypeLoaderNetworkReplyProxy
:
public
QObject
36
{
37
Q_OBJECT
38
public
:
39
QQmlTypeLoaderNetworkReplyProxy
(
QQmlTypeLoader
*
l
,
QObject
*
parent
);
40
41
public
Q_SLOTS
:
42
void
finished
();
43
void
downloadProgress
(
qint64
,
qint64
);
44
void
manualFinished
(QNetworkReply*);
45
46
private
:
47
QQmlTypeLoader *l;
48
};
49
50
QT_END_NAMESPACE
51
52
#
endif
// QQMLTYPELOADERNETWORKREPLYPROXY_P_H
QQmlTypeLoaderNetworkReplyProxy
Definition
qqmltypeloadernetworkreplyproxy_p.h:36
QQmlTypeLoaderNetworkReplyProxy::manualFinished
void manualFinished(QNetworkReply *)
Definition
qqmltypeloadernetworkreplyproxy.cpp:33
QQmlTypeLoaderNetworkReplyProxy::downloadProgress
void downloadProgress(qint64, qint64)
Definition
qqmltypeloadernetworkreplyproxy.cpp:24
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(qml_network)
qtdeclarative
src
qml
qml
qqmltypeloadernetworkreplyproxy_p.h
Generated on
for Qt by
1.16.1