aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/protocol_p.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-08-25 12:29:41 +0000
committerAndre Heinecke <[email protected]>2016-08-25 12:29:41 +0000
commit94420b05775122b25885c66ac67f77c59d01644d (patch)
tree8b21ee1cfc0caf7a42416195d0b6afe53692f05e /lang/qt/src/protocol_p.h
parentCpp: Change firstSeen / lastSeen return values (diff)
downloadgpgme-94420b05775122b25885c66ac67f77c59d01644d.tar.gz
gpgme-94420b05775122b25885c66ac67f77c59d01644d.zip
qt: Add WKSPublishJob
* lang/qt/src/Makefile.am: Add new files. * lang/qt/src/job.cpp: Include moc / subclass stub. * lang/qt/src/protocol.h: Add virtual for new job. * lang/qt/src/protocol_p.h: Add job. * lang/qt/src/wkspublishjob.h: Interface for WKSPublishJob. * lang/qt/src/qgpgmewkspublishjob.cpp, lang/qt/src/qgpgmewkspublishjob.h: New. -- The Job was originally intended to be used with a SpawnEngine Context but QProcess was a better fit for the job. Usage is similar to the client tool. check, create, recieve.
Diffstat (limited to 'lang/qt/src/protocol_p.h')
-rw-r--r--lang/qt/src/protocol_p.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/qt/src/protocol_p.h b/lang/qt/src/protocol_p.h
index afb4f9cb..2ce41824 100644
--- a/lang/qt/src/protocol_p.h
+++ b/lang/qt/src/protocol_p.h
@@ -57,6 +57,7 @@
#include "qgpgmechangepasswdjob.h"
#include "qgpgmeadduseridjob.h"
#include "qgpgmekeyformailboxjob.h"
+#include "qgpgmewkspublishjob.h"
namespace
{
@@ -387,6 +388,18 @@ public:
}
return new QGpgME::QGpgMEKeyForMailboxJob(context);
}
+
+ QGpgME::WKSPublishJob *wksPublishJob() const Q_DECL_OVERRIDE
+ {
+ if (mProtocol != GpgME::OpenPGP) {
+ return Q_NULLPTR;
+ }
+ auto context = GpgME::Context::createForEngine(GpgME::SpawnEngine);
+ if (!context) {
+ return Q_NULLPTR;
+ }
+ return new QGpgME::QGpgMEWKSPublishJob(context.release());
+ }
};
}