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.
void downloadFile(const QUrl &source, const QUrl &destination)
Given a source URL to a file it downloads it to a given local destination.
Definition downloader.cpp:97
void getArray(const QUrl &fileURL, const QMap< QString, QString > &headers={})
Given a URL make a get request and once the reply is ready emits a signal with the retrieved array da...
Definition downloader.cpp:143
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.
bool isRunning() const
Whether the downloading or current request is still in progress.
Definition downloader.cpp:60
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)
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:45 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:45 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.