mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Merge pull request #11241 from thalieht/delfolder
Add "Remove torrent and its files" option to share ratio limiting
This commit is contained in:
commit
975b44d05f
7 changed files with 104 additions and 46 deletions
|
@ -59,11 +59,20 @@ class BandwidthScheduler;
|
|||
class Statistics;
|
||||
class ResumeDataSavingManager;
|
||||
|
||||
// These values should remain unchanged when adding new items
|
||||
// so as not to break the existing user settings.
|
||||
enum MaxRatioAction
|
||||
{
|
||||
Pause,
|
||||
Remove,
|
||||
EnableSuperSeeding
|
||||
Pause = 0,
|
||||
Remove = 1,
|
||||
DeleteFiles = 3,
|
||||
EnableSuperSeeding = 2
|
||||
};
|
||||
|
||||
enum DeleteOption
|
||||
{
|
||||
Torrent,
|
||||
TorrentAndFiles
|
||||
};
|
||||
|
||||
enum TorrentExportFolder
|
||||
|
@ -400,7 +409,7 @@ namespace BitTorrent
|
|||
bool isKnownTorrent(const InfoHash &hash) const;
|
||||
bool addTorrent(const QString &source, const AddTorrentParams ¶ms = AddTorrentParams());
|
||||
bool addTorrent(const TorrentInfo &torrentInfo, const AddTorrentParams ¶ms = AddTorrentParams());
|
||||
bool deleteTorrent(const QString &hash, bool deleteLocalFiles = false);
|
||||
bool deleteTorrent(const QString &hash, DeleteOption deleteOption = Torrent);
|
||||
bool loadMetadata(const MagnetUri &magnetUri);
|
||||
bool cancelLoadMetadata(const InfoHash &hash);
|
||||
|
||||
|
@ -492,7 +501,7 @@ namespace BitTorrent
|
|||
{
|
||||
QString name;
|
||||
QString savePathToRemove;
|
||||
bool requestedFileDeletion;
|
||||
DeleteOption deleteOption;
|
||||
};
|
||||
|
||||
explicit Session(QObject *parent = nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue