1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 12:34:19 +00:00

Split code to smaller functions

This commit is contained in:
Chocobo1 2022-07-24 18:07:59 +08:00
parent 243d130667
commit 27a07e20f5
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 1000 additions and 881 deletions

File diff suppressed because it is too large Load Diff

View File

@ -103,19 +103,45 @@ private slots:
void on_addWatchedFolderButton_clicked();
void on_editWatchedFolderButton_clicked();
void on_removeWatchedFolderButton_clicked();
void on_registerDNSBtn_clicked();
void setLocale(const QString &localeStr);
#ifndef DISABLE_WEBUI
void webUIHttpsCertChanged(const Path &path);
void webUIHttpsKeyChanged(const Path &path);
void on_registerDNSBtn_clicked();
#endif
private:
void showEvent(QShowEvent *e) override;
// Methods
void saveOptions();
void loadOptions();
void initializeLanguageCombo();
void saveOptions() const;
void loadBehaviorTabOptions();
void saveBehaviorTabOptions() const;
void loadDownloadsTabOptions();
void saveDownloadsTabOptions() const;
void loadConnectionTabOptions();
void saveConnectionTabOptions() const;
void loadSpeedTabOptions();
void saveSpeedTabOptions() const;
void loadBittorrentTabOptions();
void saveBittorrentTabOptions() const;
void loadRSSTabOptions();
void saveRSSTabOptions() const;
#ifndef DISABLE_WEBUI
void loadWebUITabOptions();
void saveWebUITabOptions() const;
#endif // DISABLE_WEBUI
// General options
void initializeLanguageCombo();
QString getLocale() const;
bool startMinimized() const;
bool isSplashScreenDisabled() const;
@ -158,11 +184,13 @@ private:
int getMaxActiveUploads() const;
int getMaxActiveTorrents() const;
// WebUI
#ifndef DISABLE_WEBUI
bool isWebUiEnabled() const;
QString webUiUsername() const;
QString webUiPassword() const;
bool webUIAuthenticationOk();
bool isAlternativeWebUIPathValid();
#endif
bool schedTimesOk();