QNetworkReply

#include <QtNetwork/QNetworkReply>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QNetworkReply


Overview

Inheritance

QIODevice
QNetworkReply

Public Functions Index

~QNetworkReply ()
voidabort ()=0
QVariantattribute (QNetworkRequest::Attribute code) const
virtual voidclose ()
NetworkErrorerror () const
boolhasRawHeader (const QByteArray &headerName) const
QVariantheader (QNetworkRequest::KnownHeaders header) const
voidignoreSslErrors (const QList< QSslError > &errors)
boolisFinished () const
boolisRunning () const
virtual boolisSequential () const
QNetworkAccessManager *manager () const
QNetworkAccessManager::Operationoperation () const
QByteArrayrawHeader (const QByteArray &headerName) const
QList< QByteArray >rawHeaderList () const
const QList< RawHeaderPair > &rawHeaderPairs () const
qint64readBufferSize () const
QNetworkRequestrequest () const
virtual voidsetReadBufferSize (qint64 size)
voidsetSslConfiguration (const QSslConfiguration &configuration)
QSslConfigurationsslConfiguration () const
QUrlurl () const
virtual boolatEnd () const Inherited
virtual qint64bytesAvailable () const Inherited
virtual qint64bytesToWrite () const Inherited
virtual boolcanReadLine () const Inherited
QStringerrorString () const Inherited
boolgetChar (char *c)Inherited
boolisOpen () const Inherited
boolisReadable () const Inherited
boolisTextModeEnabled () const Inherited
boolisWritable () const Inherited
virtual boolopen (OpenMode mode)Inherited
OpenModeopenMode () const Inherited
qint64peek (char *data, qint64 maxlen)Inherited
QByteArraypeek (qint64 maxlen)Inherited
virtual qint64pos () const Inherited
boolputChar (char c)Inherited
QIODevice ()Inherited
QIODevice (QObject *parent)Inherited
qint64read (char *data, qint64 maxlen)Inherited
QByteArrayread (qint64 maxlen)Inherited
QByteArrayreadAll ()Inherited
qint64readLine (char *data, qint64 maxlen)Inherited
QByteArrayreadLine (qint64 maxlen=0)Inherited
virtual boolreset ()Inherited
virtual boolseek (qint64 pos)Inherited
voidsetTextModeEnabled (bool enabled)Inherited
virtual qint64size () const Inherited
voidungetChar (char c)Inherited
virtual boolwaitForBytesWritten (int msecs)Inherited
virtual boolwaitForReadyRead (int msecs)Inherited
qint64write (const char *data, qint64 len)Inherited
qint64write (const char *data)Inherited
qint64write (const QByteArray &data)Inherited

Protected Functions Index

QNetworkReply (QObject *parent=0)
QNetworkReply (QNetworkReplyPrivate &dd, QObject *parent)
voidsetAttribute (QNetworkRequest::Attribute code, const QVariant &value)
voidsetError (NetworkError errorCode, const QString &errorString)
voidsetFinished (bool)
voidsetHeader (QNetworkRequest::KnownHeaders header, const QVariant &value)
voidsetOperation (QNetworkAccessManager::Operation operation)
voidsetRawHeader (const QByteArray &headerName, const QByteArray &value)
voidsetRequest (const QNetworkRequest &request)
voidsetUrl (const QUrl &url)
virtual qint64writeData (const char *data, qint64 len)
QIODevice (QIODevicePrivate &dd, QObject *parent=0)Inherited
qint64readData (char *data, qint64 maxlen)=0Inherited
virtual qint64readLineData (char *data, qint64 maxlen)Inherited
voidsetErrorString (const QString &errorString)Inherited
voidsetOpenMode (OpenMode openMode)Inherited

Public Slots Index

virtual voidignoreSslErrors ()

Signals Index

voiddownloadProgress (qint64 bytesReceived, qint64 bytesTotal)
voiderror (QNetworkReply::NetworkError)
voidfinished ()
voidmetaDataChanged ()
voidsslErrors (const QList< QSslError > &errors)
voiduploadProgress (qint64 bytesSent, qint64 bytesTotal)
voidaboutToClose ()Inherited
voidbytesWritten (qint64 bytes)Inherited
voidreadChannelFinished ()Inherited
voidreadyRead ()Inherited

Public Types

NetworkError

NoError 0
ConnectionRefusedError 1
RemoteHostClosedError
HostNotFoundError
TimeoutError
OperationCanceledError
SslHandshakeFailedError
TemporaryNetworkFailureError
UnknownNetworkError 99
ProxyConnectionRefusedError 101
ProxyConnectionClosedError
ProxyNotFoundError
ProxyTimeoutError
ProxyAuthenticationRequiredError
UnknownProxyError 199
ContentAccessDenied 201
ContentOperationNotPermittedError
ContentNotFoundError
AuthenticationRequiredError
ContentReSendError
UnknownContentError 299
ProtocolUnknownError 301
ProtocolInvalidOperationError
ProtocolFailure 399

