QtPass  1.3.2
Multi-platform GUI for pass, the standard unix password manager.
passworddialog.h
Go to the documentation of this file.
1 #ifndef PASSWORDDIALOG_H_
2 #define PASSWORDDIALOG_H_
3 
5 #include <QDialog>
6 
7 namespace Ui {
8 class PasswordDialog;
9 }
10 
11 class QLineEdit;
12 class QWidget;
13 
20 class PasswordDialog : public QDialog {
21  Q_OBJECT
22 
23 public:
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 
53 public slots:
54  void setPass(const QString &output);
55 
56 private slots:
57  void on_checkBoxShow_stateChanged(int arg1);
58  void on_createPasswordButton_clicked();
59  void on_accepted();
60  void on_rejected();
61 
62 private:
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::setLength
void setLength(int l)
PasswordDialog::setLength PasswordDialog::setLength password length.
Definition: passworddialog.cpp:208
PasswordDialog::setPass
void setPass(const QString &output)
Definition: passworddialog.cpp:229
PasswordDialog::setPasswordCharTemplate
void setPasswordCharTemplate(int t)
PasswordDialog::setPasswordCharTemplate PasswordDialog::setPasswordCharTemplate chose the template st...
Definition: passworddialog.cpp:215
PasswordDialog::getPassword
QString getPassword()
Returns the password as set in the password field in the interface.
Definition: passworddialog.cpp:156
PasswordDialog::usePwgen
void usePwgen(bool usePwgen)
PasswordDialog::usePwgen PasswordDialog::usePwgen don't use own password generator.
Definition: passworddialog.cpp:224
PasswordDialog::templateAll
void templateAll(bool templateAll)
PasswordDialog::templateAll basic setter for use in PasswordDialog::setPassword templating all tokeni...
Definition: passworddialog.cpp:199
Ui
Definition: configdialog.h:9
PasswordDialog::~PasswordDialog
~PasswordDialog()
Pass{}{}wordDialog::~PasswordDialog basic destructor.
Definition: passworddialog.cpp:72
PasswordDialog
PasswordDialog Handles the inserting and editing of passwords.
Definition: passworddialog.h:20
PasswordConfiguration
Holds the Password configuration settings.
Definition: passwordconfiguration.h:10
PasswordDialog::setTemplate
void setTemplate(QString rawFields, bool useTemplate)
Sets content in the template for the interface.
Definition: passworddialog.cpp:174
PasswordDialog::setPassword
void setPassword(QString password)
Sets content in the password field in the interface.
Definition: passworddialog.cpp:124
passwordconfiguration.h
PasswordDialog::PasswordDialog
PasswordDialog(const PasswordConfiguration &passConfig, QWidget *parent=nullptr)
PasswordDialog::PasswordDialog basic constructor.
Definition: passworddialog.cpp:20