QNetworkReply::NetworkError error() const
Returns the potential error of the download.
Handles HTTP network content fetching in a background task.
@ DownloadImmediately
The download will start immediately, not need to run QgsFecthedContent::download()
@ DownloadLater
Do not start immediately the download to properly connect the fetched signal.
QgsFetchedContent(const QString &url, QTemporaryFile *file=nullptr, ContentStatus status=NotStarted)
Constructs a FetchedContent with pointer to the downloaded file and status of the download.
FetchingMode
Enum to determine when the download should start.
ContentStatus
Status of fetched content.
@ NotStarted
No download started for such URL.
ContentStatus status() const
Returns the status of the download.
~QgsFetchedContent() override
@ Finished
Download finished and successful.
const QString filePath() const
Returns the path to the local file, an empty string if the file is not accessible yet.
Registry for temporary fetched files.