aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/UserInterfaceUtils.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-15 18:29:46 +0000
committerSaturneric <[email protected]>2021-12-16 09:36:19 +0000
commit51259403d70cb69c2fbd2b38794867f0b60bcf35 (patch)
treeecbaffef748db326f00ac58f757e5e824b61d52e /src/ui/UserInterfaceUtils.h
parentSMTP Support Added. (diff)
downloadGpgFrontend-51259403d70cb69c2fbd2b38794867f0b60bcf35.tar.gz
GpgFrontend-51259403d70cb69c2fbd2b38794867f0b60bcf35.zip
Added & Improved & Fixed.
Fixed Bugs in core. Improved Send Mail & Keyserver Settings. Added Pubkey Sync for key list. Added Refresh for key list. Improved Send Mail and others. Known Bugs Fixed.
Diffstat (limited to '')
-rw-r--r--src/ui/UserInterfaceUtils.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ui/UserInterfaceUtils.h b/src/ui/UserInterfaceUtils.h
index 18eb04d0..b730245f 100644
--- a/src/ui/UserInterfaceUtils.h
+++ b/src/ui/UserInterfaceUtils.h
@@ -25,6 +25,7 @@
#ifndef GPGFRONTEND_USER_INTERFACE_UTILS_H
#define GPGFRONTEND_USER_INTERFACE_UTILS_H
+#include "gpg/GpgModel.h"
#include "gpg/result_analyse/VerifyResultAnalyse.h"
#include "ui/GpgFrontendUI.h"
@@ -37,6 +38,9 @@ namespace GpgFrontend::UI {
class InfoBoardWidget;
class TextEdit;
+void send_an_email(QWidget* parent, InfoBoardWidget* info_board,
+ const QString& text);
+
void show_verify_details(QWidget* parent, InfoBoardWidget* info_board,
GpgError error, const GpgVerifyResult& verify_result);
@@ -63,6 +67,9 @@ class CommonUtils : public QWidget {
CommonUtils();
+ using ImportCallbackFunctiopn = std::function<void(
+ const std::string&, const std::string&, size_t, size_t)>;
+
signals:
void signalKeyStatusUpdated();
@@ -76,12 +83,23 @@ class CommonUtils : public QWidget {
void slotImportKeyFromClipboard(QWidget* parent);
+ void slotImportKeyFromKeyServer(
+ const GpgFrontend::KeyIdArgsList& key_ids,
+ const GpgFrontend::UI::CommonUtils::ImportCallbackFunctiopn& callback);
+
void slotExecuteGpgCommand(
const QStringList& arguments,
const std::function<void(QProcess*)>& interact_func);
+ private slots:
+ void slotDoImportKeyFromKeyServer(
+ QNetworkReply* network_reply, const std::string& key_id,
+ size_t current_index, size_t all_index,
+ const GpgFrontend::UI::CommonUtils::ImportCallbackFunctiopn& _callback);
+
private:
static std::unique_ptr<CommonUtils> _instance;
+ QNetworkAccessManager* _network_manager = new QNetworkAccessManager(this);
};
} // namespace GpgFrontend::UI