From 0991485170ca4ef90fd566540522027d0fc59a72 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Sun, 3 Apr 2016 02:29:14 -0800 Subject: 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. --- lang/qt/tests/t-keylist.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lang/qt/tests/t-keylist.cpp') diff --git a/lang/qt/tests/t-keylist.cpp b/lang/qt/tests/t-keylist.cpp index 67ace7f5..626d0a7f 100644 --- a/lang/qt/tests/t-keylist.cpp +++ b/lang/qt/tests/t-keylist.cpp @@ -14,8 +14,7 @@ private Q_SLOTS: void testSingleKeyListSync() { - QGpgMEBackend backend; - KeyListJob *job = backend.openpgp()->keyListJob(false, false, false); + KeyListJob *job = openpgp()->keyListJob(false, false, false); std::vector keys; GpgME::KeyListResult result = job->exec(QStringList() << QStringLiteral("alfa@example.net"), false, keys); -- cgit v1.2.3