aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/protocol.h
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2022-03-29 13:45:52 +0000
committerIngo Klöcker <[email protected]>2022-03-30 10:29:28 +0000
commit41297520da32081d0a34ac2799812f210b7a9335 (patch)
treef40fa54bd578e4aa76dbceedfbcd7248b07ce2df /lang/qt/src/protocol.h
parentcpp: Add interactor to revoke a key (diff)
downloadgpgme-41297520da32081d0a34ac2799812f210b7a9335.tar.gz
gpgme-41297520da32081d0a34ac2799812f210b7a9335.zip
qt: Add job to revoke own OpenPGP keys
* lang/qt/src/revokekeyjob.h, lang/qt/src/qgpgmerevokekeyjob.h, lang/qt/src/qgpgmerevokekeyjob.cpp: New. * lang/qt/src/protocol.h (class Protocol): Add pure virtual member function revokeKeyJob. * lang/qt/src/protocol_p.h (Protocol::revokeKeyJob): New. * lang/qt/src/job.cpp, lang/qt/src/Makefile.am: Update accordingly. * lang/qt/tests/Makefile.am (the_tests, moc_files, noinst_PROGRAMS): Add new test. (t_revokekey_SOURCES): New. * lang/qt/tests/t-revokekey.cpp: New. -- The new job allows revoking own OpenPGP keys as with the "revkey" edit-key command of gpg. GnuPG-bug-id: 5904
Diffstat (limited to '')
-rw-r--r--lang/qt/src/protocol.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/qt/src/protocol.h b/lang/qt/src/protocol.h
index 62b2cb2f..8538bd8d 100644
--- a/lang/qt/src/protocol.h
+++ b/lang/qt/src/protocol.h
@@ -71,6 +71,7 @@ class TofuPolicyJob;
class QuickJob;
class GpgCardJob;
class ReceiveKeysJob;
+class RevokeKeyJob;
/** The main entry point for QGpgME Comes in OpenPGP and SMIME(CMS) flavors.
*
@@ -173,6 +174,8 @@ public:
virtual ExportJob *secretSubkeyExportJob(bool armor = false) const = 0;
virtual AddExistingSubkeyJob *addExistingSubkeyJob() const = 0;
virtual ReceiveKeysJob *receiveKeysJob() const = 0;
+
+ virtual RevokeKeyJob *revokeKeyJob() const = 0;
};
/** Obtain a reference to the OpenPGP Protocol.