GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeyUIDSignDialog.h
1 
27 #ifndef GPGFRONTEND_KEYUIDSIGNDIALOG_H
28 #define GPGFRONTEND_KEYUIDSIGNDIALOG_H
29 
30 #include "core/GpgContext.h"
31 #include "ui/GpgFrontendUI.h"
32 #include "ui/widgets/KeyList.h"
33 
34 namespace GpgFrontend::UI {
35 
36 class KeyUIDSignDialog : public QDialog {
37  Q_OBJECT
38 
39  public:
47  explicit KeyUIDSignDialog(const GpgKey& key, UIDArgsListPtr uid,
48  QWidget* parent = nullptr);
49 
50  signals:
55  void SignalKeyUIDSignUpdate();
56 
57  private:
58  KeyList* m_key_list_;
59  QPushButton* sign_key_button_;
60  QDateTimeEdit* expires_edit_;
61  QCheckBox* non_expire_check_;
62  UIDArgsListPtr m_uids_;
63 
64  const GpgKey& m_key_;
65 
66  private slots:
72  void slot_sign_key(bool clicked);
73 };
74 
75 } // namespace GpgFrontend::UI
76 
77 #endif // GPGFRONTEND_KEYUIDSIGNDIALOG_H
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::GpgKey::GetId
std::string GetId() const
Definition: GpgKey.cpp:54
GpgFrontend::SingletonFunctionObject< GpgKeyGetter >::GetInstance
static GpgKeyGetter & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:170
GpgFrontend::UI::KeyUIDSignDialog::KeyUIDSignDialog
KeyUIDSignDialog(const GpgKey &key, UIDArgsListPtr uid, QWidget *parent=nullptr)
Construct a new Key U I D Sign Dialog object.
Definition: KeyUIDSignDialog.cpp:35
GpgFrontend::UI::KeyList::AddListGroupTab
void AddListGroupTab(const QString &name, KeyListRow::KeyType selectType=KeyListRow::SECRET_OR_PUBLIC_KEY, KeyListColumn::InfoType infoType=KeyListColumn::ALL, const std::function< bool(const GpgKey &)> &filter=[](const GpgKey &) -> bool { return true;})
Definition: KeyList.cpp:99
GpgFrontend::UI::KeyList::GetChecked
KeyIdArgsListPtr GetChecked()
Get the Checked object.
Definition: KeyList.cpp:181
GpgFrontend::UI::KeyUIDSignDialog
Definition: KeyUIDSignDialog.h:36
GpgFrontend::UI::KeyUIDSignDialog::slot_sign_key
void slot_sign_key(bool clicked)
Definition: KeyUIDSignDialog.cpp:104
GpgFrontend::UI::KeyList
Definition: KeyList.h:152
GpgFrontend::GpgKey::IsExpired
bool IsExpired() const
Definition: GpgKey.cpp:142
GpgFrontend::UI::SignalStation::GetInstance
static SignalStation * GetInstance()
Get the Instance object.
Definition: SignalStation.cpp:37
GpgFrontend::GpgKey::IsRevoked
bool IsRevoked() const
Definition: GpgKey.cpp:144
GpgFrontend::GpgKey::IsDisabled
bool IsDisabled() const
Definition: GpgKey.cpp:146
GpgFrontend::GpgKeyGetter::GetKeys
KeyListPtr GetKeys(const KeyIdArgsListPtr &ids)
Get the Keys object.
Definition: GpgKeyGetter.cpp:148
GpgFrontend::GpgKey::IsHasCertificationCapability
bool IsHasCertificationCapability() const
Definition: GpgKey.cpp:125
GpgFrontend::GpgKey::IsHasMasterKey
bool IsHasMasterKey() const
Definition: GpgKey.cpp:148
GpgFrontend::GpgKey
Definition: GpgKey.h:41