mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 00:52:30 -06:00
Add DownloadRequest::destFileName
This commit is contained in:
@@ -78,11 +78,18 @@ namespace Net
|
||||
bool saveToFile() const;
|
||||
DownloadRequest &saveToFile(bool value);
|
||||
|
||||
// if saveToFile is set, the file is saved in destFileName
|
||||
// (deprecated) if destFileName is not provided, the file will be saved
|
||||
// in a temporary file, the name of file is set in DownloadResult::filePath
|
||||
QString destFileName() const;
|
||||
DownloadRequest &destFileName(const QString &value);
|
||||
|
||||
private:
|
||||
QString m_url;
|
||||
QString m_userAgent;
|
||||
qint64 m_limit = 0;
|
||||
bool m_saveToFile = false;
|
||||
QString m_destFileName;
|
||||
};
|
||||
|
||||
struct DownloadResult
|
||||
|
||||
Reference in New Issue
Block a user