summaryrefslogtreecommitdiff
path: root/src/downloadmanager.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-01-04 15:57:14 +0100
committerTannin <devnull@localhost>2014-01-04 15:57:14 +0100
commit4dc3538a7d14dd0f1aaa2e6c172745b63e251c86 (patch)
tree2242c92482306c5710b00dfb212cce11456e776d /src/downloadmanager.h
parent14ac234daf1680b0685f6bea3e74aa09dfcf38ef (diff)
- nxmhandler will now ask before registering itself
- downloads from nexus are now displayed before file information is retrieved - logging from the ui is now a bit more informative - download list now scrolls to bottom automatically
Diffstat (limited to 'src/downloadmanager.h')
-rw-r--r--src/downloadmanager.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/downloadmanager.h b/src/downloadmanager.h
index 099e6084..62396666 100644
--- a/src/downloadmanager.h
+++ b/src/downloadmanager.h
@@ -206,6 +206,19 @@ public:
int numTotalDownloads() const;
/**
+ * @brief retrieve number of pending downloads (nexus downloads for which we don't know the name and url yet)
+ * @return number of pending downloads
+ */
+ int numPendingDownloads() const;
+
+ /**
+ * @brief retrieve the info of a pending download
+ * @param index index of the pending download (index in the range [0, numPendingDownloads()[)
+ * @return pair of modid, fileid
+ */
+ std::pair<int, int> getPendingDownload(int index);
+
+ /**
* @brief retrieve the full path to the download specified by index
*
* @param index the index to look up
@@ -357,6 +370,11 @@ signals:
*/
void downloadSpeed(const QString &serverName, int bytesPerSecond);
+ /**
+ * @brief emitted whenever a new download is added to the list
+ */
+ void downloadAdded();
+
public slots:
/**
@@ -440,6 +458,8 @@ private:
QDateTime matchDate(const QString &timeString);
+ void removePending(int modID, int fileID);
+
private:
static const int AUTOMATIC_RETRIES = 3;
@@ -447,6 +467,9 @@ private:
private:
NexusInterface *m_NexusInterface;
+
+ QVector<std::pair<int, int> > m_PendingDownloads;
+
QVector<DownloadInfo*> m_ActiveDownloads;
QString m_OutputDirectory;
@@ -465,4 +488,6 @@ private:
};
+
+
#endif // DOWNLOADMANAGER_H