QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
passwordconfiguration.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2018 Anne Jan Brouwer
2// SPDX-License-Identifier: GPL-3.0-or-later
8#ifndef SRC_PASSWORDCONFIGURATION_H_
9#define SRC_PASSWORDCONFIGURATION_H_
10
11#include <QString>
12#include <array>
13
36
43 int length{16};
48 std::array<QString, CHARSETS_COUNT> Characters;
54 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890~!@#$%^&"
55 "*()_-+={}[]|:;<>,.?"; /*AllChars*/
56 Characters[ALPHABETICAL] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
57 "vwxyz"; /*Only Alphabetical*/
58 Characters[ALPHANUMERIC] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
59 "vwxyz1234567890"; /*Alphabetical and Numerical*/
60 Characters[CUSTOM] = Characters[ALLCHARS]; // may be redefined by user
61 }
62};
63
64#endif // SRC_PASSWORDCONFIGURATION_H_
int length
Length of the generated password, in characters.
CharacterSet selected
Currently active character set selection.
CharacterSet
Character set options for password generation; also the index into Characters.
PasswordConfiguration()
Construct a PasswordConfiguration with sensible defaults.
std::array< QString, CHARSETS_COUNT > Characters
The alphabet of each character set, indexed by CharacterSet. Only the CUSTOM entry is meant to be cha...