QtPass
1.5.1
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
src
passwordconfiguration.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2016 Anne Jan Brouwer
2
// SPDX-License-Identifier: GPL-3.0-or-later
3
#ifndef SRC_PASSWORDCONFIGURATION_H_
4
#define SRC_PASSWORDCONFIGURATION_H_
5
6
#include <QString>
7
12
struct
PasswordConfiguration
{
16
enum
characterSet
{
17
ALLCHARS
= 0,
18
ALPHABETICAL
,
19
ALPHANUMERIC
,
20
CUSTOM
,
21
CHARSETS_COUNT
// have to be last, for easier initialization of arrays
22
}
selected
;
26
int
length
;
30
QString
Characters
[
CHARSETS_COUNT
];
31
PasswordConfiguration
() :
selected
(
ALLCHARS
),
length
(16) {
32
Characters
[
ALLCHARS
] =
33
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890~!@#$%^&"
34
"*()_-+={}[]|:;<>,.?"
;
/*AllChars*/
35
Characters
[
ALPHABETICAL
] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
36
"vwxyz"
;
/*Only Alphabetical*/
37
Characters
[
ALPHANUMERIC
] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
38
"vwxyz1234567890"
;
/*Alphabetical and Numerical*/
39
Characters
[
CUSTOM
] =
Characters
[
ALLCHARS
];
// may be redefined by user
40
}
41
};
42
43
#endif
// SRC_PASSWORDCONFIGURATION_H_
PasswordConfiguration
Holds the Password configuration settings.
Definition
passwordconfiguration.h:12
PasswordConfiguration::length
int length
Length of the password.
Definition
passwordconfiguration.h:26
PasswordConfiguration::selected
enum PasswordConfiguration::characterSet selected
PasswordConfiguration::characterSet
characterSet
The selected character set.
Definition
passwordconfiguration.h:16
PasswordConfiguration::ALPHABETICAL
@ ALPHABETICAL
Definition
passwordconfiguration.h:18
PasswordConfiguration::CHARSETS_COUNT
@ CHARSETS_COUNT
Definition
passwordconfiguration.h:21
PasswordConfiguration::ALLCHARS
@ ALLCHARS
Definition
passwordconfiguration.h:17
PasswordConfiguration::CUSTOM
@ CUSTOM
Definition
passwordconfiguration.h:20
PasswordConfiguration::ALPHANUMERIC
@ ALPHANUMERIC
Definition
passwordconfiguration.h:19
PasswordConfiguration::Characters
QString Characters[CHARSETS_COUNT]
The different character sets.
Definition
passwordconfiguration.h:30
PasswordConfiguration::PasswordConfiguration
PasswordConfiguration()
Definition
passwordconfiguration.h:31
Generated by
1.9.8