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 "datahelpers.h"
5 #include "pass.h"
6 #include <QDialog>
7 #include <QWidget>
8 
9 namespace Ui {
10 class PasswordDialog;
11 }
12 
19 class PasswordDialog : public QDialog {
20  Q_OBJECT
21 
22 public:
23  explicit PasswordDialog(const passwordConfiguration &passConfig,
24  QWidget *parent = 0);
26 
31  void setPassword(QString password);
32 
37  QString getPassword();
38 
42  void setTemplate(QString);
43 
47  void setFile(QString);
48 
49  void useTemplate(bool useTemplate);
50  void templateAll(bool templateAll);
51  void setLength(int l);
52  void setPasswordCharTemplate(int t);
53  void usePwgen(bool usePwgen);
54 
55 public slots:
56  void setPass(const QString &output);
57 
58 private slots:
59  void on_checkBoxShow_stateChanged(int arg1);
60  void on_createPasswordButton_clicked();
61 
62 private:
63  Ui::PasswordDialog *ui;
64  const passwordConfiguration &m_passConfig;
65  QString passTemplate;
66  QStringList fields;
67  bool templating;
68  bool allFields;
69 };
70 
71 #endif // PASSWORDDIALOG_H_
void setFile(QString)
Sets the file (name) in the interface.
PasswordDialog(const passwordConfiguration &passConfig, QWidget *parent=0)
PasswordDialog::PasswordDialog basic constructor.
void usePwgen(bool usePwgen)
PasswordDialog::usePwgen PasswordDialog::usePwgen don&#39;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.
~PasswordDialog()
PasswordDialog::~PasswordDialog basic destructor.
void setTemplate(QString)
Sets content in the template for the interface.
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...
void useTemplate(bool useTemplate)
PasswordDialog::useTemplate basic setter for use in PasswordDialog::useTemplate templating.
QString getPassword()
Returns the password as set in the password field in the interface.
holds the Password configuration settings
Definition: datahelpers.h:11
void setPass(const QString &output)