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/job.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lang/qt/src/job.cpp') diff --git a/lang/qt/src/job.cpp b/lang/qt/src/job.cpp index c4270205..8ed0b576 100644 --- a/lang/qt/src/job.cpp +++ b/lang/qt/src/job.cpp @@ -65,6 +65,7 @@ #include "tofupolicyjob.h" #include "threadedjobmixin.h" #include "quickjob.h" +#include "gpgcardjob.h" #include #include @@ -141,6 +142,7 @@ make_job_subclass(KeyForMailboxJob) make_job_subclass(WKSPublishJob) make_job_subclass(TofuPolicyJob) make_job_subclass(QuickJob) +make_job_subclass(GpgCardJob) #undef make_job_subclass @@ -173,3 +175,4 @@ make_job_subclass(QuickJob) #include "wkspublishjob.moc" #include "tofupolicyjob.moc" #include "quickjob.moc" +#include "gpgcardjob.moc" -- cgit v1.2.3