42 #ifndef QNETWORKREPLY_H 43 #define QNETWORKREPLY_H 45 #include <QtCore/QIODevice> 46 #include <QtCore/QString> 47 #include <QtCore/QVariant> 49 #include <QtNetwork/QNetworkRequest> 50 #include <QtNetwork/QNetworkAccessManager> 74 ConnectionRefusedError = 1,
81 UnknownNetworkError = 99,
84 ProxyConnectionRefusedError = 101,
89 UnknownProxyError = 199,
92 ContentAccessDenied = 201,
97 UnknownContentError = 299,
100 ProtocolUnknownError = 301,
102 ProtocolFailure = 399
106 virtual void abort() = 0;
109 virtual void close();
113 qint64 readBufferSize()
const;
114 virtual void setReadBufferSize(
qint64 size);
120 bool isFinished()
const;
121 bool isRunning()
const;
138 #ifndef QT_NO_OPENSSL 145 virtual void ignoreSslErrors();
148 void metaDataChanged();
151 #ifndef QT_NO_OPENSSL 155 void uploadProgress(
qint64 bytesSent,
qint64 bytesTotal);
156 void downloadProgress(
qint64 bytesReceived,
qint64 bytesTotal);
166 void setFinished(
bool);
167 void setUrl(
const QUrl &url);
The QVariant class acts like a union for the most common Qt data types.
#define QT_END_NAMESPACE
This macro expands to.
virtual void close()
First emits aboutToClose(), then closes the device and sets its OpenMode to NotOpen.
static QByteArray headerName(QNetworkRequest::KnownHeaders header)
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
virtual qint64 writeData(const char *data, qint64 len)=0
Writes up to maxSize bytes from data to the device.
The QByteArray class provides an array of bytes.
NetworkError
Indicates all possible error conditions found during the processing of the request.
Operation
Indicates the operation this reply is processing.
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
KnownHeaders
List of known header types that QNetworkRequest parses.
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
QPair< QByteArray, QByteArray > RawHeaderPair
RawHeaderPair is a QPair<QByteArray, QByteArray> where the first QByteArray is the header name and th...
#define QT_BEGIN_NAMESPACE
This macro expands to.
static const char * data(const QByteArray &arr)
The QNetworkAccessManager class allows the application to send network requests and receive replies...
The QAuthenticator class provides an authentication object.
virtual bool isSequential() const
Returns true if this device is sequential; otherwise returns false.
Attribute
Attribute codes for the QNetworkRequest and QNetworkReply.
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
The QSslConfiguration class holds the configuration and state of an SSL connection.
#define Q_DECLARE_PRIVATE(Class)
The QSslError class provides an SSL error.
The QIODevice class is the base interface class of all I/O devices in Qt.