GpgFrontend Project A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.

KeyPairOperaTab.h
1
27 #ifndef GPGFRONTEND_KEYPAIROPERATAB_H
28 #define GPGFRONTEND_KEYPAIROPERATAB_H
29
30 #include "core/function/gpg/GpgKeyGetter.h"
31 #include "ui/GpgFrontendUI.h"
32
33 namespace GpgFrontend::UI {
34 class KeyPairOperaTab : public QWidget {
35 Q_OBJECT
36 public:
43 KeyPairOperaTab(const std::string& key_id, QWidget* parent);
44
49 void CreateOperaMenu();
50
51 private slots:
52
56 void slot_export_private_key();
57
62 void slot_export_short_private_key();
63
68 void slot_export_public_key();
69
74 void slot_modify_edit_datetime();
75
80 void slot_modify_password();
81
86 void slot_upload_key_to_server();
87
92 void slot_update_key_from_server();
93
98 void slot_gen_revoke_cert();
99
104 void slot_modify_tofu_policy();
105
106 private:
107 GpgKey m_key_;
108 QMenu* key_server_opera_menu_{};
109 QMenu* secret_key_export_opera_menu_{};
110 };
111 } // namespace GpgFrontend::UI
112
113 #endif // GPGFRONTEND_KEYPAIROPERATAB_H
GpgFrontend::UI
Definition: VerifyDetailsDialog.cpp:33
GpgFrontend::UI::KeySetExpireDateDialog
Definition: KeySetExpireDateDialog.h:41
GpgFrontend::GpgKey::GetId
std::string GetId() const
Definition: GpgKey.cpp:54
GpgFrontend::write_buffer_to_file
GPGFRONTEND_CORE_EXPORT bool write_buffer_to_file(const std::string &path, const std::string &out_buffer)
Definition: GpgConstants.cpp:135
GpgFrontend::UI::KeyPairOperaTab::CreateOperaMenu
void CreateOperaMenu()
Create a Opera Menu object.
Definition: KeyPairOperaTab.cpp:103
GpgFrontend::SingletonFunctionObject< GpgKeyImportExporter >::GetInstance
static GpgKeyImportExporter & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:57
GpgFrontend::UI::KeyPairOperaTab::slot_export_private_key
void slot_export_private_key()
Definition: KeyPairOperaTab.cpp:210
GpgFrontend::GpgKeyGetter
Definition: GpgKeyGetter.h:42
GpgFrontend::GpgKey::GetEmail
std::string GetEmail() const
Definition: GpgKey.cpp:62
GpgFrontend::UI::KeyPairOperaTab::KeyPairOperaTab
KeyPairOperaTab(const std::string &key_id, QWidget *parent)
Construct a new Key Pair Opera Tab object.
Definition: KeyPairOperaTab.cpp:38
GpgFrontend::GpgKeyOpera::ModifyPassword
GpgFrontend::GpgError ModifyPassword(const GpgKey &key)
Definition: GpgKeyOpera.cpp:276
GpgFrontend::GpgKey::IsPrivateKey
bool IsPrivateKey() const
Definition: GpgKey.cpp:140
GpgFrontend::UI::KeyPairOperaTab
Definition: KeyPairOperaTab.h:34
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:64
GpgFrontend::UI::CommonUtils::SlotExecuteGpgCommand
void SlotExecuteGpgCommand(const QStringList &arguments, const std::function< void(QProcess *)> &interact_func)
Definition: UserInterfaceUtils.cpp:183
GpgFrontend::GpgKey::IsHasMasterKey
bool IsHasMasterKey() const
Definition: GpgKey.cpp:148
GpgFrontend::UI::CommonUtils::GetInstance
static CommonUtils * GetInstance()
Get the Instance object.
Definition: UserInterfaceUtils.cpp:124
GpgFrontend::GpgKeyOpera::ModifyTOFUPolicy
GpgFrontend::GpgError ModifyTOFUPolicy(const GpgKey &key, gpgme_tofu_policy_t tofu_policy)
Definition: GpgKeyOpera.cpp:285
GpgFrontend::GpgKey::GetFingerprint
std::string GetFingerprint() const
Definition: GpgKey.cpp:70
GpgFrontend::GpgKey
Definition: GpgKey.h:44
GpgFrontend::GpgKey::GetName
std::string GetName() const
Definition: GpgKey.cpp:58