kgpg
kgpgkeygenerate.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef KGPGKEYGENERATE_H
00018 #define KGPGKEYGENERATE_H
00019
00020 #include <KDialog>
00021
00022 #include "kgpgkey.h"
00023
00024 class KComboBox;
00025 class KLineEdit;
00026
00027 class KgpgKeyGenerate : public KDialog
00028 {
00029 Q_OBJECT
00030
00031 public:
00032 KgpgKeyGenerate(QWidget *parent = 0);
00033
00034 bool isExpertMode() const;
00035 QString name() const;
00036 QString email() const;
00037 QString comment() const;
00038 KgpgCore::KgpgKeyAlgo algo() const;
00039 uint size() const;
00040 uint expiration() const;
00041 uint days() const;
00042
00043 private slots:
00044 void slotOk();
00045 void slotUser1();
00046 void slotButtonClicked(int button);
00047 void slotEnableOk();
00048 void slotEnableDays(const int &state);
00049
00050 private:
00051 KComboBox *m_keykind;
00052 KComboBox *m_keysize;
00053 KComboBox *m_keyexp;
00054 KLineEdit *m_days;
00055 KLineEdit *m_comment;
00056 KLineEdit *m_kname;
00057 KLineEdit *m_mail;
00058 bool m_expert;
00059 };
00060
00061 #endif // KGPGKEYGENERATE_H