KeyServerImportDialog.h
#ifndef __KEY_SERVER_IMPORT_DIALOG_H__
#define __KEY_SERVER_IMPORT_DIALOG_H__
#include <string>
#include "KeyImportDetailDialog.h"
#include "core/GpgContext.h"
#include "ui/GpgFrontendUI.h"
#include "ui/dialog/GeneralDialog.h"
#include "ui/widgets/KeyList.h"
namespace GpgFrontend::UI {
class KeyServerImportDialog : public GeneralDialog {
Q_OBJECT
public:
KeyServerImportDialog(bool automatic, QWidget* parent);
explicit KeyServerImportDialog(QWidget* parent);
public slots:
void SlotImport(const KeyIdArgsListPtr& keys);
void SlotImport(std::vector<std::string> key_ids_list,
std::string keyserver_url);
signals:
void SignalKeyImported();
private slots:
void slot_import();
void slot_search_finished(QNetworkReply::NetworkError reply,
QByteArray buffer);
void slot_import_finished(QNetworkReply::NetworkError error,
QByteArray buffer);
void slot_search();
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_{};
};
} // namespace GpgFrontend::UI
#endif // __KEY_SERVER_IMPORT_DIALOG_H__
GpgFrontend::UI::KeyServerImportDialog::slot_import
void slot_import()
import key(s) for the key table selection
Definition: KeyServerImportDialog.cpp:408
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::SingletonFunctionObject< TaskRunnerGetter >::GetInstance
static TaskRunnerGetter & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:170
GpgFrontend::UI::KeyServerImportTask
Definition: KeyServerImportTask.h:33
GpgFrontend::UI::GeneralDialog
Definition: GeneralDialog.h:35
GpgFrontend::UI::KeyServerImportDialog::create_comboBox
QComboBox * create_comboBox()
Create a comboBox object.
Definition: KeyServerImportDialog.cpp:156
GpgFrontend::UI::KeyServerImportDialog
Definition: KeyServerImportDialog.h:46
GpgFrontend::UI::SettingsObject::Check
nlohmann::json & Check(const std::string &key, const nlohmann::json &default_value)
Definition: SettingsObject.cpp:31
GpgFrontend::UI::KeyImportDetailDialog
Definition: KeyImportDetailDialog.h:43
GpgFrontend::UI::SettingsObject
The SettingsObject class This class is used to store settings for the application securely.
Definition: SettingsObject.h:43
GpgFrontend::UI::KeyServerImportDialog::set_loading
void set_loading(bool status)
Set the loading object.
Definition: KeyServerImportDialog.cpp:542
GpgFrontend::UI::KeyServerImportDialog::KeyServerImportDialog
KeyServerImportDialog(bool automatic, QWidget *parent)
Construct a new Key Server Import Dialog object.
Definition: KeyServerImportDialog.cpp:43
GpgFrontend::UI::KeyServerImportTask::SignalKeyServerImportResult
void SignalKeyServerImportResult(QNetworkReply::NetworkError reply, QByteArray buffer)
GpgFrontend::UI::KeyServerImportDialog::import_keys
void import_keys(ByteArrayPtr in_data)
Definition: KeyServerImportDialog.cpp:524
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::create_keys_table
void create_keys_table()
Create a keys table object.
Definition: KeyServerImportDialog.cpp:187
GpgFrontend::UI::KeyServerSearchTask::SignalKeyServerSearchResult
void SignalKeyServerSearchResult(QNetworkReply::NetworkError reply, QByteArray buffer)
GpgFrontend::UI::KeyServerImportDialog::slot_import_finished
void slot_import_finished(QNetworkReply::NetworkError error, QByteArray buffer)
Definition: KeyServerImportDialog.cpp:471
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:209
GpgFrontend::UI::KeyServerImportDialog::SlotImport
void SlotImport(const KeyIdArgsListPtr &keys)
Definition: KeyServerImportDialog.cpp:421