diff options
| author | Tom Tanner <thosrtanner2@users.sourceforge.net> | 2015-04-26 09:44:57 +0100 |
|---|---|---|
| committer | Tom Tanner <thosrtanner2@users.sourceforge.net> | 2015-04-26 09:44:57 +0100 |
| commit | ce925bc73e077fea813e509af4e9ad19f4306960 (patch) | |
| tree | e028eb1942e1e3a11b4b9f7af0e20707baf44ce6 /src/downloadmanager.h | |
| parent | 927504cbd947a0cd794ed4777933df12bd0cd7e8 (diff) | |
Allows drag-and-drop into the download tab
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);
|
