cpp: Expose skipped_v3_keys
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 15 Mar 2018 15:21:00 +0000 (16:21 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 15 Mar 2018 15:23:18 +0000 (16:23 +0100)
* lang/cpp/src/importresult.cpp,
 lang/cpp/src/importresult.h (ImportResult::numV3KeysSkipped): New.

--
GnuPG-Bug-Id: T3776

NEWS
lang/cpp/src/importresult.cpp
lang/cpp/src/importresult.h

diff --git a/NEWS b/NEWS
index c172697..7b6fdd9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Noteworthy changes in version 1.10.1 (unreleased)
  gpgme_import_result_t       EXTENDED: New field 'skipped_v3_keys'
  cpp: Key::locate                     NEW.
  cpp: Data::toString                  NEW.
+ cpp: ImportResult::numV3KeysSkipped  NEW.
 
 Noteworthy changes in version 1.10.0 (2017-12-12)
 -------------------------------------------------
index 8c35f9c..dbb31d0 100644 (file)
@@ -154,6 +154,11 @@ int GpgME::ImportResult::notImported() const
     return d ? d->res.not_imported : 0 ;
 }
 
+int GpgME::ImportResult::numV3KeysSkipped() const
+{
+    return d ? d->res.skipped_v3_keys : 0 ;
+}
+
 GpgME::Import GpgME::ImportResult::import(unsigned int idx) const
 {
     return Import(d, idx);
index 2f0e7f2..0547679 100644 (file)
@@ -78,6 +78,7 @@ public:
     int numSecretKeysUnchanged() const;
 
     int notImported() const;
+    int numV3KeysSkipped() const;
 
     Import import(unsigned int idx) const;
     std::vector<Import> imports() const;