FEATURE: Added auto-suspend upon downloads completion feature

This commit is contained in:
Christophe Dumez
2010-12-31 13:36:32 +00:00
parent 6d241270b5
commit 1b08c087c0
9 changed files with 126 additions and 46 deletions

View File

@@ -739,6 +739,14 @@ public:
setValue(QString::fromUtf8("Preferences/Downloads/AutoShutDownOnCompletion"), shutdown);
}
bool suspendWhenDownloadsComplete() const {
return value(QString::fromUtf8("Preferences/Downloads/AutoSuspendOnCompletion"), false).toBool();
}
void setSuspendWhenDownloadsComplete(bool suspend) {
setValue(QString::fromUtf8("Preferences/Downloads/AutoSuspendOnCompletion"), suspend);
}
bool shutdownqBTWhenDownloadsComplete() const {
return value(QString::fromUtf8("Preferences/Downloads/AutoShutDownqBTOnCompletion"), false).toBool();
}