diff options
| author | Tannin <devnull@localhost> | 2015-05-09 21:46:40 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-05-09 21:46:40 +0200 |
| commit | 3680e37d392123b7cafa6696b1683b9015d000c1 (patch) | |
| tree | 5600fc5ca82fab678851064fc30069b264edf255 /src/downloadmanager.h | |
| parent | abba182b1ba630b41660424abf372af527b1612c (diff) | |
| parent | 1403d51a82fa4c7548e21d7411486244881bc8d8 (diff) | |
Merge
Diffstat (limited to 'src/downloadmanager.h')
| -rw-r--r-- | src/downloadmanager.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/downloadmanager.h b/src/downloadmanager.h index c077ae79..5d047766 100644 --- a/src/downloadmanager.h +++ b/src/downloadmanager.h @@ -426,8 +426,22 @@ private slots: private:
void createMetaFile(DownloadInfo *info);
+
+public:
+
+ /** Get a unique filename for a download.
+ *
+ * This allows you multiple versions of download files, useful if the file
+ * comes from a web site with no version control
+ *
+ * @param basename: Name of the file
+ *
+ * @return Unique(ish) name
+ */
QString getDownloadFileName(const QString &baseName) const;
+private:
+
void startDownload(QNetworkReply *reply, DownloadInfo *newDownload, bool resume);
void resumeDownloadInt(int index);
|
