const QString filePath() const
Returns the path to the local file, an empty string if the file is not accessible yet...
The download will start immediately, not need to run QgsFecthedContent::download() ...
Handles HTTP network content fetching in a background task.
Do not start immediately the download to properly connect the fetched signal.
ContentStatus status() const
Returns the status of the download.
Registry for temporary fetched files.
FetchedContent holds useful information about a network content being fetched.
~QgsFetchedContent() override
Download finished and successful.
ContentStatus
Status of fetched content.
No download started for such URL.
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.
QNetworkReply::NetworkError error() const
Returns the potential error of the download.