diff options
author | Saturneric <[email protected]> | 2021-06-08 20:20:59 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-06-08 20:20:59 +0000 |
commit | df0846fcc22b886f80bacec5b123967f57b4e6a1 (patch) | |
tree | a694d0a802e95094e4bab081490595d48ec3277c /src/ui/VerifyDetailsDialog.cpp | |
parent | Add Some file. (diff) | |
download | GpgFrontend-df0846fcc22b886f80bacec5b123967f57b4e6a1.tar.gz GpgFrontend-df0846fcc22b886f80bacec5b123967f57b4e6a1.zip |
Check whether the key can be encrypted before the encryption operation.
Establish and improve the results analysis framework.
Analyze and output the encryption result.
Analyze the decryption results and output.
Analyze and output the signature result.
Analyze and output the encrypted and signed results.
Adjust part of GpgContext API interface.
Improve the interface for finding keys based on ID.
Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to 'src/ui/VerifyDetailsDialog.cpp')
-rw-r--r-- | src/ui/VerifyDetailsDialog.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/VerifyDetailsDialog.cpp b/src/ui/VerifyDetailsDialog.cpp index fe193aa0..9c6ad014 100644 --- a/src/ui/VerifyDetailsDialog.cpp +++ b/src/ui/VerifyDetailsDialog.cpp @@ -24,9 +24,9 @@ #include "ui/VerifyDetailsDialog.h" -VerifyDetailsDialog::VerifyDetailsDialog(QWidget *parent, GpgME::GpgContext *ctx, KeyList *keyList, - gpgme_signature_t signature) : - QDialog(parent), mCtx(ctx), mKeyList(keyList), sign(signature) { +VerifyDetailsDialog::VerifyDetailsDialog(QWidget *parent, GpgME::GpgContext *ctx, KeyList *keyList, gpg_error_t error, + gpgme_verify_result_t result) : + QDialog(parent), mCtx(ctx), mKeyList(keyList), sign(result->signatures), error(error) { this->setWindowTitle(tr("Signature Details")); @@ -50,6 +50,8 @@ void VerifyDetailsDialog::slotRefresh() { buttonBox = new QDialogButtonBox(QDialogButtonBox::Close); connect(buttonBox, SIGNAL(rejected()), this, SLOT(close())); + mVboxLayout->addWidget(new QLabel(tr("Status: ") + gpgme_strerror(error))); + if (sign == nullptr) { mVboxLayout->addWidget(new QLabel(tr("No valid input found"))); mVboxLayout->addWidget(buttonBox); |