diff options
| author | Silarn <jrim@rimpo.org> | 2018-05-01 21:50:20 -0500 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2018-05-01 21:50:20 -0500 |
| commit | d62ec9c867b448276ab9873ddd3f320487ab5572 (patch) | |
| tree | 20efdda4f9bf8e965cc0c7da015fff48bc44685e /src/downloadmanager.h | |
| parent | 3bb7a44610a770e3bd5525cfe2c129871864cb11 (diff) | |
Allow downloads to display speed and complete %
Diffstat (limited to 'src/downloadmanager.h')
| -rw-r--r-- | src/downloadmanager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/downloadmanager.h b/src/downloadmanager.h index 308d365b..0ff77011 100644 --- a/src/downloadmanager.h +++ b/src/downloadmanager.h @@ -75,7 +75,7 @@ private: QNetworkReply *m_Reply;
QTime m_StartTime;
qint64 m_PreResumeSize;
- int m_Progress;
+ std::pair<int, QString> m_Progress;
DownloadState m_State;
int m_CurrentUrl;
QStringList m_Urls;
@@ -259,7 +259,7 @@ public: * @param index index of the file to look up
* @return progress of the download in percent (integer)
**/
- int getProgress(int index) const;
+ std::pair<int, QString> getProgress(int index) const;
/**
* @brief retrieve the current state of the download
|
