aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/import_export/KeyServerImportDialog.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/KeyServerImportDialog.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/KeyServerImportDialog.h')
-rw-r--r--src/ui/dialog/import_export/KeyServerImportDialog.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/ui/dialog/import_export/KeyServerImportDialog.h b/src/ui/dialog/import_export/KeyServerImportDialog.h
index 13ae00b5..bbd4634a 100644
--- a/src/ui/dialog/import_export/KeyServerImportDialog.h
+++ b/src/ui/dialog/import_export/KeyServerImportDialog.h
@@ -53,14 +53,7 @@ class KeyServerImportDialog : public GeneralDialog {
* @param automatic
* @param parent
*/
- KeyServerImportDialog(bool automatic, QWidget* parent);
-
- /**
- * @brief Construct a new Key Server Import Dialog object
- *
- * @param parent
- */
- explicit KeyServerImportDialog(QWidget* parent);
+ KeyServerImportDialog(QWidget* parent);
public slots:
@@ -108,8 +101,8 @@ class KeyServerImportDialog : public GeneralDialog {
*
* @param keyid
*/
- void slot_import_finished(QNetworkReply::NetworkError error,
- QByteArray buffer);
+ void slot_import_finished(bool success, QString err_msg, QByteArray buffer,
+ std::shared_ptr<GpgImportInformation> info);
/**
* @brief
@@ -160,9 +153,10 @@ class KeyServerImportDialog : public GeneralDialog {
*
* @return QComboBox*
*/
- QComboBox* create_comboBox();
+ QComboBox* create_combo_box();
+
- bool m_automatic_ = false; ///<
+ QHBoxLayout* message_layout_; ///<
QLineEdit* search_line_edit_{}; ///<
QComboBox* key_server_combo_box_{}; ///<