GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeyServerSearchTask.h
1 
27 #ifndef GPGFRONTEND_KEYSERVERSEARCHTASK_H
28 #define GPGFRONTEND_KEYSERVERSEARCHTASK_H
29 
30 #include "GpgFrontendUI.h"
31 
32 namespace GpgFrontend::UI {
33 
35  Q_OBJECT
36  public:
43  KeyServerSearchTask(std::string keyserver_url, std::string search_string);
44 
45  signals:
46 
52  void SignalKeyServerSearchResult(QNetworkReply::NetworkError reply,
53  QByteArray buffer);
54 
55  protected:
60  void run() override;
61 
62  private slots:
63 
64  void dealing_reply_from_server();
65 
66  private:
67  std::string keyserver_url_;
68  std::string search_string_;
69 
70  QNetworkAccessManager *manager_;
71  QNetworkReply *reply_;
72 };
73 
74 } // namespace GpgFrontend::UI
75 
76 #endif // GPGFRONTEND_KEYSERVERSEARCHTASK_H
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::UI::KeyServerSearchTask
Definition: KeyServerSearchTask.h:34
GpgFrontend::UI::KeyServerSearchTask::KeyServerSearchTask
KeyServerSearchTask(std::string keyserver_url, std::string search_string)
Construct a new Key Server Search Task object.
Definition: KeyServerSearchTask.cpp:31
GpgFrontend::Thread::Task
Definition: Task.h:45
GpgFrontend::UI::KeyServerSearchTask::SignalKeyServerSearchResult
void SignalKeyServerSearchResult(QNetworkReply::NetworkError reply, QByteArray buffer)