// // Created by eric on 2021/5/24. // #ifndef GPGFRONTEND_KEYUIDSIGNDIALOG_H #define GPGFRONTEND_KEYUIDSIGNDIALOG_H #include "GpgFrontend.h" #include "gpg/GpgContext.h" #include "ui/widgets/KeyList.h" class KeyUIDSignDialog : public QDialog { Q_OBJECT public: explicit KeyUIDSignDialog(GpgME::GpgContext *ctx, const GpgKey &key, const QVector &uid, QWidget *parent = nullptr); private: GpgME::GpgContext *mCtx; KeyList *mKeyList; QPushButton *signKeyButton; QDateTimeEdit *expiresEdit; QCheckBox *nonExpireCheck; const QVector mUids; const GpgKey &mKey; private slots: void slotSignKey(bool clicked); }; #endif //GPGFRONTEND_KEYUIDSIGNDIALOG_H