From 77feaa451074741c2d07051915bc23d8b8377242 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 12 Feb 2020 11:52:24 +0100 Subject: 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 --- lang/qt/src/protocol.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lang/qt/src/protocol.h') 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 -- cgit v1.2.3