GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeyServerImportDialog.h
1 
29 #ifndef __KEY_SERVER_IMPORT_DIALOG_H__
30 #define __KEY_SERVER_IMPORT_DIALOG_H__
31 
32 #include "KeyImportDetailDialog.h"
33 #include "core/GpgContext.h"
34 #include "ui/GpgFrontendUI.h"
35 #include "ui/widgets/KeyList.h"
36 
37 namespace GpgFrontend::UI {
38 
43 class KeyServerImportDialog : public QDialog {
44  Q_OBJECT
45 
46  public:
53  KeyServerImportDialog(bool automatic, QWidget* parent);
54 
60  explicit KeyServerImportDialog(QWidget* parent);
61 
62  public slots:
63 
69  void SlotImport(const KeyIdArgsListPtr& keys);
70 
77  void SlotImport(const QStringList& keyIds, const QUrl& keyserverUrl);
78 
79  signals:
80 
85  void SignalKeyImported();
86 
87  private slots:
88 
93  void slot_import();
94 
99  void slot_search_finished();
100 
106  void slot_import_finished(const QString& keyid);
107 
112  void slot_search();
113 
118  void slot_save_window_state();
119 
120  private:
125  void create_keys_table();
126 
133  void set_message(const QString& text, bool error);
134 
140  void import_keys(ByteArrayPtr in_data);
141 
147  void set_loading(bool status);
148 
156  QPushButton* create_button(const QString& text, const char* member);
157 
163  QComboBox* create_comboBox();
164 
165  bool m_automatic_ = false;
166 
167  QLineEdit* search_line_edit_{};
168  QComboBox* key_server_combo_box_{};
169  QProgressBar* waiting_bar_;
170  QLabel* search_label_{};
171  QLabel* key_server_label_{};
172  QLabel* message_{};
173  QLabel* icon_{};
174  QPushButton* close_button_{};
175  QPushButton* import_button_{};
176  QPushButton* search_button_{};
177  QTableWidget* keys_table_{};
178  QNetworkAccessManager* network_access_manager_{};
179 };
180 
181 } // namespace GpgFrontend::UI
182 
183 #endif // __KEY_SERVER_IMPORT_DIALOG_H__
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::GlobalSettingStation::SyncSettings
void SyncSettings() noexcept
sync the settings to the file
Definition: GlobalSettingStation.cpp:33
GpgFrontend::SingletonFunctionObject< GlobalSettingStation >::GetInstance
static GlobalSettingStation & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:170
GpgFrontend::GlobalSettingStation::GetUISettings
libconfig::Setting & GetUISettings() noexcept
Definition: GlobalSettingStation.h:63
GpgFrontend::UI::KeyServerImportDialog::create_comboBox
QComboBox * create_comboBox()
Create a comboBox object.
Definition: KeyServerImportDialog.cpp:154
GpgFrontend::UI::KeyServerImportDialog
Definition: KeyServerImportDialog.h:43
GpgFrontend::UI::KeyImportDetailDialog
Definition: KeyImportDetailDialog.h:42
GpgFrontend::UI::KeyServerImportDialog::set_loading
void set_loading(bool status)
Set the loading object.
Definition: KeyServerImportDialog.cpp:530
GpgFrontend::UI::KeyServerImportDialog::KeyServerImportDialog
KeyServerImportDialog(bool automatic, QWidget *parent)
Construct a new Key Server Import Dialog object.
Definition: KeyServerImportDialog.cpp:39
GpgFrontend::UI::KeyServerImportDialog::import_keys
void import_keys(ByteArrayPtr in_data)
Definition: KeyServerImportDialog.cpp:515
GpgFrontend::UI::SignalStation::GetInstance
static SignalStation * GetInstance()
Get the Instance object.
Definition: SignalStation.cpp:37
GpgFrontend::UI::KeyServerImportDialog::create_button
QPushButton * create_button(const QString &text, const char *member)
Create a button object.
GpgFrontend::GpgKeyImportExporter::ImportKey
GpgImportInformation ImportKey(StdBypeArrayPtr inBuffer)
Definition: GpgKeyImportExporter.cpp:42
GpgFrontend::UI::KeyServerImportDialog::slot_import_finished
void slot_import_finished(const QString &keyid)
Definition: KeyServerImportDialog.cpp:455
GpgFrontend::UI::KeyServerImportDialog::create_keys_table
void create_keys_table()
Create a keys table object.
Definition: KeyServerImportDialog.cpp:182
GpgFrontend::GpgImportInformation
Definition: GpgKeyImportExporter.h:57
GpgFrontend::UI::KeyServerImportDialog::set_message
void set_message(const QString &text, bool error)
Set the message object.
Definition: KeyServerImportDialog.cpp:204
GpgFrontend::UI::KeyServerImportDialog::SlotImport
void SlotImport(const KeyIdArgsListPtr &keys)
Definition: KeyServerImportDialog.cpp:407