From 0beb88760b4c258b89daf5791069dc885c0c27aa Mon Sep 17 00:00:00 2001 From: Tannin Date: Sun, 19 May 2013 11:36:36 +0200 Subject: - added hook for GetModuleFileName - downloads are now identifiable by ID - fixed a bug with the multi-select categories list - fixed a problem with the nexus-login code breaking support for certain passwords - fixed a bug where detection of archive invalidation didn't work correctly - fixed ncc plugin trying to handle archives that aren't actually fomods --- src/downloadmanager.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/downloadmanager.h') diff --git a/src/downloadmanager.h b/src/downloadmanager.h index 407acd3c..b2fee921 100644 --- a/src/downloadmanager.h +++ b/src/downloadmanager.h @@ -75,6 +75,7 @@ public: private: struct DownloadInfo { + unsigned int m_DownloadID; QString m_FileName; QFile m_Output; QNetworkReply *m_Reply; @@ -108,7 +109,8 @@ private: bool isPausedState(); QString currentURL(); - + private: + static unsigned int s_NextDownloadID; private: DownloadInfo() : m_TotalSize(0), m_ReQueried(false) {} }; @@ -343,6 +345,8 @@ private: void setState(DownloadInfo *info, DownloadManager::DownloadState state); + DownloadInfo *downloadInfoByID(unsigned int id); + private: static const int AUTOMATIC_RETRIES = 3; -- cgit v1.3.1