# GpgFrontend Project: src/ui/import_export/KeyServerImportDialog.h Source File

KeyServerImportDialog.h
#ifndef __KEY_SERVER_IMPORT_DIALOG_H__
#define __KEY_SERVER_IMPORT_DIALOG_H__
#include "KeyImportDetailDialog.h"
#include "core/GpgContext.h"
#include "ui/GpgFrontendUI.h"
#include "ui/widgets/KeyList.h"
namespace GpgFrontend::UI {
class KeyServerImportDialog : public QDialog {
Q_OBJECT
public:
KeyServerImportDialog(bool automatic, QWidget* parent);
explicit KeyServerImportDialog(QWidget* parent);
public slots:
void SlotImport(const KeyIdArgsListPtr& keys);
void SlotImport(const QStringList& keyIds, const QUrl& keyserverUrl);
signals:
void SignalKeyImported();
private slots:
void slot_import();
void slot_search_finished();
void slot_import_finished(const QString& keyid);
void slot_search();
void slot_save_window_state();
private:
void create_keys_table();
void set_message(const QString& text, bool error);
void import_keys(ByteArrayPtr in_data);
void set_loading(bool status);
QPushButton* create_button(const QString& text, const char* member);
QComboBox* create_comboBox();
bool m_automatic_ = false;
QLineEdit* search_line_edit_{};
QComboBox* key_server_combo_box_{};
QProgressBar* waiting_bar_;
QLabel* search_label_{};
QLabel* key_server_label_{};
QLabel* message_{};
QLabel* icon_{};
QPushButton* close_button_{};
QPushButton* import_button_{};
QPushButton* search_button_{};
QTableWidget* keys_table_{};
QNetworkAccessManager* network_access_manager_{};
};
} // namespace GpgFrontend::UI
#endif // __KEY_SERVER_IMPORT_DIALOG_H__
GpgFrontend::UI
Definition: VerifyDetailsDialog.cpp:33
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:57
GpgFrontend::GlobalSettingStation::GetUISettings
libconfig::Setting & GetUISettings() noexcept
Definition: GlobalSettingStation.h:68
GpgFrontend::UI::KeyServerImportDialog::create_comboBox
QComboBox * create_comboBox()
Create a comboBox object.
Definition: KeyServerImportDialog.cpp:149
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:524
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:509
GpgFrontend::UI::SignalStation::GetInstance
static SignalStation * GetInstance()
Get the Instance object.
Definition: SignalStation.cpp:35
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:449
GpgFrontend::UI::KeyServerImportDialog::create_keys_table
void create_keys_table()
Create a keys table object.
Definition: KeyServerImportDialog.cpp:177
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:199
GpgFrontend::UI::KeyServerImportDialog::SlotImport
void SlotImport(const KeyIdArgsListPtr &keys)
Definition: KeyServerImportDialog.cpp:401