GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeyServerImportTask.h
1 
27 #ifndef GPGFRONTEND_KEYSERVERIMPORTTASK_H
28 #define GPGFRONTEND_KEYSERVERIMPORTTASK_H
29 
30 #include "GpgFrontendUI.h"
31 
32 namespace GpgFrontend::UI {
34  Q_OBJECT
35  public:
42  KeyServerImportTask(std::string keyserver_url,
43  std::vector<std::string> keyid);
44 
45  signals:
46 
52  void SignalKeyServerImportResult(QNetworkReply::NetworkError reply,
53  QByteArray buffer);
54 
55  protected:
60  void run() override;
61 
62  private slots:
63 
68  void dealing_reply_from_server();
69 
70  private:
71  std::string keyserver_url_;
72  std::vector<std::string> keyids_;
73  int result_count_ = 0;
74 
75  QNetworkAccessManager *manager_;
76  QNetworkReply *reply_;
77 };
78 } // namespace GpgFrontend::UI
79 
80 #endif // GPGFRONTEND_KEYSERVERIMPORTTASK_H
Definition: Task.h:45
Definition: KeyServerImportTask.h:33
KeyServerImportTask(std::string keyserver_url, std::vector< std::string > keyid)
Construct a new Key Server Search Task object.
Definition: KeyServerImportTask.cpp:31
void SignalKeyServerImportResult(QNetworkReply::NetworkError reply, QByteArray buffer)
Definition: FileReadTask.cpp:31