summaryrefslogtreecommitdiff
path: root/src/downloadmanager.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-04-05 20:54:08 +0200
committerTannin <devnull@localhost>2014-04-05 20:54:08 +0200
commit739c3424e7c058f972a2648f2231e6a10c59662d (patch)
treef0a9e40c8b30692aed30ca9f2e2599f0ec9db625 /src/downloadmanager.h
parentcabed9b268c9f095d5e3b98a6797b0bcdcd38b1f (diff)
- loot integration now displays the report
- fixes to the previous merge - bugfix: cli loot didn't handle non-ascii characters correctly
Diffstat (limited to 'src/downloadmanager.h')
-rw-r--r--src/downloadmanager.h7
1 files changed, 4 insertions, 3 deletions
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;