MauiKit File Browsing
downloader.h
35 * QUrl url = u"https://mauikit.org/wp-content/uploads/2021/08/index-1.png"_qs; //The remote file image URL to download.
37 * QUrl savePath = FMStatic::DownloadsPath+fileName; //The local downloads path where to save the image.
73 * @brief Given a URL make a get request and once the reply is ready emits a signal with the retrieved array data.
74 * @note Usually this is used to retrieved structured information from a web API, such a a JSON or a XML file, to later be parsed.
77 * @param headers the optional set of HTTP request headers structured as a QMap of a key value pair of plain strings.
121 * @brief Emitted when the download or data request has been aborted manually by calling the `stop` method.
The Downloader class This is a quick helper to download remote content and save it as local files.
Definition downloader.h:57
void warning(QString warning)
Emitted when there is a warning message, for example when an error has occurred during the process or...
void aborted()
Emitted when the download or data request has been aborted manually by calling the stop method.
void fileSaved(QString path)
Emitted after the downloading has finished and the file has been saved successfully.
void dataReady(QByteArray array)
Emitted when the data is ready and can be parsed.
void stop(Ekos::AlignState mode)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:11:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:11:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.