rsyncui/password.h

36 lines
792 B
C
Raw Permalink Normal View History

#ifndef PASSWORD_H
#define PASSWORD_H
#include "mainwindow.h"
#include <qt5keychain/keychain.h>
#include <qt5keychain/qkeychain_export.h>
2023-03-09 18:13:46 +01:00
extern QApplication a;
void setPassword(QString account, QString pass);
QString getPassword(const QString& name);
/*class Password : QObject
{
2023-03-05 13:39:16 +01:00
public:
QString appName;
QKeychain::WritePasswordJob * passwdJob;
QKeychain::ReadPasswordJob * readPass;
MainWindow * mw;
QString password;
2023-03-09 18:13:46 +01:00
QSettings passwdSettings{a.applicationName(),a.applicationName()};
2023-03-05 13:39:16 +01:00
Password();
~Password();
2023-03-05 13:39:16 +01:00
void store(QString, QString);
QString read(QString);
bool remove(QString);
2023-03-05 13:39:16 +01:00
private slots:
2023-03-09 18:13:46 +01:00
void storeFinished();
void readFinished();
};*/
#endif // PASSWORD_H