diff options
author | Saturneric <[email protected]> | 2022-01-22 15:42:43 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-01-22 15:42:43 +0000 |
commit | 92da87923ca3ceee7a63143cddd6b88d1fc6b2fb (patch) | |
tree | 96f29ee61701ade3d89728861b0cc646a0396633 /src/ui/keypair_details/KeySetExpireDateDialog.h | |
parent | <doc, refactor>(ui): Tidy up part of the code of ui and related parts (diff) | |
download | GpgFrontend-92da87923ca3ceee7a63143cddd6b88d1fc6b2fb.tar.gz GpgFrontend-92da87923ca3ceee7a63143cddd6b88d1fc6b2fb.zip |
<refactor>(ui): tidy up codes and add comments.
1. tidy up keypair_details.
Diffstat (limited to '')
-rw-r--r-- | src/ui/keypair_details/KeySetExpireDateDialog.h | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/src/ui/keypair_details/KeySetExpireDateDialog.h b/src/ui/keypair_details/KeySetExpireDateDialog.h index d4386e43..3501794d 100644 --- a/src/ui/keypair_details/KeySetExpireDateDialog.h +++ b/src/ui/keypair_details/KeySetExpireDateDialog.h @@ -37,25 +37,56 @@ namespace GpgFrontend::UI { class KeySetExpireDateDialog : public QDialog { Q_OBJECT public: + /** + * @brief Construct a new Key Set Expire Date Dialog object + * + * @param key_id + * @param parent + */ explicit KeySetExpireDateDialog(const KeyId& key_id, QWidget* parent = nullptr); + /** + * @brief Construct a new Key Set Expire Date Dialog object + * + * @param key_id + * @param subkey_fpr + * @param parent + */ explicit KeySetExpireDateDialog(const KeyId& key_id, std::string subkey_fpr, QWidget* parent = nullptr); signals: - void signalKeyExpireDateUpdated(); + /** + * @brief + * + */ + void SignalKeyExpireDateUpdated(); private: + /** + * @brief + * + */ void init(); - std::shared_ptr<Ui_ModifiedExpirationDateTime> ui; - const GpgKey mKey; - const SubkeyId mSubkey; + std::shared_ptr<Ui_ModifiedExpirationDateTime> ui_; ///< + const GpgKey m_key_; ///< + const SubkeyId m_subkey_; ///< private slots: - void slotConfirm(); - void slotNonExpiredChecked(int state); + /** + * @brief + * + */ + void slot_confirm(); + + /** + * @brief + * + * @param state + */ + void slot_non_expired_checked(int state); }; } // namespace GpgFrontend::UI |