diff options
author | Ingo Klöcker <[email protected]> | 2022-08-09 10:19:04 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2022-08-09 12:52:42 +0000 |
commit | db7d79063f57c6e0ccf382fdf1cf47d514e12f6e (patch) | |
tree | c01b545cc8311bbdee69404a95a0c6a89023ffad /lang/qt/src/protocol.h | |
parent | cpp: Add support for gpgme_op_set_uid_flag (diff) | |
download | gpgme-db7d79063f57c6e0ccf382fdf1cf47d514e12f6e.tar.gz gpgme-db7d79063f57c6e0ccf382fdf1cf47d514e12f6e.zip |
qt: Add job to set the primary user ID of OpenPGP keys
* lang/qt/src/qgpgmesetprimaryuseridjob.cpp,
lang/qt/src/qgpgmesetprimaryuseridjob.h,
lang/qt/src/setprimaryuseridjob.h: New.
* lang/qt/src/protocol.h (class Protocol): Add pure virtual member
function setPrimaryUserIDJob.
* lang/qt/src/protocol_p.h (Protocol::setPrimaryUserIDJob): New.
* lang/qt/src/job.cpp, lang/qt/src/Makefile.am: Update accordingly.
* lang/qt/tests/t-setprimaryuserid.cpp: New.
* lang/qt/tests/Makefile.am: Add new test.
--
GnuPG-bug-id: 5938
Diffstat (limited to 'lang/qt/src/protocol.h')
-rw-r--r-- | lang/qt/src/protocol.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lang/qt/src/protocol.h b/lang/qt/src/protocol.h index 7c24186c..019633a8 100644 --- a/lang/qt/src/protocol.h +++ b/lang/qt/src/protocol.h @@ -72,6 +72,7 @@ class QuickJob; class GpgCardJob; class ReceiveKeysJob; class RevokeKeyJob; +class SetPrimaryUserIDJob; /** The main entry point for QGpgME Comes in OpenPGP and SMIME(CMS) flavors. * @@ -182,6 +183,12 @@ public: virtual ReceiveKeysJob *receiveKeysJob() const = 0; virtual RevokeKeyJob *revokeKeyJob() const = 0; + + /** + * Returns a job for flagging a user ID as the primary user ID of an + * OpenPGP key. + */ + virtual SetPrimaryUserIDJob *setPrimaryUserIDJob() const = 0; }; /** Obtain a reference to the OpenPGP Protocol. |