39 : QNetworkReply (parent)
46 setHeader (QNetworkRequest::ContentTypeHeader, ct);
59 open (ReadOnly | Unbuffered);
61 setHeader (QNetworkRequest::ContentLengthHeader, Content_.size ());
63 QTimer::singleShot (0,
65 SIGNAL (readyRead ()));
66 QTimer::singleShot (0,
68 SIGNAL (finished ()));
77 return Content_.size () - Offset_;
87 if (Offset_ >= Content_.size ())
91 std::memcpy (data, Content_.constData () + Offset_, number);
qint64 readData(char *, qint64) override
CustomNetworkReply(const QUrl &url, QObject *parent=0)
Creates the reply with the given url and parent.
bool isSequential() const override
Reimplemented from QNetworkReply::isSequential().
qint64 bytesAvailable() const override
Reimplemented from QNetworkReply::bytesAvailable().
void SetContent(const QString &string)
Sets content of this reply to the given string.
void abort() override
Reimplemented from QNetworkReply::abort().
constexpr detail::AggregateType< detail::AggregateFunction::Min, Ptr > min
void SetContentType(const QByteArray &type)
Sets the content type of this reply.