diff options
author | Andre Heinecke <[email protected]> | 2016-04-03 10:29:14 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-04-03 10:29:14 +0000 |
commit | 0991485170ca4ef90fd566540522027d0fc59a72 (patch) | |
tree | c70aa40bfa878a945e28cff24ca16bab7ef2543b /lang/qt/src/qgpgmebackend.h | |
parent | Qt: Add a unit test for qgpgme (diff) | |
download | gpgme-0991485170ca4ef90fd566540522027d0fc59a72.tar.gz gpgme-0991485170ca4ef90fd566540522027d0fc59a72.zip |
Qt: Add static factor methods for protocol
* lang/qt/src/qgpgmebackend.cpp (QGpgME::openpgp, QGpgME::smime): New.
* lang/qt/src/qgpgmebackend.h: Declare.
* lang/qt/tests/t-keylist.cpp (KeyListTest::testSingleKeyListSync):
Use new functions.
--
This replaces the cryptobackendfactory functionality from libkleo.
Diffstat (limited to '')
-rw-r--r-- | lang/qt/src/qgpgmebackend.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/qt/src/qgpgmebackend.h b/lang/qt/src/qgpgmebackend.h index d442fa55..16b70cf8 100644 --- a/lang/qt/src/qgpgmebackend.h +++ b/lang/qt/src/qgpgmebackend.h @@ -72,6 +72,20 @@ namespace QGpgME class CryptoConfig; class Protocol; +/** Obtain a reference to the OpenPGP Protocol. + * + * The reference is to a static object. + * @returns Refrence to the OpenPGP Protocol. + */ +Protocol *openpgp(); + +/** Obtain a reference to the smime Protocol. + * + * The reference is to a static object. + * @returns Refrence to the smime Protocol. + */ +Protocol *smime(); + class QGpgMEBackend { public: |