Implement class for handling filesystem paths

PR #15915.
This commit is contained in:
Vladimir Golovnev
2022-02-08 06:03:48 +03:00
committed by GitHub
parent facfa26eed
commit dd1bd8ad10
131 changed files with 2252 additions and 1868 deletions

View File

@@ -30,6 +30,7 @@
#include <QDialog>
#include "base/pathfwd.h"
#include "base/settingvalue.h"
class QCloseEvent;
@@ -112,8 +113,8 @@ private slots:
void on_removeWatchedFolderButton_clicked();
void on_registerDNSBtn_clicked();
void setLocale(const QString &localeStr);
void webUIHttpsCertChanged(const QString &path, ShowError showError);
void webUIHttpsKeyChanged(const QString &path, ShowError showError);
void webUIHttpsCertChanged(const Path &path, ShowError showError);
void webUIHttpsKeyChanged(const Path &path, ShowError showError);
private:
// Methods
@@ -136,9 +137,8 @@ private:
bool preAllocateAllFiles() const;
bool useAdditionDialog() const;
bool addTorrentsInPause() const;
QString getTorrentExportDir() const;
QString getFinishedTorrentExportDir() const;
QString askForExportDir(const QString &currentExportPath);
Path getTorrentExportDir() const;
Path getFinishedTorrentExportDir() const;
// Connection options
int getPort() const;
bool isUPnPEnabled() const;
@@ -162,7 +162,7 @@ private:
Net::ProxyType getProxyType() const;
// IP Filter
bool isIPFilteringEnabled() const;
QString getFilter() const;
Path getFilter() const;
// Queueing system
bool isQueueingSystemEnabled() const;
int getMaxActiveDownloads() const;