aboutsummaryrefslogtreecommitdiffstats
path: root/keygendialog.h
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-01-26 19:21:51 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-01-26 19:21:51 +0000
commitd02a237cb2e55eb4aa330fd3da9309e7ecbe8768 (patch)
treeb5eb7cb2cd1d837adabd8617e232653f5102af29 /keygendialog.h
parentshow messagebox, when key export failed. Added more comments (diff)
downloadgpg4usb-d02a237cb2e55eb4aa330fd3da9309e7ecbe8768.tar.gz
gpg4usb-d02a237cb2e55eb4aa330fd3da9309e7ecbe8768.zip
refresh files
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@782 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keygendialog.h')
-rw-r--r--keygendialog.h54
1 files changed, 31 insertions, 23 deletions
diff --git a/keygendialog.h b/keygendialog.h
index 2c6292a..f2de274 100644
--- a/keygendialog.h
+++ b/keygendialog.h
@@ -42,35 +42,43 @@ public:
private:
void generateKeyDialog();
+
+ /**
+ * @details Check the password strength of the text in the passwordEdit member
+ *
+ * @return digit between 0 and 6, the higher the more secure is the password
+ */
int checkPassWordStrength();
- GpgME::GpgContext *mCtx;
- KeyGenThread *keyGenThread;
- QStringList errorMessages;
- QDialogButtonBox *buttonBox;
- QLabel *nameLabel;
- QLabel *emailLabel;
- QLabel *commentLabel;
- QLabel *keySizeLabel;
- QLabel *passwordLabel;
- QLabel *repeatpwLabel;
- QLabel *errorLabel;
- QLabel *dateLabel;
- QLabel *expireLabel;
- QLabel *pwStrengthLabel;
- QLineEdit *nameEdit;
- QLineEdit *emailEdit;
- QLineEdit *commentEdit;
- QLineEdit *passwordEdit;
- QLineEdit *repeatpwEdit;
- QSpinBox *keySizeSpinBox;
- QDateTimeEdit *dateEdit;
- QCheckBox *expireCheckBox;
- QSlider *pwStrengthSlider;
+ GpgME::GpgContext *mCtx; /** The current gpg context */
+ KeyGenThread *keyGenThread; /** Thread for key generation */
+ QStringList errorMessages; /** List of errors occuring when checking entries of lineedits */
+ QDialogButtonBox *buttonBox; /** Box for standardbuttons */
+ QLabel *errorLabel; /** Label containing error message */
+ QLineEdit *nameEdit; /** Lineedit for the keys name */
+ QLineEdit *emailEdit; /** Lineedit for the keys email */
+ QLineEdit *commentEdit; /** Lineedit for the keys comment */
+ QLineEdit *passwordEdit; /** Lineedit for the keys password */
+ QLineEdit *repeatpwEdit; /** Lineedit for the repetition of the keys password */
+ QSpinBox *keySizeSpinBox; /** Spinbox for the keys size (in bit) */
+ QDateTimeEdit *dateEdit; /** Dateedit for expiration date */
+ QCheckBox *expireCheckBox; /** Checkbox, if key should expire */
+ QSlider *pwStrengthSlider; /** Slider showing the password strength */
private slots:
+ /**
+ * @details when expirebox was checked/unchecked, enable/disable the expiration date box
+ */
void expireBoxChanged();
+
+ /**
+ * @details When passwordedit changed, set new value for password strength slider
+ */
void passwordEditChanged();
+
+ /**
+ * @details check all lineedits for false entries. Show error, when there is one, otherwise generate the key
+ */
void keyGenAccept();
};