GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeyImportDetailDialog.h
1 
29 #ifndef __KEYIMPORTDETAILSDIALOG_H__
30 #define __KEYIMPORTDETAILSDIALOG_H__
31 
32 #include "core/GpgContext.h"
33 #include "core/function/gpg/GpgKeyImportExporter.h"
34 #include "ui/GpgFrontendUI.h"
35 
36 namespace GpgFrontend::UI {
37 
42 class KeyImportDetailDialog : public QDialog {
43  Q_OBJECT
44 
45  public:
53  KeyImportDetailDialog(GpgImportInformation result, bool automatic,
54  QWidget* parent = nullptr);
55 
56  private:
62 
67  void create_keys_table();
68 
73  void create_button_box();
74 
81  static QString get_status_string(int keyStatus);
82 
83  QTableWidget* keys_table_{};
84  QGroupBox* general_info_box_{};
85  QGroupBox* key_info_box_{};
86  QDialogButtonBox* button_box_{};
87  GpgImportInformation m_result_;
88 };
89 } // namespace GpgFrontend::UI
90 
91 #endif // __KEYIMPORTDETAILSDIALOG_H__
GpgFrontend::UI
Definition: VerifyDetailsDialog.cpp:33
GpgFrontend::UI::KeyImportDetailDialog::get_status_string
static QString get_status_string(int keyStatus)
Get the status string object.
Definition: KeyImportDetailDialog.cpp:166
GpgFrontend::SingletonFunctionObject< GpgKeyGetter >::GetInstance
static GpgKeyGetter & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:57
GpgFrontend::GpgKey::GetEmail
std::string GetEmail() const
Definition: GpgKey.cpp:62
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:42
GpgFrontend::GpgKey::IsGood
bool IsGood() const
Definition: GpgKey.cpp:52
GpgFrontend::UI::KeyImportDetailDialog::create_keys_table
void create_keys_table()
Create a keys table object.
Definition: KeyImportDetailDialog.cpp:130
GpgFrontend::UI::KeyImportDetailDialog::create_button_box
void create_button_box()
Create a button box object.
Definition: KeyImportDetailDialog.cpp:198
GpgFrontend::UI::KeyImportDetailDialog::create_general_info_box
void create_general_info_box()
Create a general info box object.
Definition: KeyImportDetailDialog.cpp:76
GpgFrontend::GpgKeyGetter::GetKey
GpgKey GetKey(const std::string &fpr)
Get the Key object.
Definition: GpgKeyGetter.cpp:38
GpgFrontend::GpgImportInformation
Definition: GpgKeyImportExporter.h:57
GpgFrontend::GpgKey
Definition: GpgKey.h:44
GpgFrontend::GpgKey::GetName
std::string GetName() const
Definition: GpgKey.cpp:58