|
void | SignalKeyGenerated () |
|
|
void | setPosCenterOfScreen () |
|
void | movePosition2CenterOfParent () |
|
auto | isRectRestored () -> bool |
|
void | showEvent (QShowEvent *event) override |
|
◆ KeyGenDialog()
GpgFrontend::UI::KeyGenDialog::KeyGenDialog |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ check_email_address()
bool GpgFrontend::UI::KeyGenDialog::check_email_address |
( |
const QString & |
str | ) |
|
|
private |
◆ create_basic_info_group_box()
QGroupBox * GpgFrontend::UI::KeyGenDialog::create_basic_info_group_box |
( |
| ) |
|
|
private |
◆ create_key_usage_group_box()
QGroupBox * GpgFrontend::UI::KeyGenDialog::create_key_usage_group_box |
( |
| ) |
|
|
private |
◆ refresh_widgets_state()
void GpgFrontend::UI::KeyGenDialog::refresh_widgets_state |
( |
| ) |
|
|
private |
◆ slot_activated_key_type
void GpgFrontend::UI::KeyGenDialog::slot_activated_key_type |
( |
int |
index | ) |
|
|
privateslot |
◆ slot_authentication_box_changed
void GpgFrontend::UI::KeyGenDialog::slot_authentication_box_changed |
( |
int |
state | ) |
|
|
privateslot |
◆ slot_certification_box_changed
void GpgFrontend::UI::KeyGenDialog::slot_certification_box_changed |
( |
int |
state | ) |
|
|
privateslot |
◆ slot_encryption_box_changed
void GpgFrontend::UI::KeyGenDialog::slot_encryption_box_changed |
( |
int |
state | ) |
|
|
privateslot |
◆ slot_expire_box_changed
void GpgFrontend::UI::KeyGenDialog::slot_expire_box_changed |
( |
| ) |
|
|
privateslot |
when expirebox was checked/unchecked, enable/disable the expiration date box
◆ slot_key_gen_accept
void GpgFrontend::UI::KeyGenDialog::slot_key_gen_accept |
( |
| ) |
|
|
privateslot |
check all lineedits for false entries. Show error, when there is one, otherwise generate the key
check for errors in keygen dialog input
primary keys should have a reasonable expiration date (no more than 2 years in the future)
create the string for key generation
create error message
References check_email_address(), GpgFrontend::CheckGpgError(), comment_edit_, date_edit_, email_edit_, error_label_, expire_check_box_, GpgFrontend::SingletonFunctionObject< GlobalSettingStation >::GetInstance(), GpgFrontend::SingletonFunctionObject< GpgKeyOpera >::GetInstance(), key_size_spin_box_, name_edit_, GpgFrontend::UI::CommonUtils::RaiseMessageBox(), GpgFrontend::SetCacheValue(), and GpgFrontend::UI::CommonUtils::WaitForOpera().
Referenced by set_signal_slot().
◆ slot_signing_box_changed
void GpgFrontend::UI::KeyGenDialog::slot_signing_box_changed |
( |
int |
state | ) |
|
|
privateslot |
◆ error_messages_
QStringList GpgFrontend::UI::KeyGenDialog::error_messages_ |
|
private |
List of errors occurring when checking entries of line edits
◆ gen_key_info_
std::shared_ptr<GenKeyInfo> GpgFrontend::UI::KeyGenDialog::gen_key_info_ |
|
private |
Initial value:=
SecureCreateSharedObject<GenKeyInfo>()
◆ key_usage_group_box_
QGroupBox* GpgFrontend::UI::KeyGenDialog::key_usage_group_box_ {} |
|
private |
Group of Widgets detecting the usage of the Key
◆ re_email_
QRegularExpression GpgFrontend::UI::KeyGenDialog::re_email_ |
|
private |
Initial value:{
R"((?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]))"}
The documentation for this class was generated from the following files:
- src/ui/dialog/key_generate/KeygenDialog.h
- src/ui/dialog/key_generate/KeygenDialog.cpp