QtPass  1.2.1
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 
4 #include <QDialog>
5 
6 namespace Ui {
7 class PasswordDialog;
8 }
9 
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);
27 
32  void setPassword(QString password);
33 
38  QString getPassword();
39 
44  void setTemplate(QString rawFields, bool useTemplate);
45 
49  void setFile(QString);
50 
51  void templateAll(bool templateAll);
52  void setLength(int l);
53  void setPasswordCharTemplate(int t);
54  void usePwgen(bool usePwgen);
55 
56 public slots:
57  void setPass(const QString &output);
58 
59 private slots:
60  void on_checkBoxShow_stateChanged(int arg1);
61  void on_createPasswordButton_clicked();
62 
63 private:
65  const PasswordConfiguration &m_passConfig;
66  QStringList fields;
67  bool templating;
68  bool allFields;
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.
void setFile(QString)
Sets the file (name) in 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)