From 30462db48d38965883433f7258578c3bd5e12f4b Mon Sep 17 00:00:00 2001 From: nils Date: Tue, 14 Oct 2008 11:29:58 +0000 Subject: added key generation to keymanagement git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@189 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- keymgmt.h | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'keymgmt.h') diff --git a/keymgmt.h b/keymgmt.h index db9fe8f..5929d82 100755 --- a/keymgmt.h +++ b/keymgmt.h @@ -31,7 +31,6 @@ class QString; class QFileDialog; class QStringList; class QIcon; -class QMessageBox; class QAction; class QMenu; class QApplication; @@ -53,18 +52,24 @@ public slots: void exportKeyToClipboard(); void deleteCheckedKeys(); void deleteSelectedKeys(); + +private slots: + void keyGenAccept(); + void generateKeyDialog(); private: void createMenus(); void createActions(); void createToolBars(); + // int checkPassWordStrength(QString password); KeyList *mKeyList; QString mIconPath; GpgME::Context *mCtx; QMenu *fileMenu; QMenu *keyMenu; + QDialog *genkeyDialog; QAction *importKeyFromFileAct; QAction *importKeyFromEditAct; QAction *importKeyFromClipboardAct; @@ -72,7 +77,26 @@ private: QAction *exportKeyToClipboardAct; QAction *deleteCheckedKeysAct; QAction *deleteSelectedKeysAct; + QAction *generateKeyDialogAct; QAction *closeAct; + + + /** + * Variables For Key-Generation + */ + QLabel *nameLabel; + QLabel *emailLabel; + QLabel *commentLabel; + QLabel *keySizeLabel; + QLabel *passwordLabel; + QLabel *repeatpwLabel; + QLabel *errorLabel; + QLineEdit *nameEdit; + QLineEdit *emailEdit; + QLineEdit *commentEdit; + QLineEdit *passwordEdit; + QLineEdit *repeatpwEdit; + QSpinBox *keySizeSpinBox; }; #endif // __KEYMGMT_H__ -- cgit