QtPass  1.2.3
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 = 0);
26  PasswordDialog(const QString &file, const bool &isNew, QWidget *parent = 0);
28 
33  void setPassword(QString password);
34 
39  QString getPassword();
40 
45  void setTemplate(QString rawFields, bool useTemplate);
46 
47  void templateAll(bool templateAll);
48  void setLength(int l);
49  void setPasswordCharTemplate(int t);
50  void usePwgen(bool usePwgen);
51 
52 public slots:
53  void setPass(const QString &output);
54 
55 private slots:
56  void on_checkBoxShow_stateChanged(int arg1);
57  void on_createPasswordButton_clicked();
58  void on_accepted();
59  void on_rejected();
60 
61 private:
62  Ui::PasswordDialog *ui;
63  PasswordConfiguration m_passConfig;
64  QStringList m_fields;
65  QString m_file;
66  bool m_templating;
67  bool m_allFields;
68  bool m_isNew;
69  QList<QLineEdit *> templateLines;
70  QList<QLineEdit *> otherLines;
71 };
72 
73 #endif // PASSWORDDIALOG_H_
void setTemplate(QString rawFields, bool useTemplate)
Sets content in the template for the interface.
Holds the Password configuration settings.
Definition: configdialog.h:9
void usePwgen(bool usePwgen)
PasswordDialog::usePwgen PasswordDialog::usePwgen don&#39;t use own password generator.
PasswordDialog(const PasswordConfiguration &passConfig, QWidget *parent=0)
PasswordDialog::PasswordDialog basic constructor.
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.
~PasswordDialog()
PasswordDialog::~PasswordDialog basic destructor.
PasswordDialog Handles the inserting and editing of passwords.
void setPassword(QString password)
Sets content in the password field in the interface.
void setPasswordCharTemplate(int t)
PasswordDialog::setPasswordCharTemplate PasswordDialog::setPasswordCharTemplate chose the template st...
QString getPassword()
Returns the password as set in the password field in the interface.
void setPass(const QString &output)