# GpgFrontend Project: src/ui/main_window/KeyMgmt.h Source File

KeyMgmt.h
#ifndef __KEYMGMT_H__
#define __KEYMGMT_H__
#include "ui/GpgFrontendUI.h"
#include "ui/dialog/import_export/KeyImportDetailDialog.h"
#include "ui/dialog/import_export/KeyServerImportDialog.h"
#include "ui/dialog/key_generate/KeygenDialog.h"
#include "ui/dialog/keypair_details/KeyDetailsDialog.h"
#include "ui/main_window/GeneralMainWindow.h"
#include "ui/widgets/KeyList.h"
namespace GpgFrontend::UI {
class KeyMgmt : public GeneralMainWindow {
Q_OBJECT
public:
explicit KeyMgmt(QWidget* parent = nullptr);
public slots:
void SlotGenerateSubKey();
void SlotExportKeyToKeyPackage();
void SlotExportKeyToClipboard();
void SlotExportAsOpenSSHFormat();
void SlotDeleteSelectedKeys();
void SlotDeleteCheckedKeys();
void SlotGenerateKeyDialog();
void SlotShowKeyDetails();
void SlotImportKeyPackage();
signals:
void SignalStatusBarChanged(QString);
void SignalKeyStatusUpdated();
private:
void create_menus();
void create_actions();
void create_tool_bars();
void delete_keys_with_warning(GpgFrontend::KeyIdArgsListPtr uidList);
KeyList* key_list_;
QMenu* file_menu_{};
QMenu* key_menu_{};
QMenu* generate_key_menu_{};
QMenu* import_key_menu_{};
QAction* open_key_file_act_{};
QAction* export_key_to_file_act_{};
QAction* export_key_as_open_ssh_format_{};
QAction* export_key_to_clipboard_act_{};
QAction* delete_checked_keys_act_{};
QAction* delete_selected_keys_act_{};
QAction* generate_key_dialog_act_{};
QAction* generate_key_pair_act_{};
QAction* generate_subkey_act_{};
QAction* import_key_from_clipboard_act_{};
QAction* import_key_from_file_act_{};
QAction* import_key_from_key_server_act_{};
QAction* import_keys_from_key_package_act_{};
QAction* close_act_{};
QAction* show_key_details_act_{};
KeyServerImportDialog* import_dialog_{};
};
} // namespace GpgFrontend::UI
#endif // __KEYMGMT_H__
GpgFrontend::UI::GeneralMainWindow
Definition: GeneralMainWindow.h:39
GpgFrontend::UI::KeyList
Definition: KeyList.h:152
GpgFrontend::UI::KeyMgmt
Definition: KeyMgmt.h:46
GpgFrontend::UI::KeyMgmt::delete_keys_with_warning
void delete_keys_with_warning(GpgFrontend::KeyIdArgsListPtr uidList)
Definition: KeyMgmt.cpp:283
GpgFrontend::UI::KeyMgmt::create_actions
void create_actions()
Create a actions object.
Definition: KeyMgmt.cpp:124
GpgFrontend::UI::KeyMgmt::create_tool_bars
void create_tool_bars()
Create a tool bars object.
Definition: KeyMgmt.cpp:243
GpgFrontend::UI::KeyMgmt::create_menus
void create_menus()
Create a menus object.
Definition: KeyMgmt.cpp:220
GpgFrontend::UI::KeyMgmt::KeyMgmt
KeyMgmt(QWidget *parent=nullptr)
Construct a new Key Mgmt object.
Definition: KeyMgmt.cpp:46
GpgFrontend::UI::KeyServerImportDialog
Definition: KeyServerImportDialog.h:46
GpgFrontend::UI
Definition: FileReadTask.cpp:29