Added support for password protected services
This commit is contained in:
+5
-3
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user