Added support for password protected services

This commit is contained in:
2023-03-01 14:12:38 +01:00
parent e7eafb3117
commit f47160622c
4 changed files with 71 additions and 59 deletions
+5 -3
View File
@@ -75,7 +75,7 @@ class Downloading
QString savePath;
QString user;
QString password;
int port;
int port = 873;
QProcess * process = nullptr;
bool quit = false;
void clear();
@@ -115,6 +115,8 @@ class MainWindow : public QMainWindow
std::vector <QString> serversList;
QSystemTrayIcon * trayIcon;
QString icon = "/usr/share/icons/RsyncUI.png";
bool rescan = false;
QList<QString> bwUnitText {
"KB",
"MB",
@@ -148,7 +150,7 @@ class MainWindow : public QMainWindow
bool isIpAddress(QString server);
QTreeWidgetItem * addTreeRoot(QString name, QString description, bool isDir);
QTreeWidgetItem * addTreeChild(QTreeWidgetItem *parent, QString name, QString size, bool isDir);
void scanDir(QString server, int portN, QTreeWidgetItem *parent = NULL, QString path = "" );
bool scanDir(QString server, int portN, QTreeWidgetItem *parent = NULL, QString path = "" );
void startDownloading();
void loadSettings();
void saveSettings();
@@ -160,7 +162,7 @@ class MainWindow : public QMainWindow
void hideWindow();
void showWindow();
void init();
bool getUserPassword();
bool getUserPassword(bool);
private slots: