diff options
author | Ingo Klöcker <[email protected]> | 2022-01-04 14:56:34 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2022-01-04 14:56:34 +0000 |
commit | 04723a6e96be77dbc43bf71c54e268424a1823ba (patch) | |
tree | 423cc0b058214256bdbcb7642617a962bbed961a /lang/qt/src/protocol.h | |
parent | cpp: Allow export of secret subkeys (diff) | |
download | gpgme-04723a6e96be77dbc43bf71c54e268424a1823ba.tar.gz gpgme-04723a6e96be77dbc43bf71c54e268424a1823ba.zip |
qt: Add factory function for secret subkey export job
* lang/qt/src/protocol.h (class Protocol): Add member function
secretSubkeyExportJob.
* lang/qt/src/protocol_p.h (Protocol::secretSubkeyExportJob): Implement.
* lang/qt/tests/run-exportjob.cpp (showUsageAndExitWithCode): Print
new option.
(createExportJob): Create secret subkey export job if requested.
(main): New option --secret-subkey.
--
GnuPG-bug-id: 5757
Diffstat (limited to 'lang/qt/src/protocol.h')
-rw-r--r-- | lang/qt/src/protocol.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/qt/src/protocol.h b/lang/qt/src/protocol.h index 35789414..e3caac28 100644 --- a/lang/qt/src/protocol.h +++ b/lang/qt/src/protocol.h @@ -128,6 +128,7 @@ public: virtual ExportJob *publicKeyExportJob(bool armor = false) const = 0; // the second parameter is ignored; the passphrase in the exported file is always utf-8 encoded virtual ExportJob *secretKeyExportJob(bool armor = false, const QString & = QString()) const = 0; + virtual ExportJob *secretSubkeyExportJob(bool armor = false) const = 0; virtual DownloadJob *downloadJob(bool armor = false) const = 0; virtual DeleteJob *deleteJob() const = 0; virtual SignEncryptJob *signEncryptJob(bool armor = false, bool textMode = false) const = 0; |