mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 08:48:07 -06:00
committed by
GitHub
parent
459d1cf82c
commit
4318de6dc5
@@ -867,22 +867,42 @@ void Preferences::setUILocked(const bool locked)
|
||||
setValue(u"Locking/locked"_qs, locked);
|
||||
}
|
||||
|
||||
bool Preferences::isAutoRunEnabled() const
|
||||
bool Preferences::isAutoRunOnTorrentAddedEnabled() const
|
||||
{
|
||||
return value(u"AutoRun/OnTorrentAdded/Enabled"_qs, false);
|
||||
}
|
||||
|
||||
void Preferences::setAutoRunOnTorrentAddedEnabled(const bool enabled)
|
||||
{
|
||||
setValue(u"AutoRun/OnTorrentAdded/Enabled"_qs, enabled);
|
||||
}
|
||||
|
||||
QString Preferences::getAutoRunOnTorrentAddedProgram() const
|
||||
{
|
||||
return value<QString>(u"AutoRun/OnTorrentAdded/Program"_qs);
|
||||
}
|
||||
|
||||
void Preferences::setAutoRunOnTorrentAddedProgram(const QString &program)
|
||||
{
|
||||
setValue(u"AutoRun/OnTorrentAdded/Program"_qs, program);
|
||||
}
|
||||
|
||||
bool Preferences::isAutoRunOnTorrentFinishedEnabled() const
|
||||
{
|
||||
return value(u"AutoRun/enabled"_qs, false);
|
||||
}
|
||||
|
||||
void Preferences::setAutoRunEnabled(const bool enabled)
|
||||
void Preferences::setAutoRunOnTorrentFinishedEnabled(const bool enabled)
|
||||
{
|
||||
setValue(u"AutoRun/enabled"_qs, enabled);
|
||||
}
|
||||
|
||||
QString Preferences::getAutoRunProgram() const
|
||||
QString Preferences::getAutoRunOnTorrentFinishedProgram() const
|
||||
{
|
||||
return value<QString>(u"AutoRun/program"_qs);
|
||||
}
|
||||
|
||||
void Preferences::setAutoRunProgram(const QString &program)
|
||||
void Preferences::setAutoRunOnTorrentFinishedProgram(const QString &program)
|
||||
{
|
||||
setValue(u"AutoRun/program"_qs, program);
|
||||
}
|
||||
|
||||
@@ -251,14 +251,20 @@ public:
|
||||
void setUILockPassword(const QByteArray &password);
|
||||
bool isUILocked() const;
|
||||
void setUILocked(bool locked);
|
||||
bool isAutoRunEnabled() const;
|
||||
void setAutoRunEnabled(bool enabled);
|
||||
QString getAutoRunProgram() const;
|
||||
void setAutoRunProgram(const QString &program);
|
||||
|
||||
bool isAutoRunOnTorrentAddedEnabled() const;
|
||||
void setAutoRunOnTorrentAddedEnabled(const bool enabled);
|
||||
QString getAutoRunOnTorrentAddedProgram() const;
|
||||
void setAutoRunOnTorrentAddedProgram(const QString &program);
|
||||
bool isAutoRunOnTorrentFinishedEnabled() const;
|
||||
void setAutoRunOnTorrentFinishedEnabled(bool enabled);
|
||||
QString getAutoRunOnTorrentFinishedProgram() const;
|
||||
void setAutoRunOnTorrentFinishedProgram(const QString &program);
|
||||
#if defined(Q_OS_WIN)
|
||||
bool isAutoRunConsoleEnabled() const;
|
||||
void setAutoRunConsoleEnabled(bool enabled);
|
||||
#endif
|
||||
|
||||
bool shutdownWhenDownloadsComplete() const;
|
||||
void setShutdownWhenDownloadsComplete(bool shutdown);
|
||||
bool suspendWhenDownloadsComplete() const;
|
||||
|
||||
Reference in New Issue
Block a user