added storing password in a secure way
This commit is contained in:
+6
-6
@@ -7,6 +7,7 @@
|
||||
#include "ui_about.h"
|
||||
#include "downloadfile.h"
|
||||
#include "tools.h"
|
||||
#include "password.h"
|
||||
#include <QMainWindow>
|
||||
#include <string>
|
||||
#include <QTreeWidgetItem>
|
||||
@@ -89,7 +90,6 @@ class Downloading
|
||||
class About
|
||||
{
|
||||
public:
|
||||
QString title = "RsyncUI";
|
||||
QString version = "2.9.2";
|
||||
QString author = "Daniel TARTAVEL-JEANNOT";
|
||||
QString licence = "GPL_V3";
|
||||
@@ -106,6 +106,7 @@ class MainWindow : public QMainWindow
|
||||
Ui::MainWindow *ui;
|
||||
MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
// passwdManager;
|
||||
QProgressDialog *progress;
|
||||
Connexion connexion;
|
||||
Connexion downloading;
|
||||
@@ -119,7 +120,6 @@ class MainWindow : public QMainWindow
|
||||
QSystemTrayIcon * trayIcon;
|
||||
QString icon = "/usr/share/icons/RsyncUI.png";
|
||||
bool rescan = false;
|
||||
bool passwordReturned;
|
||||
|
||||
QList<QString> UnitText {
|
||||
tr("B"),
|
||||
@@ -149,7 +149,7 @@ class MainWindow : public QMainWindow
|
||||
|
||||
void displayTree();
|
||||
void populateTree();
|
||||
void populateList();
|
||||
void populateList(int);
|
||||
void listServices();
|
||||
bool validateServer(QString server);
|
||||
bool isIpAddress(QString server);
|
||||
@@ -169,6 +169,8 @@ class MainWindow : public QMainWindow
|
||||
bool getUserPassword(Connexion *);
|
||||
void preparePopulateTree();
|
||||
bool testServicePresence(QString, bool=false);
|
||||
void passwordStore (QString account, QString password);
|
||||
QString passwordGet (QString account);
|
||||
|
||||
private slots:
|
||||
|
||||
@@ -214,11 +216,9 @@ class MainWindow : public QMainWindow
|
||||
|
||||
void setDlSpeed(QString speed);
|
||||
|
||||
void on_loginBox_accepted();
|
||||
|
||||
void on_actionHiddenService_triggered();
|
||||
|
||||
signals:
|
||||
signals:
|
||||
void stopDownloading(QProcess *);
|
||||
void progressSignal(int);
|
||||
void speed(QString);
|
||||
|
||||
Reference in New Issue
Block a user