26 _array.append(
replay()->readAll());
void handleFinished() override
VirtualFile(const QSharedPointer< QNetworkReply > &replay=nullptr)
void setArray(const QByteArray &newArray)
const QByteArray & array() const
Type type() const override
type This is type of the file object.
void handleError(QNetworkReply::NetworkError error) override
void handleReadReady() override
The iFile class This is main interface for all implementations of the files.
Type
The Type enum is type of the file object.
@ Ram
This is memory saved file. All received bytes will be saved into QByteArray object.
const QSharedPointer< QNetworkReply > & replay() const
Get the shared pointer to the associated QNetworkReply.
virtual void handleError(QNetworkReply::NetworkError error)
Slot to handle errors in the network operation.
int error() const
Get the error code associated with this file.
virtual void handleFinished()
Slot to handle when the network operation is finished.