<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/lang/cpp/src/context.cpp, branch wk/new-wait</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=wk%2Fnew-wait</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=wk%2Fnew-wait'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2019-04-24T10:36:14Z</updated>
<entry>
<title>cpp: Add wrapper for gpgme_set_global_flag</title>
<updated>2019-04-24T10:36:14Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@gnupg.org</email>
</author>
<published>2019-04-24T10:34:48Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=7981ec4147f3058d5b56905903456247993dc6f7'/>
<id>urn:sha1:7981ec4147f3058d5b56905903456247993dc6f7</id>
<content type='text'>
* lang/cpp/src/context.cpp (setGlobalFlag): New.
* lang/cpp/src/global.h (setGlobalFlag): Export it.

--
GnuPG-Bug-Id: T4471
</content>
</entry>
<entry>
<title>cpp: Fix Error::hasSystemError</title>
<updated>2019-03-13T11:02:05Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@gnupg.org</email>
</author>
<published>2019-03-13T11:00:22Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=c4cc47ee8f0bedc58e58ab416689d7014b0df2e7'/>
<id>urn:sha1:c4cc47ee8f0bedc58e58ab416689d7014b0df2e7</id>
<content type='text'>
* lang/cpp/src/context.cpp (Error::hasSystemError): Invert logic to
do what it says.

--
This is safe because according to codesearch it is only used
in QGpgME
</content>
</entry>
<entry>
<title>qt,cpp: Consistently use nullptr and override</title>
<updated>2018-12-03T11:25:00Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-12-03T11:20:33Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=1d31420650bfa7ca1d1503cc7431b3360e86022c'/>
<id>urn:sha1:1d31420650bfa7ca1d1503cc7431b3360e86022c</id>
<content type='text'>
* lang/cpp/src/Makefile.am, lang/qt/src/Makefile.am (AM_CPPFLAGS):
Add suggest-override and zero-as-null-pointer-constant warnings.

* lang/cpp/src/*, lang/qt/src/*: Consistenly use nullptr and override.

--
This was especially important for the headers so that downstream
users of GpgME++ or QGpgME do not get flooded by warnings if
they have these warnings enabled.

It also improves compiler errors/warnings in case of accidental
mistakes.
</content>
</entry>
<entry>
<title>cpp: Add some convenience functions</title>
<updated>2018-10-25T12:13:39Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-10-25T12:09:37Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=05a0e97f5c12c06082fbeab0fba6f86ddbfbe6b2'/>
<id>urn:sha1:05a0e97f5c12c06082fbeab0fba6f86ddbfbe6b2</id>
<content type='text'>
* lang/cpp/src/context.cpp (Context::create): New.
* lang/cpp/src/context.h: Update accordingly.
* lang/cpp/src/key.cpp, lang/cpp/src/key.h:
(Key::isBad, Subkey::isBad, UserID::isBad)
(UserID::Signature::isBad): Add shorthand for the isX checks.
* NEWS: Mention it.

--
I don't know how often I wrote:
if (key.isNull() || key.isExpired() || key.isRevoked() ...

And for the context it is good practice to use a unique ptr
so the API should make it easy.
</content>
</entry>
<entry>
<title>cpp: Initialize all gpgme_key_t's in context</title>
<updated>2018-10-09T08:47:16Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-10-09T08:47:16Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=7a1e6dbfb16f71f692a53f7e0955bde86dbb7fee'/>
<id>urn:sha1:7a1e6dbfb16f71f692a53f7e0955bde86dbb7fee</id>
<content type='text'>
* lang/cpp/src/context.cpp (Context::startKeyListing),
(Context::keyListResult, Context::signingKeys): Initialize key.

--
"Should" not be neccessary but it's cleaner and would have
covered the case of the previous commit.
</content>
</entry>
<entry>
<title>cpp: Add enum mapping for GPGME_AUDIT_LOG_DIAG</title>
<updated>2018-07-05T09:29:36Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-07-05T08:22:13Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=629afebe5017db97f2a318f6878fe1f9d3e60189'/>
<id>urn:sha1:629afebe5017db97f2a318f6878fe1f9d3e60189</id>
<content type='text'>
* src/context.cpp (to_auditlog_flags): Map DIAG value.
* src/context.h (AuditLogFlags): Add it.
</content>
</entry>
<entry>
<title>cpp: Add proper gpgme_op_createkey</title>
<updated>2018-06-08T14:19:47Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-06-08T14:19:47Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=8dff414e170e4df8ea661028c4ac1588311ca26e'/>
<id>urn:sha1:8dff414e170e4df8ea661028c4ac1588311ca26e</id>
<content type='text'>
* lang/cpp/src/context.cpp, lang/cpp/src/context.h
(Context::createKeyEx): New.

--
The createKeyEx function follows the usual pattern that the
synchronous call returns a result directly while for the
async an extra call is neccessary.
</content>
</entry>
<entry>
<title>cpp: Add gpgme_(get)set_ctx_flag</title>
<updated>2018-06-01T09:10:45Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-06-01T09:08:12Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=00b027af86f33782933c6200fe1ffe40e85f4346'/>
<id>urn:sha1:00b027af86f33782933c6200fe1ffe40e85f4346</id>
<content type='text'>
* NEWS: Mention API extensions.
* lang/cpp/src/context.cpp, lang/cpp/src/context.h
(Context::setFlag, Context::getFlag): New.
</content>
</entry>
<entry>
<title>cpp: Wrap create_key and create_subkey</title>
<updated>2017-12-01T12:21:34Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2017-12-01T12:21:34Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=8e2d6c28a5e923f829b5a26d19d9d897949aa1fe'/>
<id>urn:sha1:8e2d6c28a5e923f829b5a26d19d9d897949aa1fe</id>
<content type='text'>
* lang/cpp/src/context.cpp,
lang/cpp/src/context.h (Context::startCreateKey)
(Context::createKey, Context::createSubkey)
(Context::startCreateSubkey): New.
</content>
</entry>
<entry>
<title>cpp: Respect decrypt flags in new functions</title>
<updated>2017-03-24T16:24:04Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2017-03-24T16:24:04Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=18b7906078cf08962c54c1e711cf2d91a24fd4e5'/>
<id>urn:sha1:18b7906078cf08962c54c1e711cf2d91a24fd4e5</id>
<content type='text'>
* lang/cpp/src/context.cpp: Respect directly provided flags
in the new decrypt functions.

--
Overlooked in the initial commit. Also fixed the according
unused variable warnings.
</content>
</entry>
</feed>
