GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFrontend::UI::KeyServerImportDialog Class Reference
Inheritance diagram for GpgFrontend::UI::KeyServerImportDialog:
Inheritance graph
Collaboration diagram for GpgFrontend::UI::KeyServerImportDialog:
Collaboration graph

Public Slots

void SlotImport (const KeyIdArgsListPtr &keys)
 
void SlotImport (std::vector< QString > key_ids_list, QString keyserver_url)
 

Signals

void SignalKeyImported ()
 

Public Member Functions

 KeyServerImportDialog (QWidget *parent)
 Construct a new Key Server Import Dialog object. More...
 
- Public Member Functions inherited from GpgFrontend::UI::GeneralDialog
 GeneralDialog (QString name, QWidget *parent=nullptr)
 

Private Slots

void slot_import ()
 import key(s) for the key table selection
 
void slot_search_finished (QNetworkReply::NetworkError reply, QByteArray buffer)
 
void slot_import_finished (bool success, QString err_msg, QByteArray buffer, std::shared_ptr< GpgImportInformation > info)
 
void slot_search ()
 

Private Member Functions

void create_keys_table ()
 Create a keys table object.
 
void set_message (const QString &text, bool error)
 Set the message object. More...
 
void import_keys (ByteArrayPtr in_data)
 
void set_loading (bool status)
 Set the loading object. More...
 
QPushButton * create_button (const QString &text, const char *member)
 Create a button object. More...
 
QComboBox * create_combo_box ()
 Create a comboBox object. More...
 

Private Attributes

QHBoxLayout * message_layout_
 
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_ {}
 

Additional Inherited Members

- Protected Member Functions inherited from GpgFrontend::UI::GeneralDialog
void setPosCenterOfScreen ()
 
void movePosition2CenterOfParent ()
 
bool isRectRestored ()
 
void showEvent (QShowEvent *event) override
 

Constructor & Destructor Documentation

◆ KeyServerImportDialog()

GpgFrontend::UI::KeyServerImportDialog::KeyServerImportDialog ( QWidget *  parent)
explicit

Member Function Documentation

◆ create_button()

QPushButton* GpgFrontend::UI::KeyServerImportDialog::create_button ( const QString &  text,
const char *  member 
)
private

Create a button object.

Parameters
text
member
Returns
QPushButton*

◆ create_combo_box()

auto GpgFrontend::UI::KeyServerImportDialog::create_combo_box ( )
private

Create a comboBox object.

Returns
QComboBox*

Referenced by KeyServerImportDialog().

◆ import_keys()

void GpgFrontend::UI::KeyServerImportDialog::import_keys ( ByteArrayPtr  in_data)
private
Parameters
in_data

◆ set_loading()

void GpgFrontend::UI::KeyServerImportDialog::set_loading ( bool  status)
private

Set the loading object.

Parameters
status

References set_message().

Referenced by slot_import_finished(), and SlotImport().

◆ set_message()

void GpgFrontend::UI::KeyServerImportDialog::set_message ( const QString &  text,
bool  error 
)
private

Set the message object.

Parameters
text
error

Referenced by set_loading(), and slot_import_finished().

◆ slot_import_finished

void GpgFrontend::UI::KeyServerImportDialog::slot_import_finished ( bool  success,
QString  err_msg,
QByteArray  buffer,
std::shared_ptr< GpgImportInformation info 
)
privateslot
Parameters
keyid

References set_loading(), and set_message().

Referenced by SlotImport().

◆ SlotImport [1/2]

void GpgFrontend::UI::KeyServerImportDialog::SlotImport ( const KeyIdArgsListPtr &  keys)
slot
Parameters
keys

Referenced by slot_import().

◆ SlotImport [2/2]

void GpgFrontend::UI::KeyServerImportDialog::SlotImport ( std::vector< QString >  key_ids_list,
QString  keyserver_url 
)
slot

The documentation for this class was generated from the following files: