diff options
author | Jonathan Klimt <jounathaen@mail.de> | 2016-10-11 20:07:14 +0200 |
---|---|---|
committer | Jonathan Klimt <jounathaen@mail.de> | 2016-10-11 20:07:14 +0200 |
commit | 80aee9701775ec35aa6bbf4d9b25b65320ffb54b (patch) | |
tree | 9ecd2e3a00085143a0757a5fd8c5bbd0dbd80037 /mainwindow.h | |
parent | 7bd204010d99b34b82e64e355ada120a5ffa7df3 (diff) |
Added Password Generator Templates
Diffstat (limited to 'mainwindow.h')
-rw-r--r-- | mainwindow.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/mainwindow.h b/mainwindow.h index 9c69fec6..e3b61881 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -33,6 +33,24 @@ struct execQueueItem { struct UserInfo; /*! + \struct passwordConfiguration + \brief holds the Password configuration settings + */ +struct passwordConfiguration{ + int selected; + int length; + QString Characters[4]; + passwordConfiguration(){ + length = 16; + enum selected {ALLCHARS, ALPHABETICAL, ALPHANUMERIC, CUSTOM}; + Characters[ALLCHARS] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890~!@#$%^&*()_-+={}[]|:;<>,.?"; /*AllChars*/ + Characters[ALPHABETICAL] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; /*Only Alphabetical*/ + Characters[ALPHANUMERIC] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"; /*Alphabetical and Numerical*/ + Characters[CUSTOM] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890~!@#$%^&*()_-+={}[]|:;<>,.?"; /*Custom*/ + } +}; + +/*! \class MainWindow \brief The MainWindow class does way too much, not only is it a switchboard, configuration handler and more, it's also the process-manager. @@ -67,6 +85,8 @@ public: void config(); void executePassGitInit(); + passwordConfiguration pwdConfig; + protected: void closeEvent(QCloseEvent *event); void keyPressEvent(QKeyEvent *event); @@ -155,8 +175,6 @@ private: bool avoidNumbers; bool lessRandom; bool useSymbols; - int passwordLength; - QString passwordChars; bool useTemplate; QString passTemplate; bool templateAllFields; |