16 #ifndef DOWNLOAD_DIALOG_H 17 #define DOWNLOAD_DIALOG_H 20 #include <ui_Downloader.h> 27 class QNetworkAccessManager;
43 bool useCustomInstallProcedures()
const;
49 void startDownload (
const QUrl& url);
57 void setUseCustomInstallProcedures (
const bool& custom);
62 void cancelDownload();
63 void onDownloadFinished();
64 void calculateSizes (qint64 received, qint64 total);
65 void updateProgress (qint64 received, qint64 total);
66 void calculateTimeRemaining (qint64 received, qint64 total);
72 qreal round (
const qreal& input);
80 void downloadFinished (
const QString& url,
const QString& filepath);
86 QNetworkReply* m_reply;
87 bool m_useCustomProcedures;
88 QNetworkAccessManager* m_manager;
Definition: Downloader.h:22
Definition: Downloader.h:29