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 #include "ui/dialog/GeneralDialog.h"
36 
37 namespace GpgFrontend::UI {
38 
44  Q_OBJECT
45 
46  public:
54  KeyImportDetailDialog(GpgImportInformation result, bool automatic,
55  QWidget* parent = nullptr);
56 
57  private:
63 
68  void create_keys_table();
69 
74  void create_button_box();
75 
82  static QString get_status_string(int keyStatus);
83 
84  QTableWidget* keys_table_{};
85  QGroupBox* general_info_box_{};
86  QGroupBox* key_info_box_{};
87  QDialogButtonBox* button_box_{};
88  GpgImportInformation m_result_;
89 };
90 } // namespace GpgFrontend::UI
91 
92 #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