rsyncui/password.h

30 lines
605 B
C
Raw Normal View History

#ifndef PASSWORD_H
#define PASSWORD_H
#include "mainwindow.h"
#include <qt5keychain/keychain.h>
#include <qt5keychain/qkeychain_export.h>
2023-03-05 13:39:16 +01:00
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-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:
void finished(QKeychain::Job*);
void readReturn();
};
#endif // PASSWORD_H