KeyImportDetailDialog.h
#ifndef __KEYIMPORTDETAILSDIALOG_H__
#define __KEYIMPORTDETAILSDIALOG_H__
#include "core/GpgContext.h"
#include "core/function/gpg/GpgKeyImportExporter.h"
#include "ui/GpgFrontendUI.h"
#include "ui/dialog/GeneralDialog.h"
namespace GpgFrontend::UI {
class KeyImportDetailDialog : public GeneralDialog {
Q_OBJECT
public:
KeyImportDetailDialog(GpgImportInformation result, bool automatic,
QWidget* parent = nullptr);
private:
void create_general_info_box();
void create_keys_table();
void create_button_box();
static QString get_status_string(int keyStatus);
QTableWidget* keys_table_{};
QGroupBox* general_info_box_{};
QGroupBox* key_info_box_{};
QDialogButtonBox* button_box_{};
GpgImportInformation m_result_;
};
} // namespace GpgFrontend::UI
#endif // __KEYIMPORTDETAILSDIALOG_H__
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::UI::KeyImportDetailDialog::get_status_string
static QString get_status_string(int keyStatus)
Get the status string object.
Definition: KeyImportDetailDialog.cpp:167
GpgFrontend::SingletonFunctionObject< GpgKeyGetter >::GetInstance
static GpgKeyGetter & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:170
GpgFrontend::UI::GeneralDialog
Definition: GeneralDialog.h:35
GpgFrontend::GpgKey::GetEmail
std::string GetEmail() const
Definition: GpgKey.cpp:60
GpgFrontend::UI::KeyImportDetailDialog::KeyImportDetailDialog
KeyImportDetailDialog(GpgImportInformation result, bool automatic, QWidget *parent=nullptr)
Construct a new Key Import Detail Dialog object.
Definition: KeyImportDetailDialog.cpp:34
GpgFrontend::UI::KeyImportDetailDialog
Definition: KeyImportDetailDialog.h:43
GpgFrontend::GpgKey::IsGood
bool IsGood() const
Definition: GpgKey.cpp:50
GpgFrontend::UI::KeyImportDetailDialog::create_keys_table
void create_keys_table()
Create a keys table object.
Definition: KeyImportDetailDialog.cpp:131
GpgFrontend::GpgKeyGetter::GetKey
GpgKey GetKey(const std::string &id, bool use_cache=true)
Get the Key object.
Definition: GpgKeyGetter.cpp:47
GpgFrontend::UI::KeyImportDetailDialog::create_button_box
void create_button_box()
Create a button box object.
Definition: KeyImportDetailDialog.cpp:199
GpgFrontend::UI::KeyImportDetailDialog::create_general_info_box
void create_general_info_box()
Create a general info box object.
Definition: KeyImportDetailDialog.cpp:77
GpgFrontend::GpgImportInformation
Definition: GpgKeyImportExporter.h:57
GpgFrontend::GpgKey
Definition: GpgKey.h:41
GpgFrontend::GpgKey::GetName
std::string GetName() const
Definition: GpgKey.cpp:56