Qt: Undeprecate QByteArray based start functs

* lang/qt/src/encryptjob.h, lang/qt/src/signjob.h (start):
Undeprecate QByteArray based functions.

--
While the QIODevice access might avoid a copy it is more
difficult to manage the data and lifetime of the
QIODevices in calling code. The QByteArray calls are
convienient for small data objects like mails where
an in memory copy is not really expensive anymore.
This commit is contained in:
Andre Heinecke 2021-01-04 13:35:24 +01:00
parent 7a4fe82a01
commit 543e210638
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ public:
not be performed, but full validity assumed for all keys
without further checks.
*/
virtual QGPGME_DEPRECATED_EXPORT GpgME::Error start(const std::vector<GpgME::Key> &recipients,
virtual GpgME::Error start(const std::vector<GpgME::Key> &recipients,
const QByteArray &plainText, bool alwaysTrust = false) = 0;
/*!

View File

@ -85,7 +85,7 @@ public:
Starts the signing operation. \a signers is the list of keys to
sign \a plainText with. Empty (null) keys are ignored.
*/
virtual QGPGME_DEPRECATED_EXPORT GpgME::Error start(const std::vector<GpgME::Key> &signers,
virtual GpgME::Error start(const std::vector<GpgME::Key> &signers,
const QByteArray &plainText,
GpgME::SignatureMode mode) = 0;