KeySetExpireDateDialog.h
#ifndef GPGFRONTEND_KEYSETEXPIREDATEDIALOG_H
#define GPGFRONTEND_KEYSETEXPIREDATEDIALOG_H
#include "core/GpgContext.h"
#include "core/model/GpgKey.h"
#include "core/model/GpgSubKey.h"
#include "ui/GpgFrontendUI.h"
#include "ui/dialog/GeneralDialog.h"
class Ui_ModifiedExpirationDateTime;
namespace GpgFrontend::UI {
class KeySetExpireDateDialog : public GeneralDialog {
Q_OBJECT
public:
explicit KeySetExpireDateDialog(const KeyId& key_id,
QWidget* parent = nullptr);
explicit KeySetExpireDateDialog(const KeyId& key_id, std::string subkey_fpr,
QWidget* parent = nullptr);
signals:
void SignalKeyExpireDateUpdated();
private:
void init();
std::shared_ptr<Ui_ModifiedExpirationDateTime> ui_;
const GpgKey m_key_;
const SubkeyId m_subkey_;
private slots:
void slot_confirm();
void slot_non_expired_checked(int state);
};
} // namespace GpgFrontend::UI
#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:42
GpgFrontend::GpgKey::GetId
std::string GetId() const
Definition: GpgKey.cpp:52
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::UI::GeneralDialog
Definition: GeneralDialog.h:35
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:75
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:103
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