aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/result_analyse/EncryptResultAnalyse.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-09-05 21:41:00 +0000
committerSaturneric <[email protected]>2021-09-05 21:41:00 +0000
commite2d30cc0194db74b77e3c06dbaf9c597bb82c860 (patch)
treed9df5302e59c59135495ee81657422cebd7b6092 /src/gpg/result_analyse/EncryptResultAnalyse.cpp
parentRewrite the core. (diff)
downloadGpgFrontend-e2d30cc0194db74b77e3c06dbaf9c597bb82c860.tar.gz
GpgFrontend-e2d30cc0194db74b77e3c06dbaf9c597bb82c860.zip
Adjust the code structure.
Introduce log library. Remove Qt from the core code.
Diffstat (limited to '')
-rw-r--r--src/gpg/result_analyse/EncryptResultAnalyse.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpg/result_analyse/EncryptResultAnalyse.cpp b/src/gpg/result_analyse/EncryptResultAnalyse.cpp
index 898550fd..6659f1df 100644
--- a/src/gpg/result_analyse/EncryptResultAnalyse.cpp
+++ b/src/gpg/result_analyse/EncryptResultAnalyse.cpp
@@ -29,7 +29,7 @@ GpgFrontend::EncryptResultAnalyse::EncryptResultAnalyse(GpgError error,
: error(error), result(std::move(result)) {}
void GpgFrontend::EncryptResultAnalyse::do_analyse() {
- qDebug() << "Start Encrypt Result Analyse";
+ LOG(INFO) << "Start Encrypt Result Analyse";
stream << "[#] Encrypt Operation ";
@@ -43,12 +43,11 @@ void GpgFrontend::EncryptResultAnalyse::do_analyse() {
if (!~status) {
stream << "------------>" << std::endl;
if (result != nullptr) {
- stream << tr("Invalid Recipients: ").constData() << std::endl;
+ stream << "Invalid Recipients: " << std::endl;
auto inv_reci = result->invalid_recipients;
while (inv_reci != nullptr) {
- stream << tr("Fingerprint: ").constData() << inv_reci->fpr << std::endl;
- stream << tr("Reason: ").constData() << gpgme_strerror(inv_reci->reason)
- << std::endl;
+ stream << "Fingerprint: " << inv_reci->fpr << std::endl;
+ stream << "Reason: " << gpgme_strerror(inv_reci->reason) << std::endl;
stream << std::endl;
inv_reci = inv_reci->next;