30 #ifndef DOWNLOAD_DIALOG_H 31 #define DOWNLOAD_DIALOG_H 34 #include <ui_Downloader.h> 41 class QNetworkAccessManager;
50 void downloadFinished (
const QString& url,
const QString& filepath);
56 bool useCustomInstallProcedures()
const;
59 void startDownload (
const QUrl& url);
60 void setUseCustomInstallProcedures (
const bool& custom);
65 void cancelDownload();
66 void onDownloadFinished();
67 void calculateSizes (qint64 received, qint64 total);
68 void updateProgress (qint64 received, qint64 total);
69 void calculateTimeRemaining (qint64 received, qint64 total);
72 qreal round (
const qreal& input);
78 QNetworkReply* m_reply;
79 bool m_useCustomProcedures;
80 QNetworkAccessManager* m_manager;
Definition: Downloader.h:36
Implements an integrated file downloader with a nice UI.
Definition: Downloader.h:46