GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeyMgmt.h
1
29#ifndef __KEYMGMT_H__
30#define __KEYMGMT_H__
31
32#include "import_export/KeyImportDetailDialog.h"
33#include "import_export/KeyServerImportDialog.h"
34#include "ui/GpgFrontendUI.h"
35#include "ui/key_generate/KeygenDialog.h"
36#include "ui/keypair_details/KeyDetailsDialog.h"
37#include "ui/widgets/KeyList.h"
38
39namespace GpgFrontend::UI {
40
45class KeyMgmt : public QMainWindow {
46 Q_OBJECT
47
48 public:
54 explicit KeyMgmt(QWidget* parent = nullptr);
55
56 public slots:
57
62 void SlotGenerateSubKey();
63
68 void SlotExportKeyToKeyPackage();
69
74 void SlotExportKeyToClipboard();
75
80 void SlotExportAsOpenSSHFormat();
81
86 void SlotDeleteSelectedKeys();
87
92 void SlotDeleteCheckedKeys();
93
98 void SlotGenerateKeyDialog();
99
104 void SlotShowKeyDetails();
105
110 void SlotSaveWindowState();
111
116 void SlotImportKeyPackage();
117
118 signals:
119
124 void SignalStatusBarChanged(QString);
125
130 void SignalKeyStatusUpdated();
131
132 private:
137 void create_menus();
138
143 void create_actions();
144
149 void create_tool_bars();
150
156 void delete_keys_with_warning(GpgFrontend::KeyIdArgsListPtr uidList);
157
158 KeyList* key_list_;
159 QMenu* file_menu_{};
160 QMenu* key_menu_{};
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_{};
178 KeyServerImportDialog* import_dialog_{};
179
180 protected:
186 void closeEvent(QCloseEvent* event) override;
187};
188
189} // namespace GpgFrontend::UI
190
191#endif // __KEYMGMT_H__
Definition: KeyList.h:152
Definition: KeyMgmt.h:45
void delete_keys_with_warning(GpgFrontend::KeyIdArgsListPtr uidList)
Definition: KeyMgmt.cpp:328
void create_actions()
Create a actions object.
Definition: KeyMgmt.cpp:169
void create_tool_bars()
Create a tool bars object.
Definition: KeyMgmt.cpp:288
void create_menus()
Create a menus object.
Definition: KeyMgmt.cpp:265
void closeEvent(QCloseEvent *event) override
Definition: KeyMgmt.cpp:409
KeyMgmt(QWidget *parent=nullptr)
Construct a new Key Mgmt object.
Definition: KeyMgmt.cpp:46
Definition: KeyServerImportDialog.h:43
Definition: VerifyDetailsDialog.cpp:33