From 2db33523a1c8497657963a88f70fe1726cbf8fc9 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 23 Apr 2014 23:59:30 +0200 Subject: - 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 --- src/downloadmanager.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/downloadmanager.h') 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; @@ -218,6 +216,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 * @@ -450,6 +456,8 @@ private: void removePending(int modID, int fileID); + static QString getFileTypeString(int fileType); + private: static const int AUTOMATIC_RETRIES = 3; -- cgit v1.3.1