void Preferences::setSystrayIntegration(bool enabled) { setValue("Preferences/General/SystrayEnabled", enabled); }
void Preferences::setServerDomains(const QString &str) { setValue("Preferences/WebUI/ServerDomains", str); }
void Preferences::setUPnPForWebUIPort(bool enabled) { setValue("Preferences/WebUI/UseUPnP", enabled); }
void Preferences::setSchedulerDays(scheduler_days days) { setValue("Preferences/Scheduler/days", static_cast<int>(days)); }
void Preferences::setWebUiEnabled(bool enabled) { setValue("Preferences/WebUI/Enabled", enabled); }
void Preferences::setMailNotificationSMTPPassword(const QString &password) { setValue("Preferences/MailNotification/password", password); }
void Preferences::setSchedulerStartTime(const QTime &time) { setValue("Preferences/Scheduler/start_time", time); }
void Preferences::setSplashScreenDisabled(bool b) { setValue("Preferences/General/NoSplashScreen", b); }
void Preferences::setPreventFromSuspend(bool b) { setValue("Preferences/General/PreventFromSuspend", b); }
void Preferences::setStatusbarDisplayed(bool displayed) { setValue("Preferences/General/StatusbarDisplayed", displayed); }
void Preferences::setStartMinimized(bool b) { setValue("Preferences/General/StartMinimized", b); }
void Preferences::setToolbarDisplayed(bool displayed) { setValue("Preferences/General/ToolbarDisplayed", displayed); }
void Preferences::setCloseToTray(bool b) { setValue("Preferences/General/CloseToTray", b); }
void Preferences::setMinimizeToTray(bool b) { setValue("Preferences/General/MinimizeToTray", b); }
void Preferences::setMailNotificationSMTPAuth(bool use) { setValue("Preferences/MailNotification/req_auth", use); }
void Preferences::setLastLocationPath(const QString &path) { setValue("Preferences/Downloads/LastLocationPath", Utils::Fs::fromNativePath(path)); }
void Preferences::setMailNotificationSMTPUsername(const QString &username) { setValue("Preferences/MailNotification/username", username); }
// This must be called somewhere with data from the model void Preferences::setScanDirs(const QVariantHash &dirs) { setValue("Preferences/Downloads/ScanDirsV2", dirs); }
void Preferences::setActionOnDblClOnTorrentFn(int act) { setValue("Preferences/Downloads/DblClOnTorFn", act); }
void Preferences::setScanDirsLastPath(const QString &path) { setValue("Preferences/Downloads/ScanDirsLastPath", Utils::Fs::fromNativePath(path)); }
void Preferences::setSchedulerEndTime(const QTime &time) { setValue("Preferences/Scheduler/end_time", time); }
void Preferences::setMailNotificationEnabled(bool enabled) { setValue("Preferences/MailNotification/enabled", enabled); }
void Preferences::setSearchEnabled(bool enabled) { setValue("Preferences/Search/SearchEnabled", enabled); }
void Preferences::setMailNotificationEmail(const QString &mail) { setValue("Preferences/MailNotification/email", mail); }
void Preferences::setWebUiLocalAuthEnabled(bool enabled) { setValue("Preferences/WebUI/LocalHostAuth", enabled); }
void Preferences::setMailNotificationSMTP(const QString &smtp_server) { setValue("Preferences/MailNotification/smtp_server", smtp_server); }
void Preferences::setWebUiPort(quint16 port) { setValue("Preferences/WebUI/Port", port); }
void Preferences::setMailNotificationSMTPSSL(bool use) { setValue("Preferences/MailNotification/req_ssl", use); }
void Preferences::setWebUiUsername(const QString &username) { setValue("Preferences/WebUI/Username", username); }
void Preferences::setHideZeroComboValues(int n) { setValue("Preferences/General/HideZeroComboValues", n); }