|
QtPass 1.6.0
Multi-platform GUI for pass, the standard unix password manager.
|
#include <passworddialog.h>
Public Slots | |
| void | setPass (const QString &output) |
| Sets the password from pass show output. | |
Public Member Functions | |
| PasswordDialog (PasswordConfiguration passConfig, QWidget *parent=nullptr) | |
| PasswordDialog::PasswordDialog basic constructor. | |
| PasswordDialog (QString file, const bool &isNew, QWidget *parent=nullptr) | |
| PasswordDialog::PasswordDialog complete constructor. | |
| ~PasswordDialog () override | |
| PasswordDialog::~PasswordDialog basic destructor. | |
| void | setPassword (const QString &password) |
| Sets content in the password field in the interface. | |
| auto | getPassword () -> QString |
| Returns the password as set in the password field in the interface. | |
| void | setTemplate (const QString &rawFields, bool useTemplate) |
| Sets content in the template for the interface. | |
| void | templateAll (bool templateAll) |
| PasswordDialog::templateAll basic setter for use in PasswordDialog::setPassword templating all tokenisable lines. | |
| void | setLength (int l) |
| PasswordDialog::setLength PasswordDialog::setLength password length. | |
| void | setPasswordCharTemplate (int t) |
| PasswordDialog::setPasswordCharTemplate PasswordDialog::setPasswordCharTemplate chose the template style. | |
| void | usePwgen (bool usePwgen) |
| PasswordDialog::usePwgen PasswordDialog::usePwgen don't use own password generator. | |
PasswordDialog — Dialog for inserting and editing passwords, optionally using templates.
Manages UI for entering, generating, and templating password-related fields. Set the text shown in the dialog's password field.
| password | Password text to display. Retrieve the current text from the dialog's password field. |
| rawFields | Template text containing field definitions. |
| useTemplate | Set to true to enable using the provided template, false to disable. Enable or disable applying the template to all applicable fields. |
| templateAll | If true, apply templating to all fields; otherwise apply selectively. Set the desired password length used by the dialog (e.g., for generation or validation). |
| l | Desired password length. Set the password character template identifier that controls allowed/required character classes. |
| t | Identifier describing the character template to use. Enable or disable using the pwgen-style password generator mode. |
| usePwgen | If true, use the pwgen generator behavior; otherwise do not. Populate the dialog's password field with the provided output (slot). |
| output | Password text to place into the dialog. Handler for the "show password" checkbox state change (slot). |
| arg1 | New state value passed by the checkbox. Handler invoked when the create-password button is clicked (slot). Handler invoked when the dialog is accepted (e.g., OK pressed) (slot). Handler invoked when the dialog is rejected (e.g., Cancel pressed) (slot). |
Definition at line 85 of file passworddialog.h.
|
explicit |
PasswordDialog::PasswordDialog basic constructor.
| passConfig | configuration constant |
| parent |
Definition at line 24 of file passworddialog.cpp.
| PasswordDialog::PasswordDialog | ( | QString | file, |
| const bool & | isNew, | ||
| QWidget * | parent = nullptr ) |
PasswordDialog::PasswordDialog complete constructor.
| file | |
| isNew | |
| parent | pointer |
Definition at line 46 of file passworddialog.cpp.
|
override |
PasswordDialog::~PasswordDialog basic destructor.
Definition at line 77 of file passworddialog.cpp.
| auto PasswordDialog::getPassword | ( | ) | -> QString |
Returns the password as set in the password field in the interface.
PasswordDialog::getPassword join the (templated) fields to a QString for writing back.
Definition at line 165 of file passworddialog.cpp.
| void PasswordDialog::setLength | ( | int | l | ) |
PasswordDialog::setLength PasswordDialog::setLength password length.
| l |
Definition at line 219 of file passworddialog.cpp.
|
slot |
Sets the password from pass show output.
| output | Output from pass show command |
Definition at line 244 of file passworddialog.cpp.
| void PasswordDialog::setPassword | ( | const QString & | password | ) |
Sets content in the password field in the interface.
PasswordDialog::setPassword populate the (templated) fields.
| password | the password as a QString |
| password |
Definition at line 133 of file passworddialog.cpp.
| void PasswordDialog::setPasswordCharTemplate | ( | int | t | ) |
PasswordDialog::setPasswordCharTemplate PasswordDialog::setPasswordCharTemplate chose the template style.
| t |
Definition at line 226 of file passworddialog.cpp.
| void PasswordDialog::setTemplate | ( | const QString & | rawFields, |
| bool | useTemplate ) |
Sets content in the template for the interface.
PasswordDialog::setTemplate set the template and create the fields.
| rawFields | is the template as a QString |
| useTemplate | whether the template is used |
| rawFields |
Definition at line 184 of file passworddialog.cpp.
| void PasswordDialog::templateAll | ( | bool | templateAll | ) |
PasswordDialog::templateAll basic setter for use in PasswordDialog::setPassword templating all tokenisable lines.
| templateAll |
Definition at line 210 of file passworddialog.cpp.
| void PasswordDialog::usePwgen | ( | bool | usePwgen | ) |
PasswordDialog::usePwgen PasswordDialog::usePwgen don't use own password generator.
| usePwgen |
Definition at line 235 of file passworddialog.cpp.