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 "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"
39 
40 namespace GpgFrontend::UI {
41 
46 class KeyMgmt : public GeneralMainWindow {
47  Q_OBJECT
48 
49  public:
55  explicit KeyMgmt(QWidget* parent = nullptr);
56 
57  public slots:
58 
63  void SlotGenerateSubKey();
64 
69  void SlotExportKeyToKeyPackage();
70 
75  void SlotExportKeyToClipboard();
76 
81  void SlotExportAsOpenSSHFormat();
82 
87  void SlotDeleteSelectedKeys();
88 
93  void SlotDeleteCheckedKeys();
94 
99  void SlotGenerateKeyDialog();
100 
105  void SlotShowKeyDetails();
106 
111  void SlotImportKeyPackage();
112 
113  signals:
114 
119  void SignalStatusBarChanged(QString);
120 
125  void SignalKeyStatusUpdated();
126 
127  private:
132  void create_menus();
133 
138  void create_actions();
139 
144  void create_tool_bars();
145 
151  void delete_keys_with_warning(GpgFrontend::KeyIdArgsListPtr uidList);
152 
153  KeyList* key_list_;
154  QMenu* file_menu_{};
155  QMenu* key_menu_{};
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_{};
173  KeyServerImportDialog* import_dialog_{};
174 };
175 
176 } // namespace GpgFrontend::UI
177 
178 #endif // __KEYMGMT_H__
Definition: GeneralMainWindow.h:39
Definition: KeyList.h:152
Definition: KeyMgmt.h:46
void delete_keys_with_warning(GpgFrontend::KeyIdArgsListPtr uidList)
Definition: KeyMgmt.cpp:290
void create_actions()
Create a actions object.
Definition: KeyMgmt.cpp:126
void create_tool_bars()
Create a tool bars object.
Definition: KeyMgmt.cpp:257
void create_menus()
Create a menus object.
Definition: KeyMgmt.cpp:234
KeyMgmt(QWidget *parent=nullptr)
Construct a new Key Mgmt object.
Definition: KeyMgmt.cpp:46
Definition: KeyServerImportDialog.h:46
Definition: FileReadTask.cpp:29