NDEVR
API Documentation
NetworkRequestabstract

A request for data or information from a network. More...

Inheritance diagram for NetworkRequest:
[legend]

Public Member Functions

virtual void abort ()=0
 Aborts the network request immediately.
virtual void close ()=0
 Closes the network request and releases resources.
virtual QByteArray data ()=0
 Returns the data received from the network request.
void downloadProgressSignal (qint64 bytesReceived, qint64 bytesTotal)
 Emitted to report download progress.
void errorOccurredSignal (StringView error)
 Emitted when an error occurs, with a description.
void finishedSignal ()
 Emitted when the request has finished.
virtual bool isRunning ()=0
 Returns whether the request is currently in progress.
void metaDataChangedSignal ()
 Emitted when response metadata changes.
void redirectAllowedSignal ()
 Emitted when a redirect is allowed.
void requestSentSignal ()
 Emitted when the request has been sent.
void socketStartedConnectingSignal ()
 Emitted when the socket begins connecting.
virtual bool start ()=0
 Starts the network request.
void uploadProgressSignal (qint64 bytesSent, qint64 bytesTotal)
 Emitted to report upload progress.

Detailed Description

A request for data or information from a network.


Definition at line 52 of file ItemDownloader.h.

Member Function Documentation

◆ data()

virtual QByteArray NetworkRequest::data ( )
pure virtual

Returns the data received from the network request.

Returns
The received data as a QByteArray.

Implemented in QtNetworkRequest.

◆ isRunning()

virtual bool NetworkRequest::isRunning ( )
pure virtual

Returns whether the request is currently in progress.

Returns
True if the request is running.

Implemented in QtNetworkRequest.

◆ start()

virtual bool NetworkRequest::start ( )
pure virtual

Starts the network request.

Returns
True if the request was successfully started.

Implemented in QtNetworkRequest.


The documentation for this class was generated from the following file: