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
24
25QT_BEGIN_NAMESPACE
26
27class QNetworkReply;
28class 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.
36{
38public:
40
41public Q_SLOTS:
42 void finished();
44 void manualFinished(QNetworkReply*);
45
46private:
47 QQmlTypeLoader *l;
48};
49
50QT_END_NAMESPACE
51
52#endif // QQMLTYPELOADERNETWORKREPLYPROXY_P_H
QT_REQUIRE_CONFIG(qml_network)