KeyPairOperaTab.h
#ifndef GPGFRONTEND_KEYPAIROPERATAB_H
#define GPGFRONTEND_KEYPAIROPERATAB_H
#include "core/function/gpg/GpgKeyGetter.h"
#include "ui/GpgFrontendUI.h"
namespace GpgFrontend::UI {
class KeyPairOperaTab : public QWidget {
Q_OBJECT
public:
KeyPairOperaTab(const std::string& key_id, QWidget* parent);
void CreateOperaMenu();
private slots:
void slot_export_private_key();
void slot_export_short_private_key();
void slot_export_public_key();
void slot_modify_edit_datetime();
void slot_modify_password();
void slot_upload_key_to_server();
void slot_update_key_from_server();
void slot_gen_revoke_cert();
void slot_modify_tofu_policy();
private:
GpgKey m_key_;
QMenu* key_server_opera_menu_{};
QMenu* secret_key_export_opera_menu_{};
};
} // namespace GpgFrontend::UI
#endif // GPGFRONTEND_KEYPAIROPERATAB_H
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::write_buffer_to_file
GPGFRONTEND_CORE_EXPORT bool write_buffer_to_file(const std::string &path, const std::string &out_buffer)
Definition: GpgConstants.cpp:128
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:170
GpgFrontend::UI::KeyPairOperaTab::slot_export_private_key
void slot_export_private_key()
Definition: KeyPairOperaTab.cpp:217
GpgFrontend::GpgKeyGetter
Definition: GpgKeyGetter.h:45
GpgFrontend::GpgKey::GetEmail
std::string GetEmail() const
Definition: GpgKey.cpp:60
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:275
GpgFrontend::GpgKey::IsPrivateKey
bool IsPrivateKey() const
Definition: GpgKey.cpp:138
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:63
GpgFrontend::UI::CommonUtils::SlotExecuteGpgCommand
void SlotExecuteGpgCommand(const QStringList &arguments, const std::function< void(QProcess *)> &interact_func)
Definition: UserInterfaceUtils.cpp:215
GpgFrontend::GpgKey::IsHasMasterKey
bool IsHasMasterKey() const
Definition: GpgKey.cpp:146
GpgFrontend::UI::CommonUtils::GetInstance
static CommonUtils * GetInstance()
Get the Instance object.
Definition: UserInterfaceUtils.cpp:143
GpgFrontend::GpgKeyOpera::ModifyTOFUPolicy
GpgFrontend::GpgError ModifyTOFUPolicy(const GpgKey &key, gpgme_tofu_policy_t tofu_policy)
Definition: GpgKeyOpera.cpp:284
GpgFrontend::GpgKey::GetFingerprint
std::string GetFingerprint() const
Definition: GpgKey.cpp:68
GpgFrontend::GpgKey
Definition: GpgKey.h:41
GpgFrontend::GpgKey::GetName
std::string GetName() const
Definition: GpgKey.cpp:56