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
qnetworkreply_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 QNETWORKREPLY_P_H
5#define QNETWORKREPLY_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 for the convenience
12// of the Network Access API. This header file may change from
13// version to version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtNetwork/private/qtnetworkglobal_p.h>
19#include "qnetworkrequest.h"
20#include "qnetworkrequest_p.h"
21#include "qnetworkreply.h"
22#include "QtCore/qpointer.h"
23#include <QtCore/QElapsedTimer>
24#include "private/qiodevice_p.h"
25
27
29{
30public:
31 enum State {
32 Idle, // The reply is idle.
33 Buffering, // The reply is buffering outgoing data.
34 Working, // The reply is uploading/downloading data.
35 Finished, // The reply has finished.
36 Aborted, // The reply has been aborted.
37 };
38
43 QPointer<QNetworkAccessManager> manager;
48 const static int progressSignalInterval;
52
54 { reply->d_func()->manager = manager; }
55
56 Q_DECLARE_PUBLIC(QNetworkReply)
57};
58
60
61#endif
\inmodule QtCore
The QNetworkAccessManager class allows the application to send network requests and receive replies.
Operation
Indicates the operation this reply is processing.
QPointer< QNetworkAccessManager > manager
QElapsedTimer downloadProgressSignalChoke
QNetworkRequest request
static const int progressSignalInterval
QNetworkAccessManager::Operation operation
QNetworkRequest originalRequest
static void setManager(QNetworkReply *reply, QNetworkAccessManager *manager)
QElapsedTimer uploadProgressSignalChoke
QNetworkReply::NetworkError errorCode
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
QNetworkAccessManager * manager() const
Returns the QNetworkAccessManager that was used to create this QNetworkReply object.
NetworkError
Indicates all possible error conditions found during the processing of the request.
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
long long qint64
Definition qtypes.h:60
QNetworkReply * reply