GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeySetExpireDateDialog.h
1 
29 #ifndef GPGFRONTEND_KEYSETEXPIREDATEDIALOG_H
30 #define GPGFRONTEND_KEYSETEXPIREDATEDIALOG_H
31 
32 #include "core/GpgContext.h"
33 #include "core/model/GpgKey.h"
34 #include "core/model/GpgSubKey.h"
35 #include "ui/GpgFrontendUI.h"
36 
37 class Ui_ModifiedExpirationDateTime;
38 
39 namespace GpgFrontend::UI {
40 
41 class KeySetExpireDateDialog : public QDialog {
42  Q_OBJECT
43  public:
50  explicit KeySetExpireDateDialog(const KeyId& key_id,
51  QWidget* parent = nullptr);
52 
60  explicit KeySetExpireDateDialog(const KeyId& key_id, std::string subkey_fpr,
61  QWidget* parent = nullptr);
62 
63  signals:
68  void SignalKeyExpireDateUpdated();
69 
70  private:
75  void init();
76 
77  std::shared_ptr<Ui_ModifiedExpirationDateTime> ui_;
78  const GpgKey m_key_;
79  const SubkeyId m_subkey_;
80 
81  private slots:
86  void slot_confirm();
87 
93  void slot_non_expired_checked(int state);
94 };
95 
96 } // namespace GpgFrontend::UI
97 
98 #endif // GPGFRONTEND_KEYSETEXPIREDATEDIALOG_H
GpgFrontend::UI::KeySetExpireDateDialog::slot_non_expired_checked
void slot_non_expired_checked(int state)
Definition: KeySetExpireDateDialog.cpp:140
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::UI::KeySetExpireDateDialog
Definition: KeySetExpireDateDialog.h:41
GpgFrontend::GpgKey::GetId
std::string GetId() const
Definition: GpgKey.cpp:54
GpgFrontend::SingletonFunctionObject< GpgKeyOpera >::GetInstance
static GpgKeyOpera & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:170
GpgFrontend::GlobalSettingStation::GetUISettings
libconfig::Setting & GetUISettings() noexcept
Definition: GlobalSettingStation.h:63
GpgFrontend::GpgKeyGetter
Definition: GpgKeyGetter.h:45
GpgFrontend::GpgKeyOpera::SetExpire
GpgError SetExpire(const GpgKey &key, const SubkeyId &subkey_fpr, std::unique_ptr< boost::posix_time::ptime > &expires)
Set the Expire object.
Definition: GpgKeyOpera.cpp:76
GpgFrontend::UI::KeySetExpireDateDialog::KeySetExpireDateDialog
KeySetExpireDateDialog(const KeyId &key_id, QWidget *parent=nullptr)
Construct a new Key Set Expire Date Dialog object.
Definition: KeySetExpireDateDialog.cpp:41
GpgFrontend::GpgKey::GetExpireTime
boost::posix_time::ptime GetExpireTime() const
Definition: GpgKey.cpp:105
GpgFrontend::check_gpg_error_2_err_code
GPGFRONTEND_CORE_EXPORT gpg_err_code_t check_gpg_error_2_err_code(gpgme_error_t err, gpgme_error_t predict=GPG_ERR_NO_ERROR)
Definition: GpgConstants.cpp:63
GpgFrontend::UI::SignalStation::GetInstance
static SignalStation * GetInstance()
Get the Instance object.
Definition: SignalStation.cpp:37
GpgFrontend::GpgKey
Definition: GpgKey.h:41