|
QtPass 2.0.0
Developer documentation
|
Holds the password generator settings: which character set is selected, the alphabet of every set, and the password length. More...
#include <passwordconfiguration.h>
Public Types | |
| enum | CharacterSet { ALLCHARS = 0 , ALPHABETICAL , ALPHANUMERIC , CUSTOM , CHARSETS_COUNT } |
| Character set options for password generation; also the index into Characters. More... | |
Public Member Functions | |
| PasswordConfiguration () | |
| Construct a PasswordConfiguration with sensible defaults. | |
Public Attributes | |
| CharacterSet | selected {ALLCHARS} |
| Currently active character set selection. | |
| int | length {16} |
| Length of the generated password, in characters. | |
| QString | Characters [CHARSETS_COUNT] |
| The alphabet of each character set, indexed by CharacterSet. Only the CUSTOM entry is meant to be changed after construction. | |
Holds the password generator settings: which character set is selected, the alphabet of every set, and the password length.
Loaded from and saved to QSettings by QtPassSettings; PasswordDialog reads it when the user presses "Generate" and ConfigDialog edits it.
Definition at line 22 of file passwordconfiguration.h.
Character set options for password generation; also the index into Characters.
| Enumerator | ||
|---|---|---|
| ALLCHARS | 0 | Letters, digits and ASCII punctuation. |
| ALPHABETICAL | Upper- and lower-case ASCII letters only. | |
| ALPHANUMERIC | ASCII letters and digits. | |
| CUSTOM | User-defined alphabet, edited in the settings dialog. | |
| CHARSETS_COUNT | Sentinel, not a character set: the number of sets, used to size Characters. Must stay last. | |
Definition at line 27 of file passwordconfiguration.h.
|
inline |
Construct a PasswordConfiguration with sensible defaults.
Definition at line 51 of file passwordconfiguration.h.
| QString PasswordConfiguration::Characters[CHARSETS_COUNT] |
The alphabet of each character set, indexed by CharacterSet. Only the CUSTOM entry is meant to be changed after construction.
Definition at line 47 of file passwordconfiguration.h.
| int PasswordConfiguration::length {16} |
Length of the generated password, in characters.
Definition at line 42 of file passwordconfiguration.h.
| CharacterSet PasswordConfiguration::selected {ALLCHARS} |
Currently active character set selection.
Definition at line 38 of file passwordconfiguration.h.