diff options
| author | Tannin <devnull@localhost> | 2013-08-31 17:11:17 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-08-31 17:11:17 +0200 |
| commit | 49e1dd23b699b499d9b715ef74cb7ca5b0189584 (patch) | |
| tree | 2ab470822b369a38c8d2dad1d52f584107e14137 /src/downloadmanager.h | |
| parent | 9c31cfa915f71adee8579aa97c12b64903ec9446 (diff) | |
- mod list can now be sorted by install time
- the sorting of download archives wasn't actually by index instead of file time
- bugfix: some of the plugins crashed if they failed to create a mod
Diffstat (limited to 'src/downloadmanager.h')
| -rw-r--r-- | src/downloadmanager.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/downloadmanager.h b/src/downloadmanager.h index 01d45582..92ba3143 100644 --- a/src/downloadmanager.h +++ b/src/downloadmanager.h @@ -83,6 +83,7 @@ private: QFile m_Output; QNetworkReply *m_Reply; QTime m_StartTime; + qint64 m_PreResumeSize; int m_Progress; int m_ModID; int m_FileID; @@ -91,6 +92,9 @@ private: QStringList m_Urls; qint64 m_ResumePos; qint64 m_TotalSize; + + QDateTime m_Created; // used as a cache in DownloadManager::getFileTime, may not be valid elsewhere + int m_Tries; bool m_ReQueried; @@ -216,6 +220,13 @@ public: qint64 getFileSize(int index) const; /** + * @brief retrieve the creation time of the download specified by index + * @param index index of the file to look up + * @return size of the file (total size during download) + */ + QDateTime getFileTime(int index) const; + + /** * @brief retrieve the current progress of the download specified by index * * @param index index of the file to look up @@ -298,6 +309,7 @@ public: int indexByName(const QString &fileName) const; void pauseAll(); + signals: void aboutToUpdate(); |
