3#ifndef SRC_PASSWORDDIALOG_H_
4#define SRC_PASSWORDDIALOG_H_
6#include "passwordconfiguration.h"
33 QWidget *parent =
nullptr);
96 void on_checkBoxShow_stateChanged(
int arg1);
97 void on_createPasswordButton_clicked();
102 Ui::PasswordDialog *ui;
104 QStringList m_fields;
109 QList<QLineEdit *> templateLines;
110 QList<QLineEdit *> otherLines;
PasswordDialog(QString file, const bool &isNew, QWidget *parent=nullptr)
Construct a PasswordDialog for editing an existing password file.
void setPassword(const QString &password)
Populate the dialog's password field with the given text.
PasswordDialog(PasswordConfiguration passConfig, QWidget *parent=nullptr)
Construct a PasswordDialog for entering a new password.
void setLength(int length)
Set the desired password length shown in the dialog.
void usePwgen(bool usePwgen)
Enable or disable pwgen-style password generation mode.
void setPasswordCharTemplate(int templateIndex)
Set the password character template index.
void setTemplate(const QString &rawFields, bool useTemplate)
Set the template fields and whether templating is enabled.
void templateAll(bool templateAll)
Enable or disable applying the template to all applicable fields.
void setPass(const QString &output)
Populate the dialog's password field from pass show output.
auto getPassword() -> QString
Retrieve the current text from the dialog's password field.
Holds the password configuration settings.