Add ability to run external program on torrent added

PR #17646.
This commit is contained in:
Vladimir Golovnev
2022-09-04 07:51:50 +03:00
committed by GitHub
parent 459d1cf82c
commit 4318de6dc5
8 changed files with 144 additions and 49 deletions

View File

@@ -136,7 +136,8 @@ public:
private slots:
void processMessage(const QString &message);
void torrentFinished(BitTorrent::Torrent *const torrent);
void torrentAdded(const BitTorrent::Torrent *torrent) const;
void torrentFinished(const BitTorrent::Torrent *torrent);
void allTorrentsFinished();
void cleanup();
@@ -155,7 +156,7 @@ private:
void initializeTranslation();
AddTorrentParams parseParams(const QStringList &params) const;
void processParams(const AddTorrentParams &params);
void runExternalProgram(const BitTorrent::Torrent *torrent) const;
void runExternalProgram(const QString &programTemplate, const BitTorrent::Torrent *torrent) const;
void sendNotificationEmail(const BitTorrent::Torrent *torrent);
#ifdef QBT_USES_LIBTORRENT2