diff options
Diffstat (limited to 'src/gpg/function/GpgKeyImportExportor.h')
-rw-r--r-- | src/gpg/function/GpgKeyImportExportor.h | 47 |
1 files changed, 17 insertions, 30 deletions
diff --git a/src/gpg/function/GpgKeyImportExportor.h b/src/gpg/function/GpgKeyImportExportor.h index d71daddb..bceb87ef 100644 --- a/src/gpg/function/GpgKeyImportExportor.h +++ b/src/gpg/function/GpgKeyImportExportor.h @@ -1,7 +1,7 @@ /** - * This file is part of GPGFrontend. + * This file is part of GpgFrontend. * - * GPGFrontend is free software: you can redistribute it and/or modify + * GpgFrontend is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. @@ -26,6 +26,7 @@ #define _GPGKEYIMPORTEXPORTOR_H #include <string> + #include "gpg/GpgConstants.h" #include "gpg/GpgContext.h" #include "gpg/GpgFunctionObject.h" @@ -46,34 +47,20 @@ class GpgImportInformation { GpgImportInformation() = default; explicit GpgImportInformation(gpgme_import_result_t result) { - if (result->unchanged) - unchanged = result->unchanged; - if (result->considered) - considered = result->considered; - if (result->no_user_id) - no_user_id = result->no_user_id; - if (result->imported) - imported = result->imported; - if (result->imported_rsa) - imported_rsa = result->imported_rsa; - if (result->unchanged) - unchanged = result->unchanged; - if (result->new_user_ids) - new_user_ids = result->new_user_ids; - if (result->new_sub_keys) - new_sub_keys = result->new_sub_keys; - if (result->new_signatures) - new_signatures = result->new_signatures; - if (result->new_revocations) - new_revocations = result->new_revocations; - if (result->secret_read) - secret_read = result->secret_read; - if (result->secret_imported) - secret_imported = result->secret_imported; - if (result->secret_unchanged) - secret_unchanged = result->secret_unchanged; - if (result->not_imported) - not_imported = result->not_imported; + if (result->unchanged) unchanged = result->unchanged; + if (result->considered) considered = result->considered; + if (result->no_user_id) no_user_id = result->no_user_id; + if (result->imported) imported = result->imported; + if (result->imported_rsa) imported_rsa = result->imported_rsa; + if (result->unchanged) unchanged = result->unchanged; + if (result->new_user_ids) new_user_ids = result->new_user_ids; + if (result->new_sub_keys) new_sub_keys = result->new_sub_keys; + if (result->new_signatures) new_signatures = result->new_signatures; + if (result->new_revocations) new_revocations = result->new_revocations; + if (result->secret_read) secret_read = result->secret_read; + if (result->secret_imported) secret_imported = result->secret_imported; + if (result->secret_unchanged) secret_unchanged = result->secret_unchanged; + if (result->not_imported) not_imported = result->not_imported; } int considered = 0; |