42 #ifndef QNETWORKREPLYIMPL_P_H 43 #define QNETWORKREPLYIMPL_P_H 60 #include "QtCore/qmap.h" 61 #include "QtCore/qqueue.h" 62 #include "QtCore/qbuffer.h" 63 #include "private/qringbuffer_p.h" 64 #include "private/qbytedata_p.h" 65 #include <QSharedPointer> 103 #ifndef QT_NO_BEARERMANAGEMENT 133 void _q_startOperation();
134 void _q_sourceReadyRead();
135 void _q_sourceReadChannelFinished();
136 void _q_copyReadyRead();
137 void _q_copyReadChannelFinished();
138 void _q_bufferOutgoingData();
139 void _q_bufferOutgoingDataFinished();
140 #ifndef QT_NO_BEARERMANAGEMENT 141 void _q_networkSessionConnected();
142 void _q_networkSessionFailed();
144 void _q_cacheDestroyed();
149 void pauseNotificationHandling();
150 void resumeNotificationHandling();
152 void handleNotifications();
154 void completeCacheSave();
157 void setCachingEnabled(
bool enable);
158 bool isCachingEnabled()
const;
159 void consume(
qint64 count);
160 void emitUploadProgress(
qint64 bytesSent,
qint64 bytesTotal);
161 qint64 nextDownstreamBlockSize()
const;
163 void initCacheSaveDevice();
164 void appendDownstreamDataSignalEmissions();
171 void appendDownstreamDataDownloadBuffer(
qint64,
qint64);
176 void redirectionRequested(
const QUrl &target);
185 bool migrateBackend();
194 #ifndef QT_NO_NETWORKPROXY 222 #ifndef QT_NO_BEARERMANAGEMENT
void sslErrors(const QList< QSslError > &errors)
This signal is emitted if the SSL/TLS session encountered errors during the set up, including certificate verification errors.
virtual qint64 size() const
For open random-access devices, this function returns the size of the device.
NetworkError error() const
Returns the error that was found during the processing of this request.
QQueue< InternalNotifications > NotificationQueue
#define QT_END_NAMESPACE
This macro expands to.
virtual qint64 readData(char *data, qint64 maxlen)
virtual void ignoreSslErrors()
If this function is called, SSL errors related to network connection will be ignored, including certificate validation errors.
QNetworkProxy lastProxyAuthentication
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
The QByteArray class provides an array of bytes.
QString errorString() const
Returns a human-readable description of the last device error that occurred.
NetworkError
Indicates all possible error conditions found during the processing of the request.
Operation
Indicates the operation this reply is processing.
virtual void setReadBufferSize(qint64 size)
Sets the size of the read buffer to be size bytes.
QList< QNetworkProxy > proxyList
#define Q_PRIVATE_SLOT(d, signature)
QNetworkAccessBackend * backend
NotificationQueue pendingNotifications
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
QSharedPointer< char > downloadBufferPointer
The QObject class is the base class of all Qt objects.
virtual Q_INVOKABLE void ignoreSslErrorsImplementation(const QList< QSslError > &errors)
QNetworkRequest request() const
Returns the request that was posted for this reply.
qint64 readData(char *, qint64)
Reads up to maxSize bytes from the device into data, and returns the number of bytes read or -1 if an...
bool notificationHandlingPaused
The QNetworkProxy class provides a network layer proxy.
#define QT_BEGIN_NAMESPACE
This macro expands to.
qint64 downloadBufferReadPosition
qint64 preMigrationDownloaded
static const char * data(const QByteArray &arr)
qint64 downloadBufferCurrentSize
The State element defines configurations of objects and properties.
QIODevice * cacheSaveDevice
QSharedPointer< QRingBuffer > outgoingDataBuffer
void finished()
This signal is emitted when the reply has finished processing.
#define Q_DECLARE_PUBLIC(Class)
virtual void close()
Closes this device for reading.
Q_INVOKABLE QSslConfiguration sslConfigurationImplementation() const
QObject * parent() const
Returns a pointer to the parent object.
void metaDataChanged()
This signal is emitted whenever the metadata in this reply changes.
QUrl urlForLastAuthentication
QNetworkReplyImpl(QObject *parent=0)
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
Q_INVOKABLE void setSslConfigurationImplementation(const QSslConfiguration &configuration)
virtual void abort()
Aborts the operation immediately and close down any network connections still open.
The QSslConfiguration class holds the configuration and state of an SSL connection.
#define Q_DECLARE_PRIVATE(Class)
QByteDataBuffer readBuffer
The QIODevice class is the base interface class of all I/O devices in Qt.
The QEvent class is the base class of all event classes.
qint64 lastBytesDownloaded
virtual qint64 bytesAvailable() const
Returns the number of bytes available for reading with QIODevice::read().
virtual bool canReadLine() const
Returns true if a complete line of data can be read from the device; otherwise returns false...
qint64 downloadBufferMaximumSize
void abort()
Aborts the operation immediately and close down any network connections still open.
virtual bool event(QEvent *)
The QAbstractNetworkCache class provides the interface for cache implementations. ...