summaryrefslogtreecommitdiffstats
path: root/mainwindow.h
diff options
context:
space:
mode:
authortezeb <tezeb+github@outoftheblue.pl>2016-11-27 20:34:48 +0100
committertezeb <tezeb+github@outoftheblue.pl>2016-11-27 20:37:07 +0100
commitb7ff77750f01d64eea07ba5a8242f5b25e62b8f5 (patch)
tree1dd29556558a5ea4b9ab612e124a0049d9a3cfc8 /mainwindow.h
parent9e67a7ace806cb3d681990762de0161cdb8d6dcd (diff)
password generation refactoring
Diffstat (limited to 'mainwindow.h')
-rw-r--r--mainwindow.h37
1 files changed, 1 insertions, 36 deletions
diff --git a/mainwindow.h b/mainwindow.h
index afd30c15..64abe785 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -1,6 +1,7 @@
#ifndef MAINWINDOW_H_
#define MAINWINDOW_H_
+#include "datahelpers.h"
#include "enums.h"
#include "imitatepass.h"
#include "pass.h"
@@ -24,41 +25,6 @@ namespace Ui {
class MainWindow;
}
-struct UserInfo;
-
-/*!
- \struct passwordConfiguration
- \brief holds the Password configuration settings
- */
-struct passwordConfiguration {
- /**
- * @brief passwordConfiguration::selected character set.
- */
- int selected;
- /**
- * @brief passwordConfiguration::length of password.
- */
- int length;
- /**
- * @brief passwordConfiguration::Characters the different character sets.
- */
- QString Characters[4];
- passwordConfiguration() {
- length = 16;
- selected = 0;
- enum selected { ALLCHARS, ALPHABETICAL, ALPHANUMERIC, CUSTOM };
- Characters[ALLCHARS] =
- "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890~!@#$%^&"
- "*()_-+={}[]|:;<>,.?"; /*AllChars*/
- Characters[ALPHABETICAL] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
- "vwxyz"; /*Only Alphabetical*/
- Characters[ALPHANUMERIC] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu"
- "vwxyz1234567890"; /*Alphabetical and Numerical*/
- Characters[CUSTOM] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1"
- "234567890~!@#$%^&*()_-+={}[]|:;<>,.?"; /*Custom*/
- }
-};
-
/*!
\class MainWindow
\brief The MainWindow class does way too much, not only is it a switchboard,
@@ -80,7 +46,6 @@ public:
QStringList getSecretKeys();
void generateKeyPair(QString, QDialog *);
void userDialog(QString = "");
- QString generatePassword(int length, Enums::characterSet selection);
void config();
void executePassGitInit();