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/import_export/KeyImportDetailDialog.h"
34 #include "ui/import_export/KeyServerImportDialog.h"
35 #include "ui/key_generate/KeygenDialog.h"
36 #include "ui/keypair_details/KeyDetailsDialog.h"
37 #include "ui/widgets/KeyList.h"
54 explicit KeyMgmt(QWidget* parent =
nullptr);
62 void SlotGenerateSubKey();
68 void SlotExportKeyToKeyPackage();
74 void SlotExportKeyToClipboard();
80 void SlotExportAsOpenSSHFormat();
86 void SlotDeleteSelectedKeys();
92 void SlotDeleteCheckedKeys();
98 void SlotGenerateKeyDialog();
104 void SlotShowKeyDetails();
110 void SlotSaveWindowState();
116 void SlotImportKeyPackage();
124 void SignalStatusBarChanged(QString);
130 void SignalKeyStatusUpdated();
161 QMenu* generate_key_menu_{};
162 QMenu* import_key_menu_{};
163 QAction* open_key_file_act_{};
164 QAction* export_key_to_file_act_{};
165 QAction* export_key_as_open_ssh_format_{};
166 QAction* export_key_to_clipboard_act_{};
167 QAction* delete_checked_keys_act_{};
168 QAction* delete_selected_keys_act_{};
169 QAction* generate_key_dialog_act_{};
170 QAction* generate_key_pair_act_{};
171 QAction* generate_subkey_act_{};
172 QAction* import_key_from_clipboard_act_{};
173 QAction* import_key_from_file_act_{};
174 QAction* import_key_from_key_server_act_{};
175 QAction* import_keys_from_key_package_act_{};
176 QAction* close_act_{};
177 QAction* show_key_details_act_{};
191 #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:265
void create_actions()
Create a actions object.
Definition: KeyMgmt.cpp:169
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
GPGFRONTEND_CORE_EXPORT bool write_buffer_to_file(const std::string &path, const std::string &out_buffer)
Definition: GpgConstants.cpp:128
void SyncSettings() noexcept
sync the settings to the file
Definition: GlobalSettingStation.cpp:33
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
void closeEvent(QCloseEvent *event) override
Definition: KeyMgmt.cpp:409
KeyIdArgsListPtr GetChecked()
Get the Checked object.
Definition: KeyList.cpp:181
void AddMenuAction(QAction *act)
Definition: KeyList.cpp:300
Definition: KeyServerImportDialog.h:43
Definition: KeyDetailsDialog.h:37
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:288
bool IsPrivateKey() const
Definition: GpgKey.cpp:140
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:328
void SlotImportKeyFromKeyServer(QWidget *parent)
Definition: UserInterfaceUtils.cpp:204
Definition: KeyList.h:152
bool IsExpired() const
Definition: GpgKey.cpp:142
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:144
bool IsDisabled() const
Definition: GpgKey.cpp:146
bool IsHasMasterKey() const
Definition: GpgKey.cpp:148
static CommonUtils * GetInstance()
Get the Instance object.
Definition: UserInterfaceUtils.cpp:143
void DeleteKeys(KeyIdArgsListPtr key_ids)
Definition: GpgKeyOpera.cpp:52
void SignalRefreshStatusBar(const QString &message, int timeout)