QtPass
1.4.0
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
#ifndef PASSWORDCONFIGURATION_H
2
#define PASSWORDCONFIGURATION_H
3
4
#include <QString>
5
10
struct
PasswordConfiguration
{
14
enum
characterSet
{
15
ALLCHARS
= 0,
16
ALPHABETICAL
,
17
ALPHANUMERIC
,
18
CUSTOM
,
19
CHARSETS_COUNT
// have to be last, for easier initialization of arrays
20
}
selected
;
24
int
length
;
28
QString
Characters
[
CHARSETS_COUNT
];
29
PasswordConfiguration
() :
selected
(
ALLCHARS
),
length
(16) {
30
Characters
[
ALLCHARS
] =
31
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890~!@#$%^&"
32
"*()_-+={}[]|:;<>,.?"
;
/*AllChars*/
33
Characters
[
ALPHABETICAL
] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
34
"vwxyz"
;
/*Only Alphabetical*/
35
Characters
[
ALPHANUMERIC
] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
36
"vwxyz1234567890"
;
/*Alphabetical and Numerical*/
37
Characters
[
CUSTOM
] =
Characters
[
ALLCHARS
];
// this may be redefined by user
38
}
39
};
40
41
#endif
// PASSWORDCONFIGURATION_H
PasswordConfiguration
Holds the Password configuration settings.
Definition:
passwordconfiguration.h:10
PasswordConfiguration::length
int length
Length of the password.
Definition:
passwordconfiguration.h:24
PasswordConfiguration::selected
enum PasswordConfiguration::characterSet selected
PasswordConfiguration::characterSet
characterSet
The selected character set.
Definition:
passwordconfiguration.h:14
PasswordConfiguration::ALPHABETICAL
@ ALPHABETICAL
Definition:
passwordconfiguration.h:16
PasswordConfiguration::CHARSETS_COUNT
@ CHARSETS_COUNT
Definition:
passwordconfiguration.h:19
PasswordConfiguration::ALLCHARS
@ ALLCHARS
Definition:
passwordconfiguration.h:15
PasswordConfiguration::CUSTOM
@ CUSTOM
Definition:
passwordconfiguration.h:18
PasswordConfiguration::ALPHANUMERIC
@ ALPHANUMERIC
Definition:
passwordconfiguration.h:17
PasswordConfiguration::Characters
QString Characters[CHARSETS_COUNT]
The different character sets.
Definition:
passwordconfiguration.h:28
PasswordConfiguration::PasswordConfiguration
PasswordConfiguration()
Definition:
passwordconfiguration.h:29
Generated by
1.9.6