aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/protocol.h
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2023-01-27 10:53:45 +0000
committerIngo Klöcker <[email protected]>2023-01-27 11:20:53 +0000
commit7afd135ccec73585e06272f98b4a0895e3ee6579 (patch)
treeb97a2857f8af57592d440b875705c3ca222eb705 /lang/qt/src/protocol.h
parentqt: Add data provider for list of file names (diff)
downloadgpgme-7afd135ccec73585e06272f98b4a0895e3ee6579.tar.gz
gpgme-7afd135ccec73585e06272f98b4a0895e3ee6579.zip
qt: Add job for creating encrypted archives
* lang/qt/src/encryptarchivejob.cpp, lang/qt/src/encryptarchivejob.h, lang/qt/src/encryptarchivejob_p.h, lang/qt/src/qgpgmeencryptarchivejob.cpp, lang/qt/src/qgpgmeencryptarchivejob.h: New. * lang/qt/src/protocol.h (class Protocol): Add pure virtual member function encryptArchiveJob * lang/qt/src/protocol_p.h (Protocol::encryptArchiveJob): ... and implement it. * lang/qt/src/Makefile.am: Update accordingly. * lang/qt/tests/run-encryptarchivejob.cpp: New. * lang/qt/tests/Makefile.am: Add new test runner. -- GnuPG-bug-id: 6342
Diffstat (limited to 'lang/qt/src/protocol.h')
-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 019633a8..bb9f060b 100644
--- a/lang/qt/src/protocol.h
+++ b/lang/qt/src/protocol.h
@@ -50,6 +50,7 @@ class ImportFromKeyserverJob;
class ExportJob;
class DownloadJob;
class DeleteJob;
+class EncryptArchiveJob;
class EncryptJob;
class DecryptJob;
class SignJob;
@@ -189,6 +190,8 @@ public:
* OpenPGP key.
*/
virtual SetPrimaryUserIDJob *setPrimaryUserIDJob() const = 0;
+
+ virtual EncryptArchiveJob *encryptArchiveJob(bool armor = false) const = 0;
};
/** Obtain a reference to the OpenPGP Protocol.