42 #ifndef QNETWORKACCESSBACKEND_P_H 43 #define QNETWORKACCESSBACKEND_P_H 57 #include "QtCore/qobject.h" 112 virtual void open() = 0;
113 virtual bool start();
133 #ifndef QT_NO_NETWORKPROXY 195 #ifndef QT_NO_NETWORKPROXY The QVariant class acts like a union for the most common Qt data types.
virtual void emitReadBufferFreed(qint64 size)
virtual void setSslConfiguration(const QSslConfiguration &configuration)
#define QT_END_NAMESPACE
This macro expands to.
void setAttribute(QNetworkRequest::Attribute code, const QVariant &value)
virtual bool needsResetableUploadData()
static QByteArray headerName(QNetworkRequest::KnownHeaders header)
virtual void setReadBufferSize(qint64 size)
QVariant header(QNetworkRequest::KnownHeaders header) const
virtual void closeDownstreamChannel()=0
The QByteArray class provides an array of bytes.
static Expression::Ptr create(Expression *const expr, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo)
virtual ~QNetworkAccessBackend()
NetworkError
Indicates all possible error conditions found during the processing of the request.
Operation
Indicates the operation this reply is processing.
virtual void fetchSslConfiguration(QSslConfiguration &configuration) const
virtual bool canResume() const
virtual QNetworkCacheMetaData fetchCacheMetaData(const QNetworkCacheMetaData &metaData) const
virtual void downstreamReadyWrite()
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
void writeDownstreamDataDownloadBuffer(qint64, qint64)
The QObject class is the base class of all Qt objects.
KnownHeaders
List of known header types that QNetworkRequest parses.
virtual bool processRequestSynchronously()
qint64 nextDownstreamBlockSize() const
bool hasRawHeader(const QByteArray &headerName) const
QNetworkAccessManagerPrivate * manager
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
The QNetworkProxy class provides a network layer proxy.
void setSynchronous(bool sync)
The QUrlInfo class stores information about URLs.
QNonContiguousByteDevice * createUploadByteDevice()
#define QT_BEGIN_NAMESPACE
This macro expands to.
QNetworkReplyImplPrivate * reply
virtual void setDownstreamLimited(bool b)
void emitReplyUploadProgress(qint64 bytesSent, qint64 bytesTotal)
void setRawHeader(const QByteArray &headerName, const QByteArray &value)
QList< QNetworkProxy > proxyList() const
static const char * data(const QByteArray &arr)
void setHeader(QNetworkRequest::KnownHeaders header, const QVariant &value)
char * getDownloadBuffer(qint64)
QNetworkAccessManager::Operation operation() const
The QNetworkAccessManager class allows the application to send network requests and receive replies...
virtual void ignoreSslErrors()
QByteArray rawHeader(const QByteArray &headerName) const
The QAuthenticator class provides an authentication object.
QAbstractNetworkCache * networkCache() const
Attribute
Attribute codes for the QNetworkRequest and QNetworkReply.
The QNetworkProxyQuery class is used to query the proxy settings for a socket.
QSharedPointer< QNonContiguousByteDevice > uploadByteDevice
void authenticationRequired(QAuthenticator *auth)
void error(QNetworkReply::NetworkError code, const QString &errorString)
QNetworkRequest request() const
void setUrl(const QUrl &url)
void writeDownstreamData(QByteDataBuffer &list)
QVariant attribute(QNetworkRequest::Attribute code) const
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
bool isCachingEnabled() const
virtual void setResumeOffset(quint64 offset)
void setCachingEnabled(bool enable)
A QNonContiguousByteDevice is a representation of a file, array or buffer that allows access with a r...
The QSslConfiguration class holds the configuration and state of an SSL connection.
virtual void copyFinished(QIODevice *)
The QIODevice class is the base interface class of all I/O devices in Qt.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QList< QByteArray > rawHeaderList() const
virtual bool start()
Starts the backend.
void redirectionRequested(const QUrl &destination)
void sslErrors(const QList< QSslError > &errors)
void proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *auth)
The QAbstractNetworkCache class provides the interface for cache implementations. ...