aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/job.cpp
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2020-02-12 10:52:24 +0000
committerAndre Heinecke <[email protected]>2020-02-12 10:57:09 +0000
commit77feaa451074741c2d07051915bc23d8b8377242 (patch)
tree0e2b1e3b55d0dfde24e001eaa15ddb8b5ae0e530 /lang/qt/src/job.cpp
parentDo not test for a bug in older GnuPG versions (diff)
downloadgpgme-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/job.cpp')
-rw-r--r--lang/qt/src/job.cpp3
1 files changed, 3 insertions, 0 deletions
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 <QCoreApplication>
#include <QDebug>
@@ -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"