aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/import_export/KeyImportDetailDialog.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-11 03:05:45 +0000
committersaturneric <[email protected]>2024-01-11 03:05:45 +0000
commit0266ff1bbce2feccec34ab789f9e378948d1b24d (patch)
tree49dcdd97ea5fccb47ac5bdb7f2a7e1e51dfb8c05 /src/ui/dialog/import_export/KeyImportDetailDialog.h
parentfeat: update core apis, functions and models (diff)
downloadGpgFrontend-0266ff1bbce2feccec34ab789f9e378948d1b24d.tar.gz
GpgFrontend-0266ff1bbce2feccec34ab789f9e378948d1b24d.zip
feat: improve api and ui of keys import and export
Diffstat (limited to 'src/ui/dialog/import_export/KeyImportDetailDialog.h')
-rw-r--r--src/ui/dialog/import_export/KeyImportDetailDialog.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/ui/dialog/import_export/KeyImportDetailDialog.h b/src/ui/dialog/import_export/KeyImportDetailDialog.h
index fe4988c0..db355570 100644
--- a/src/ui/dialog/import_export/KeyImportDetailDialog.h
+++ b/src/ui/dialog/import_export/KeyImportDetailDialog.h
@@ -28,11 +28,13 @@
#pragma once
-#include "core/function/gpg/GpgContext.h"
#include "core/function/gpg/GpgKeyImportExporter.h"
-#include "ui/GpgFrontendUI.h"
#include "ui/dialog/GeneralDialog.h"
+namespace GpgFrontend {
+class GpgImportInformation;
+}
+
namespace GpgFrontend::UI {
/**
@@ -50,8 +52,8 @@ class KeyImportDetailDialog : public GeneralDialog {
* @param automatic
* @param parent
*/
- KeyImportDetailDialog(GpgImportInformation result, bool automatic,
- QWidget* parent = nullptr);
+ explicit KeyImportDetailDialog(std::shared_ptr<GpgImportInformation> result,
+ QWidget* parent = nullptr);
private:
/**
@@ -84,6 +86,7 @@ class KeyImportDetailDialog : public GeneralDialog {
QGroupBox* general_info_box_{}; ///<
QGroupBox* key_info_box_{}; ///<
QDialogButtonBox* button_box_{}; ///<
- GpgImportInformation m_result_; ///<
+
+ std::shared_ptr<GpgImportInformation> m_result_; ///<
};
} // namespace GpgFrontend::UI