GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
32 #include "ui/GpgFrontendUI.h"
33 #include "ui/dialog/import_export/KeyImportDetailDialog.h"
34 #include "ui/dialog/import_export/KeyServerImportDialog.h"
35 #include "ui/dialog/key_generate/KeygenDialog.h"
36 #include "ui/dialog/keypair_details/KeyDetailsDialog.h"
37 #include "ui/main_window/GeneralMainWindow.h"
38 #include "ui/widgets/KeyList.h"
55 explicit KeyMgmt(QWidget* parent =
nullptr);
63 void SlotGenerateSubKey();
69 void SlotExportKeyToKeyPackage();
75 void SlotExportKeyToClipboard();
81 void SlotExportAsOpenSSHFormat();
87 void SlotDeleteSelectedKeys();
93 void SlotDeleteCheckedKeys();
99 void SlotGenerateKeyDialog();
105 void SlotShowKeyDetails();
111 void SlotImportKeyPackage();
119 void SignalStatusBarChanged(QString);
125 void SignalKeyStatusUpdated();
156 QMenu* generate_key_menu_{};
157 QMenu* import_key_menu_{};
158 QAction* open_key_file_act_{};
159 QAction* export_key_to_file_act_{};
160 QAction* export_key_as_open_ssh_format_{};
161 QAction* export_key_to_clipboard_act_{};
162 QAction* delete_checked_keys_act_{};
163 QAction* delete_selected_keys_act_{};
164 QAction* generate_key_dialog_act_{};
165 QAction* generate_key_pair_act_{};
166 QAction* generate_subkey_act_{};
167 QAction* import_key_from_clipboard_act_{};
168 QAction* import_key_from_file_act_{};
169 QAction* import_key_from_key_server_act_{};
170 QAction* import_keys_from_key_package_act_{};
171 QAction* close_act_{};
172 QAction* show_key_details_act_{};
178 #endif // __KEYMGMT_H__
KeyMgmt(QWidget *parent=nullptr)
Construct a new Key Mgmt object.
Definition: KeyMgmt.cpp:46
Definition: FileReadTask.cpp:31
void create_menus()
Create a menus object.
Definition: KeyMgmt.cpp:219
void create_actions()
Create a actions object.
Definition: KeyMgmt.cpp:123
static bool ImportKeyPackage(const std::filesystem::path &key_package_path, const std::filesystem::path &phrase_path, GpgFrontend::GpgImportInformation &import_info)
import key package
Definition: KeyPackageOperator.cpp:71
Definition: GeneralMainWindow.h:39
GPGFRONTEND_CORE_EXPORT bool write_buffer_to_file(const std::string &path, const std::string &out_buffer)
Definition: GpgConstants.cpp:128
static GlobalSettingStation & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:170
libconfig::Setting & GetUISettings() noexcept
Definition: GlobalSettingStation.h:63
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
KeyIdArgsListPtr GetChecked()
Get the Checked object.
Definition: KeyList.cpp:181
void AddMenuAction(QAction *act)
Definition: KeyList.cpp:300
Definition: KeyServerImportDialog.h:46
Definition: KeyDetailsDialog.h:38
GpgKey GetKey(const std::string &id, bool use_cache=true)
Get the Key object.
Definition: GpgKeyGetter.cpp:47
KeyIdArgsListPtr GetSelected()
Get the Selected object.
Definition: KeyList.cpp:253
void SlotImportKeyFromFile(QWidget *parent)
Definition: UserInterfaceUtils.cpp:188
void create_tool_bars()
Create a tool bars object.
Definition: KeyMgmt.cpp:242
bool IsPrivateKey() const
Definition: GpgKey.cpp:138
void SetDoubleClickedAction(std::function< void(const GpgKey &, QWidget *)> action)
Set the Double Clicked Action object.
Definition: KeyList.cpp:403
void delete_keys_with_warning(GpgFrontend::KeyIdArgsListPtr uidList)
Definition: KeyMgmt.cpp:282
void SlotImportKeyFromKeyServer(QWidget *parent)
Definition: UserInterfaceUtils.cpp:204
Definition: KeyList.h:152
bool IsExpired() const
Definition: GpgKey.cpp:140
static SignalStation * GetInstance()
Get the Instance object.
Definition: SignalStation.cpp:37
void SlotImportKeyFromClipboard(QWidget *parent)
Definition: UserInterfaceUtils.cpp:209
bool IsRevoked() const
Definition: GpgKey.cpp:142
bool IsDisabled() const
Definition: GpgKey.cpp:144
bool IsHasMasterKey() const
Definition: GpgKey.cpp:146
static CommonUtils * GetInstance()
Get the Instance object.
Definition: UserInterfaceUtils.cpp:143
void DeleteKeys(KeyIdArgsListPtr key_ids)
Definition: GpgKeyOpera.cpp:51
void SignalRefreshStatusBar(const QString &message, int timeout)