GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeyServerSearchTask.h
1 
29 #pragma once
30 
31 #include <qnetworkaccessmanager.h>
32 #include <qnetworkreply.h>
33 
34 #include "GpgFrontendUI.h"
35 #include "core/thread/ThreadingModel.h"
36 
37 namespace GpgFrontend::UI {
39  Q_OBJECT
40  public:
47  KeyServerSearchTask(QString keyserver_url, QString search_string);
48 
53  auto Run() -> int override;
54 
55  signals:
56 
62  void SignalKeyServerSearchResult(QNetworkReply::NetworkError reply,
63  QByteArray buffer);
64 
65  private slots:
66 
67  void dealing_reply_from_server();
68 
69  private:
70  QString keyserver_url_;
71  QString search_string_;
72 
73  QNetworkAccessManager *manager_;
74  QNetworkReply *reply_;
75 };
76 
77 } // namespace GpgFrontend::UI
Definition: Task.h:39
Definition: KeyServerSearchTask.h:38
auto Run() -> int override
can be overwrite by subclass
Definition: KeyServerSearchTask.cpp:42
KeyServerSearchTask(QString keyserver_url, QString search_string)
Construct a new Key Server Search Task object.
Definition: KeyServerSearchTask.cpp:33
void SignalKeyServerSearchResult(QNetworkReply::NetworkError reply, QByteArray buffer)
Definition: FileReadTask.cpp:31