![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Implements an integrated file downloader with a nice UI. More...
#include <Downloader.h>
Public Slots | |
| void | setUrlId (const QString &url) |
| void | startDownload (const QUrl &url) |
| void | setFileName (const QString &file) |
| void | setUserAgentString (const QString &agent) |
| void | setUseCustomInstallProcedures (const bool custom) |
| void | setMandatoryUpdate (const bool mandatory_update) |
Signals | |
| void | downloadFinished (const QString &url, const QString &filepath) |
Public Member Functions | |
| Downloader (QWidget *parent=nullptr) | |
| ~Downloader () | |
| bool | useCustomInstallProcedures () const |
| QString | downloadDir () const |
| void | setDownloadDir (const QString &downloadDir) |
Implements an integrated file downloader with a nice UI.
|
explicit |
| Downloader::~Downloader | ( | ) |
| QString Downloader::downloadDir | ( | ) | const |
Referenced by setDownloadDir().
|
signal |
| void Downloader::setDownloadDir | ( | const QString & | downloadDir | ) |
References downloadDir().
|
slot |
Changes the name of the downloaded file
|
slot |
If the mandatory_update is set to true, the Downloader has to download and install the update. If the user cancels or exits, the application will close
|
slot |
Changes the URL, which is used to indentify the downloader dialog with an Updater instance
|
slot |
If the custom parameter is set to true, then the Downloader will not attempt to open the downloaded file.
Use the signals fired by the QSimpleUpdater to implement your own install procedures.
Referenced by Updater::setUseCustomInstallProcedures().
|
slot |
Changes the user-agent string used to communicate with the remote HTTP server
Referenced by Updater::setUserAgentString().
|
slot |
Begins downloading the file at the given url
References PARTIAL_DOWN().
| bool Downloader::useCustomInstallProcedures | ( | ) | const |
Returns true if the updater shall not intervene when the download has finished (you can use the QSimpleUpdater signals to know when the download is completed).
Referenced by Updater::useCustomInstallProcedures().