diff options
author | Andre Heinecke <[email protected]> | 2020-02-12 10:52:24 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2020-02-12 10:57:09 +0000 |
commit | 77feaa451074741c2d07051915bc23d8b8377242 (patch) | |
tree | 0e2b1e3b55d0dfde24e001eaa15ddb8b5ae0e530 /lang/qt/src/protocol.h | |
parent | Do not test for a bug in older GnuPG versions (diff) | |
download | gpgme-77feaa451074741c2d07051915bc23d8b8377242.tar.gz gpgme-77feaa451074741c2d07051915bc23d8b8377242.zip |
qt: Add GpgCardJob following the job pattern
* lang/qt/src/Makefile.am: Add new files.
* lang/qt/src/job.cpp (GpgCardJob): Add impl stuff.
* lang/qt/src/protocol.h (gpgCardJob): Get one.
* lang/qt/src/qgpgmebackend.cpp,
lang/qt/src/qgpgmebackend.h: Add helpers to get the job.
* lang/qt/src/qgpgmegpgcardjob.cpp,
lang/qt/src/gpgcardjob.h,
lang/qt/src/qgpgmegpgcardjob.h: New.
--
This is annoyingly complex to add a simple new job.
In the future we should implement something like this
without the threadedjobmixin stuff. But the idea was
to follow the usual job pattern.
GnuPG-Bug-Id: T4794
Diffstat (limited to 'lang/qt/src/protocol.h')
-rw-r--r-- | lang/qt/src/protocol.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lang/qt/src/protocol.h b/lang/qt/src/protocol.h index 1a52097e..17db68a5 100644 --- a/lang/qt/src/protocol.h +++ b/lang/qt/src/protocol.h @@ -67,6 +67,7 @@ class KeyForMailboxJob; class WKSPublishJob; class TofuPolicyJob; class QuickJob; +class GpgCardJob; /** The main entry point for QGpgME Comes in OpenPGP and SMIME(CMS) flavors. * @@ -184,5 +185,12 @@ QGPGME_EXPORT Protocol *smime(); */ QGPGME_EXPORT CryptoConfig *cryptoConfig(); +/** Obtain a reference to a protocol agnostic GpgCardJob. + * + * The reference is to a static object. + * @returns reference to a GpgCardJob following the job pattern. + */ +QGPGME_EXPORT GpgCardJob *gpgCardJob(); + } #endif |