diff options
| author | Tannin <devnull@localhost> | 2014-04-23 23:59:30 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-04-23 23:59:30 +0200 |
| commit | 2db33523a1c8497657963a88f70fe1726cbf8fc9 (patch) | |
| tree | 016b015087a64900db9787a2a3f3551128c43df3 /src/downloadmanager.h | |
| parent | 540747177ae02c9431d33a2c3adc1f747b74b868 (diff) | |
- added an option to show meta info on downloads instead of filenames
- MO will now cancel if user tries to run MO vfs-injected
- when saving the MO ini file it is now written to a tmp file first and then overwritten
- updated to link against boost python 1.55
Diffstat (limited to 'src/downloadmanager.h')
| -rw-r--r-- | src/downloadmanager.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/downloadmanager.h b/src/downloadmanager.h index 27b5c526..e0cc20bd 100644 --- a/src/downloadmanager.h +++ b/src/downloadmanager.h @@ -72,8 +72,6 @@ private: QTime m_StartTime; qint64 m_PreResumeSize; int m_Progress; - int m_ModID; - int m_FileID; DownloadState m_State; int m_CurrentUrl; QStringList m_Urls; @@ -219,6 +217,14 @@ public: QString getFilePath(int index) const; /** + * @brief retrieve a descriptive name of the download specified by index + * + * @param index index of the file to look up + * @return display name of the file + **/ + QString getDisplayName(int index) const; + + /** * @brief retrieve the filename of the download specified by index * * @param index index of the file to look up @@ -450,6 +456,8 @@ private: void removePending(int modID, int fileID); + static QString getFileTypeString(int fileType); + private: static const int AUTOMATIC_RETRIES = 3; |
