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
qqmltypeloadernetworkreplyproxy.cpp
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
4#include <private/qqmltypeloadernetworkreplyproxy_p.h>
5#include <private/qqmltypeloader_p.h>
6
8
13
15{
17 Q_ASSERT(qobject_cast<QNetworkReply *>(sender()));
18 QNetworkReply *reply = static_cast<QNetworkReply *>(sender());
19 l->networkReplyFinished(reply);
20}
21
23{
25 Q_ASSERT(qobject_cast<QNetworkReply *>(sender()));
26 QNetworkReply *reply = static_cast<QNetworkReply *>(sender());
27 l->networkReplyProgress(reply, bytesReceived, bytesTotal);
28}
29
30// This function is for when you want to shortcut the signals and call directly
32{
33 qint64 replySize = reply->size();
34 l->networkReplyProgress(reply, replySize, replySize);
35 l->networkReplyFinished(reply);
36}
37
39
40#include "moc_qqmltypeloadernetworkreplyproxy_p.cpp"
virtual qint64 size() const
For open random-access devices, this function returns the size of the device.
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
QObject * sender() const
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; othe...
Definition qobject.cpp:2658
The QQmlTypeLoader class abstracts loading files and their dependencies over the network.
Combined button and popup list for selecting options.
#define Q_ASSERT(cond)
Definition qrandom.cpp:47
long long qint64
Definition qtypes.h:60
QNetworkReply * reply