NetworkReply class. More...
#include <networkreply.h>
Public Member Functions | |
NetworkReply (const QNetworkRequest &request, QObject *parent=0) | |
Constructor. | |
void | setErrorCode (QNetworkReply::NetworkError errorCode) |
Set error code. | |
Protected Member Functions | |
void | abort () |
Aborts the operation. | |
qint64 | readData (char *data, qint64 maxlen) |
Reads data from the device. | |
Private Attributes | |
QByteArray | m_content |
Content of data. | |
qint64 | m_offset |
Offset for data read. |
NetworkReply class.
Class is used by NetworkAccessManager when network state is disconnected.
NetworkReply::NetworkReply | ( | const QNetworkRequest & | request, | |
QObject * | parent = 0 | |||
) |
Constructor.
request | QNetworkRequest | |
parent | QObject |
qint64 NetworkReply::readData | ( | char * | data, | |
qint64 | maxlen | |||
) | [protected] |
Reads data from the device.
data | data is read into this | |
maxlen | maximum size to read |
void NetworkReply::setErrorCode | ( | QNetworkReply::NetworkError | errorCode | ) |
Set error code.
errorCode | QNetworkReply::NetworkError |