QtPass  1.2.0-pre
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);
25  ~PasswordDialog();
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_
PasswordDialog Handles the inserting and editing of passwords.
holds the Password configuration settings
Definition: datahelpers.h:11