From ce925bc73e077fea813e509af4e9ad19f4306960 Mon Sep 17 00:00:00 2001 From: Tom Tanner Date: Sun, 26 Apr 2015 09:44:57 +0100 Subject: Allows drag-and-drop into the download tab --- src/downloadmanager.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/downloadmanager.h') 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); -- cgit v1.3.1