From 739c3424e7c058f972a2648f2231e6a10c59662d Mon Sep 17 00:00:00 2001 From: Tannin Date: Sat, 5 Apr 2014 20:54:08 +0200 Subject: - loot integration now displays the report - fixes to the previous merge - bugfix: cli loot didn't handle non-ascii characters correctly --- src/downloadmanager.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/downloadmanager.h') diff --git a/src/downloadmanager.h b/src/downloadmanager.h index 4e8467ee..27b5c526 100644 --- a/src/downloadmanager.h +++ b/src/downloadmanager.h @@ -72,12 +72,13 @@ 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; qint64 m_ResumePos; qint64 m_TotalSize; - QDateTime m_Created; // used as a cache in DownloadManager::getFileTime, may not be valid elsewhere int m_Tries; @@ -177,7 +178,7 @@ public: * @param fileInfo information previously retrieved from the nexus network * @return true if the download was started, false if it wasn't. The latter currently only happens if there is a duplicate and the user decides not to download again **/ - bool addDownload(QNetworkReply *reply, const QStringList &URLs, const QString &fileName, const MOBase::ModRepositoryFileInfo *fileInfo); + bool addDownload(QNetworkReply *reply, const QStringList &URLs, const QString &fileName, int modID, int fileID = 0, const MOBase::ModRepositoryFileInfo *fileInfo = new MOBase::ModRepositoryFileInfo()); /** * @brief start a download using a nxm-link @@ -428,7 +429,7 @@ private: * @param fileInfo information previously retrieved from the mod page * @return true if the download was started, false if it wasn't. The latter currently only happens if there is a duplicate and the user decides not to download again **/ - bool addDownload(const QStringList &URLs, const MOBase::ModRepositoryFileInfo *fileInfo); + bool addDownload(const QStringList &URLs, int modID, int fileID, const MOBase::ModRepositoryFileInfo *fileInfo); // important: the caller has to lock the list-mutex, otherwise the DownloadInfo-pointer might get invalidated at any time DownloadInfo *findDownload(QObject *reply, int *index = NULL) const; -- cgit v1.3.1