#ifndef PASSWORDCONFIGURATION_H #define PASSWORDCONFIGURATION_H #include /*! \struct PasswordConfiguration \brief Holds the Password configuration settings */ struct PasswordConfiguration { /** * \brief The selected character set. */ enum characterSet { ALLCHARS = 0, ALPHABETICAL, ALPHANUMERIC, CUSTOM, CHARSETS_COUNT // have to be last, for easier initialization of arrays } selected; /** * \brief Length of the password. */ int length; /** * \brief The different character sets. */ QString Characters[CHARSETS_COUNT]; PasswordConfiguration() : selected(ALLCHARS), length(16) { Characters[ALLCHARS] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890~!@#$%^&" "*()_-+={}[]|:;<>,.?"; /*AllChars*/ Characters[ALPHABETICAL] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu" "vwxyz"; /*Only Alphabetical*/ Characters[ALPHANUMERIC] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu" "vwxyz1234567890"; /*Alphabetical and Numerical*/ Characters[CUSTOM] = Characters[ALLCHARS]; // this may be redefined by user } }; #endif // PASSWORDCONFIGURATION_H