typedef QPair< QByteArray, QByteArray > RawHeaderPair

OpenModeFlag Inherited

NotOpen 0x0000
ReadOnly 0x0001
WriteOnly 0x0002
ReadWrite ReadOnly | WriteOnly
Append 0x0004
Truncate 0x0008
Text 0x0010
Unbuffered 0x0020

Public Functions

~QNetworkReply ()

Destructor.

void abort ()

QVariant attribute (
  • QNetworkRequest::Attributecode)

virtual void close ()

NetworkError error ()

bool hasRawHeader (

QVariant header (
  • QNetworkRequest::KnownHeadersheader)

void ignoreSslErrors (

bool isFinished ()

bool isRunning ()

virtual bool isSequential ()

QNetworkAccessManager::Operation operation ()

QByteArray rawHeader (

QList< QByteArray > rawHeaderList ()

const QList< RawHeaderPair > & rawHeaderPairs ()

qint64 readBufferSize ()

QNetworkRequest request ()

virtual void setReadBufferSize (
  • qint64size)

void setSslConfiguration (

QSslConfiguration sslConfiguration ()

QUrl url ()

virtual bool atEnd ()Inherited

virtual qint64 bytesAvailable ()Inherited

virtual qint64 bytesToWrite ()Inherited

virtual bool canReadLine ()Inherited

QString errorString ()Inherited

bool getChar (
  • char *c)
Inherited

bool isOpen ()Inherited

bool isReadable ()Inherited

bool isTextModeEnabled ()Inherited

bool isWritable ()Inherited

virtual bool open (
  • OpenModemode)
Inherited

OpenMode openMode ()Inherited

qint64 peek (
  • char *data,
  • qint64maxlen )
Inherited

QByteArray peek (
  • qint64maxlen)
Inherited

virtual qint64 pos ()Inherited

bool putChar (
  • charc)
Inherited

QIODevice ()Inherited

QIODevice (Inherited

qint64 read (
  • char *data,
  • qint64maxlen )
Inherited

QByteArray read (
  • qint64maxlen)
Inherited

QByteArray readAll ()Inherited

qint64 readLine (
  • char *data,
  • qint64maxlen )
Inherited

QByteArray readLine (
  • qint64maxlen)
Inherited

virtual bool reset ()Inherited

virtual bool seek (
  • qint64pos)
Inherited

void setTextModeEnabled (
  • boolenabled)
Inherited

virtual qint64 size ()Inherited

void ungetChar (
  • charc)
Inherited

virtual bool waitForBytesWritten (
  • intmsecs)
Inherited

virtual bool waitForReadyRead (
  • intmsecs)
Inherited

qint64 write (
  • const char *data,
  • qint64len )
Inherited

qint64 write (
  • const char *data)
Inherited

qint64 write (Inherited

Protected Functions

QNetworkReply (

QNetworkReply (
  • QNetworkReplyPrivate &dd,
  • QObject *parent )

void setAttribute (
  • QNetworkRequest::Attributecode,
  • const QVariant &value )

void setError (
  • NetworkErrorerrorCode,
  • const QString &errorString )

void setFinished (
  • bool)

void setHeader (
  • QNetworkRequest::KnownHeadersheader,
  • const QVariant &value )

void setOperation (
  • QNetworkAccessManager::Operationoperation)

void setRawHeader (

void setRequest (

void setUrl (

virtual qint64 writeData (
  • const char *data,
  • qint64len )

QIODevice (
  • QIODevicePrivate &dd,
  • QObject *parent )
Inherited

qint64 readData (
  • char *data,
  • qint64maxlen )
Inherited

virtual qint64 readLineData (
  • char *data,
  • qint64maxlen )
Inherited

void setErrorString (Inherited

void setOpenMode (
  • OpenModeopenMode)
Inherited

Public Slots

virtual void ignoreSslErrors ()

Signals

void downloadProgress (
  • qint64bytesReceived,
  • qint64bytesTotal )

void error (
  • QNetworkReply::NetworkError)

void finished ()

void metaDataChanged ()

void sslErrors (

void uploadProgress (
  • qint64bytesSent,
  • qint64bytesTotal )

void aboutToClose ()Inherited

void bytesWritten (
  • qint64bytes)
Inherited

void readChannelFinished ()Inherited

void readyRead ()Inherited

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus