Dialog for inserting and editing passwords, optionally using templates.
More...
#include <passworddialog.h>
|
| void | setPass (const QString &output) |
| | Populate the dialog's password field from pass show output.
|
|
| | PasswordDialog (PasswordConfiguration passConfig, QWidget *parent=nullptr) |
| | Construct a PasswordDialog for entering a new password.
|
| | 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.
|
| auto | getPassword () -> QString |
| | Retrieve the current text from the dialog's password field.
|
| 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 | setLength (int length) |
| | Set the desired password length shown in the dialog.
|
| void | setPasswordCharTemplate (int templateIndex) |
| | Set the password character template index.
|
| void | usePwgen (bool usePwgen) |
| | Enable or disable pwgen-style password generation mode.
|
Dialog for inserting and editing passwords, optionally using templates.
Manages UI for entering, generating, and templating password-related fields.
Definition at line 23 of file passworddialog.h.
◆ PasswordDialog() [1/2]
Construct a PasswordDialog for entering a new password.
- Parameters
-
| passConfig | Password generation configuration. |
| parent | Optional parent widget. |
◆ PasswordDialog() [2/2]
| PasswordDialog::PasswordDialog |
( |
QString | file, |
|
|
const bool & | isNew, |
|
|
QWidget * | parent = nullptr ) |
Construct a PasswordDialog for editing an existing password file.
- Parameters
-
| file | Path to the password file being edited. |
| isNew | true if creating a new entry, false if editing existing. |
| parent | Optional parent widget. |
◆ getPassword()
| auto PasswordDialog::getPassword |
( |
| ) |
-> QString |
Retrieve the current text from the dialog's password field.
- Returns
- Current password as a QString.
- See also
- setPassword
◆ setLength()
| void PasswordDialog::setLength |
( |
int | length | ) |
|
Set the desired password length shown in the dialog.
- Parameters
-
| length | Desired password length. |
◆ setPass
| void PasswordDialog::setPass |
( |
const QString & | output | ) |
|
|
slot |
Populate the dialog's password field from pass show output.
- Parameters
-
| output | Output from the pass show command. |
◆ setPassword()
| void PasswordDialog::setPassword |
( |
const QString & | password | ) |
|
Populate the dialog's password field with the given text.
- Parameters
-
| password | Password text to display. |
- See also
- getPassword
◆ setPasswordCharTemplate()
| void PasswordDialog::setPasswordCharTemplate |
( |
int | templateIndex | ) |
|
Set the password character template index.
- Parameters
-
| templateIndex | Index identifying the character template to use. |
◆ setTemplate()
| void PasswordDialog::setTemplate |
( |
const QString & | rawFields, |
|
|
bool | useTemplate ) |
Set the template fields and whether templating is enabled.
- Parameters
-
| rawFields | Template text containing field definitions. |
| useTemplate | true to enable the template, false to disable. |
◆ templateAll()
| void PasswordDialog::templateAll |
( |
bool | templateAll | ) |
|
Enable or disable applying the template to all applicable fields.
- Parameters
-
◆ usePwgen()
| void PasswordDialog::usePwgen |
( |
bool | usePwgen | ) |
|
Enable or disable pwgen-style password generation mode.
- Parameters
-
| usePwgen | true to enable pwgen mode, false to disable. |
The documentation for this class was generated from the following file: