passwordmanager/gui/passwordgeneratordialog.h

37 lines
706 B
C
Raw Normal View History

2016-08-29 20:21:24 +02:00
#ifndef PASSWORDGENERATORDIALOG_H
#define PASSWORDGENERATORDIALOG_H
#include <passwordfile/util/opensslrandomdevice.h>
#include <QDialog>
#include <vector>
namespace QtGui {
namespace Ui {
class PasswordGeneratorDialog;
}
2017-05-01 03:26:04 +02:00
class PasswordGeneratorDialog : public QDialog {
2016-08-29 20:21:24 +02:00
Q_OBJECT
2017-05-01 03:26:04 +02:00
2016-08-29 20:21:24 +02:00
public:
explicit PasswordGeneratorDialog(QWidget *parent = 0);
~PasswordGeneratorDialog();
2017-05-01 03:26:04 +02:00
2016-08-29 20:21:24 +02:00
private Q_SLOTS:
void generateNewPassword();
void handleCheckedCategoriesChanged();
void handlePasswordChanged();
void copyPassword();
private:
Ui::PasswordGeneratorDialog *m_ui;
std::vector<char> m_charset;
Util::OpenSslRandomDevice m_random;
};
}
#endif // PASSWORDGENERATORDIALOG_H