diff options
author | Claudio Maradonna <penguyman@stronzi.org> | 2018-04-24 14:47:11 +0200 |
---|---|---|
committer | Claudio Maradonna <penguyman@stronzi.org> | 2018-04-24 14:47:11 +0200 |
commit | c13ed0828f2705c782fa745d7633bf496ba3dc75 (patch) | |
tree | aef37df07a73dca9942bf5e5e31671c82207c2d4 /src/passworddialog.h | |
parent | 189d075ff7c29660801792df9abd7be7dfdae993 (diff) |
Refactor PasswordDialog
Diffstat (limited to 'src/passworddialog.h')
-rw-r--r-- | src/passworddialog.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/passworddialog.h b/src/passworddialog.h index 1a0085d9..1aeeec34 100644 --- a/src/passworddialog.h +++ b/src/passworddialog.h @@ -23,6 +23,10 @@ class PasswordDialog : public QDialog { public: explicit PasswordDialog(const PasswordConfiguration &passConfig, QWidget *parent = 0); + PasswordDialog(const PasswordConfiguration &passConfig, + const QString &file, + const bool &isNew, + QWidget *parent = 0); ~PasswordDialog(); /*! Sets content in the password field in the interface. @@ -43,11 +47,6 @@ public: */ void setTemplate(QString rawFields, bool useTemplate); - /*! Sets the file (name) in the interface. - \param file name as a QString - */ - void setFile(QString); - void templateAll(bool templateAll); void setLength(int l); void setPasswordCharTemplate(int t); @@ -59,13 +58,17 @@ public slots: private slots: void on_checkBoxShow_stateChanged(int arg1); void on_createPasswordButton_clicked(); + void on_accepted(); + void on_rejected(); private: Ui::PasswordDialog *ui; const PasswordConfiguration &m_passConfig; - QStringList fields; - bool templating; - bool allFields; + QStringList m_fields; + QString m_file; + bool m_templating; + bool m_allFields; + bool m_isNew; QList<QLineEdit *> templateLines; QList<QLineEdit *> otherLines; }; |