QtPass 1.4.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
passworddialog.h
Go to the documentation of this file.
1#ifndef PASSWORDDIALOG_H_
2#define PASSWORDDIALOG_H_
3
5#include <QDialog>
6
7namespace Ui {
9}
10
11class QLineEdit;
12class QWidget;
13
20class PasswordDialog : public QDialog {
21 Q_OBJECT
22
23public:
24 explicit PasswordDialog(const PasswordConfiguration &passConfig,
25 QWidget *parent = nullptr);
26 PasswordDialog(const QString &file, const bool &isNew,
27 QWidget *parent = nullptr);
29
34 void setPassword(QString password);
35
40 QString getPassword();
41
46 void setTemplate(QString rawFields, bool useTemplate);
47
48 void templateAll(bool templateAll);
49 void setLength(int l);
50 void setPasswordCharTemplate(int t);
51 void usePwgen(bool usePwgen);
52
53public slots:
54 void setPass(const QString &output);
55
56private slots:
57 void on_checkBoxShow_stateChanged(int arg1);
58 void on_createPasswordButton_clicked();
59 void on_accepted();
60 void on_rejected();
61
62private:
63 Ui::PasswordDialog *ui;
64 PasswordConfiguration m_passConfig;
65 QStringList m_fields;
66 QString m_file;
67 bool m_templating;
68 bool m_allFields;
69 bool m_isNew;
70 QList<QLineEdit *> templateLines;
71 QList<QLineEdit *> otherLines;
72};
73
74#endif // PASSWORDDIALOG_H_
PasswordDialog Handles the inserting and editing of passwords.
void setPasswordCharTemplate(int t)
PasswordDialog::setPasswordCharTemplate PasswordDialog::setPasswordCharTemplate chose the template st...
void setTemplate(QString rawFields, bool useTemplate)
Sets content in the template for the interface.
void setPassword(QString password)
Sets content in the password field in the interface.
~PasswordDialog()
Pass{}{}wordDialog::~PasswordDialog basic destructor.
void usePwgen(bool usePwgen)
PasswordDialog::usePwgen PasswordDialog::usePwgen don't use own password generator.
void templateAll(bool templateAll)
PasswordDialog::templateAll basic setter for use in PasswordDialog::setPassword templating all tokeni...
void setLength(int l)
PasswordDialog::setLength PasswordDialog::setLength password length.
QString getPassword()
Returns the password as set in the password field in the interface.
void setPass(const QString &output)
Definition: configdialog.h:9
Holds the Password configuration settings.