void Application::torrentFinished(BitTorrent::TorrentHandle *const torrent) { Preferences *const pref = Preferences::instance(); // AutoRun program if (pref->isAutoRunEnabled()) runExternalProgram(torrent); // Mail notification if (pref->isMailNotificationEnabled()) { Logger::instance()->addMessage(tr("Torrent: %1, sending mail notification").arg(torrent->name())); sendNotificationEmail(torrent); } }
std::string MetisWrapper::run(int argc, char *argv[]) { return runExternalProgram(argc, argv); }