GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeyMgmt.h
1 
29 #pragma once
30 
31 #include "core/typedef/GpgTypedef.h"
32 #include "ui/main_window/GeneralMainWindow.h"
33 
34 namespace GpgFrontend::UI {
35 
36 class KeyList;
37 
42 class KeyMgmt : public GeneralMainWindow {
43  Q_OBJECT
44 
45  public:
51  explicit KeyMgmt(QWidget* parent = nullptr);
52 
53  public slots:
54 
59  void SlotGenerateSubKey();
60 
65  void SlotExportKeyToKeyPackage();
66 
71  void SlotExportKeyToClipboard();
72 
77  void SlotExportAsOpenSSHFormat();
78 
83  void SlotDeleteSelectedKeys();
84 
89  void SlotDeleteCheckedKeys();
90 
95  void SlotGenerateKeyDialog();
96 
101  void SlotShowKeyDetails();
102 
107  void SlotImportKeyPackage();
108 
109  signals:
110 
115  void SignalStatusBarChanged(QString);
116 
121  void SignalKeyStatusUpdated();
122 
123  private:
128  void create_menus();
129 
134  void create_actions();
135 
140  void create_tool_bars();
141 
147  void delete_keys_with_warning(KeyIdArgsListPtr uidList);
148 
149  KeyList* key_list_;
150  QMenu* file_menu_{};
151  QMenu* key_menu_{};
152  QMenu* generate_key_menu_{};
153  QMenu* import_key_menu_{};
154  QMenu* export_key_menu_{};
155 
156  QAction* open_key_file_act_{};
157  QAction* export_key_to_file_act_{};
158  QAction* export_key_as_open_ssh_format_{};
159  QAction* export_key_to_clipboard_act_{};
160  QAction* delete_checked_keys_act_{};
161  QAction* delete_selected_keys_act_{};
162  QAction* generate_key_dialog_act_{};
163  QAction* generate_key_pair_act_{};
164  QAction* generate_subkey_act_{};
165  QAction* import_key_from_clipboard_act_{};
166  QAction* import_key_from_file_act_{};
167  QAction* import_key_from_key_server_act_{};
168  QAction* import_keys_from_key_package_act_{};
169  QAction* close_act_{};
170  QAction* show_key_details_act_{};
171  QAction* set_owner_trust_of_key_act_{};
172 };
173 
174 } // namespace GpgFrontend::UI
Definition: GeneralMainWindow.h:38
Definition: KeyList.h:166
Definition: KeyMgmt.h:42
void create_actions()
Create a actions object.
Definition: KeyMgmt.cpp:143
void create_tool_bars()
Create a tool bars object.
Definition: KeyMgmt.cpp:288
void delete_keys_with_warning(KeyIdArgsListPtr uidList)
Definition: KeyMgmt.cpp:326
void create_menus()
Create a menus object.
Definition: KeyMgmt.cpp:264
QAction * open_key_file_act_
<
Definition: KeyMgmt.h:156
KeyMgmt(QWidget *parent=nullptr)
Construct a new Key Mgmt object.
Definition: KeyMgmt.cpp:52
Definition: FileReadTask.cpp:31