GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeyImportDetailDialog.h
1 
29 #pragma once
30 
31 #include "core/function/gpg/GpgKeyImportExporter.h"
32 #include "ui/dialog/GeneralDialog.h"
33 
34 namespace GpgFrontend {
35 class GpgImportInformation;
36 }
37 
38 namespace GpgFrontend::UI {
39 
45  Q_OBJECT
46 
47  public:
55  explicit KeyImportDetailDialog(std::shared_ptr<GpgImportInformation> result,
56  QWidget* parent = nullptr);
57 
58  private:
64 
69  void create_keys_table();
70 
75  void create_button_box();
76 
83  static auto get_status_string(int) -> QString;
84 
85  QTableWidget* keys_table_{};
86  QGroupBox* general_info_box_{};
87  QGroupBox* key_info_box_{};
88  QDialogButtonBox* button_box_{};
89 
90  std::shared_ptr<GpgImportInformation> m_result_;
91 };
92 } // namespace GpgFrontend::UI
Definition: GeneralDialog.h:35
Definition: KeyImportDetailDialog.h:44
static auto get_status_string(int) -> QString
Get the status string object.
Definition: KeyImportDetailDialog.cpp:162
KeyImportDetailDialog(std::shared_ptr< GpgImportInformation > result, QWidget *parent=nullptr)
Construct a new Key Import Detail Dialog object.
Definition: KeyImportDetailDialog.cpp:36
void create_keys_table()
Create a keys table object.
Definition: KeyImportDetailDialog.cpp:130
void create_button_box()
Create a button box object.
Definition: KeyImportDetailDialog.cpp:194
void create_general_info_box()
Create a general info box object.
Definition: KeyImportDetailDialog.cpp:71
Definition: FileReadTask.cpp:31
Definition: app.cpp:39