aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/refreshopenpgpkeysjob.h
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2022-08-04 10:06:15 +0000
committerIngo Klöcker <[email protected]>2022-08-04 10:06:15 +0000
commitc3b183831db5a2a490ba49bf4804730679eb59d0 (patch)
tree151bdcc0accbd1de496a2ce893f8d85dd0dd79e2 /lang/qt/src/refreshopenpgpkeysjob.h
parentbuild: Update config.guess and config.sub. (diff)
downloadgpgme-c3b183831db5a2a490ba49bf4804730679eb59d0.tar.gz
gpgme-c3b183831db5a2a490ba49bf4804730679eb59d0.zip
qt: Remove job for refreshing OpenPGP keys
* lang/qt/src/qgpgmerefreshopenpgpkeysjob.cpp, lang/qt/src/qgpgmerefreshopenpgpkeysjob.h, lang/qt/src/refreshopenpgpkeysjob.h: Remove. * lang/qt/src/Makefile.am, lang/qt/src/job.cpp: Update accordingly. * lang/qt/src/protocol.h (class Protocol): Remove pure virtual member function refreshOpenPGPKeysJob. * lang/qt/src/protocol_p.h (Protocol::refreshOpenPGPKeysJob): Remove. * lang/qt/tests/run-refreshkeysjob.cpp (main): Use ReceiveKeysJob for OpenPGP keys. -- The RefreshOpenPGPKeysJob did more than it was intended to do, e.g. it imported new keys with the email addresses of the key to be refreshed via the configured auto-key-locate methods, but only a refresh from the key servers is wanted. For this we can use the ReceiveKeysJob. This commit mostly reverts the commits e12861f18c6b431b40bfa78eb6f1d149690a5fcd c64a8daf507a2216611861a12f312466b0bae8b2 The changes are source- and binary-compatible to the last release. GnuPG-bug-id: 5951
Diffstat (limited to 'lang/qt/src/refreshopenpgpkeysjob.h')
-rw-r--r--lang/qt/src/refreshopenpgpkeysjob.h67
1 files changed, 0 insertions, 67 deletions
diff --git a/lang/qt/src/refreshopenpgpkeysjob.h b/lang/qt/src/refreshopenpgpkeysjob.h
deleted file mode 100644
index 74233b61..00000000
--- a/lang/qt/src/refreshopenpgpkeysjob.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- refreshopenpgpkeysjob.h
-
- This file is part of qgpgme, the Qt API binding for gpgme
- Copyright (c) 2022 g10 Code GmbH
- Software engineering by Ingo Klöcker <[email protected]>
-
- QGpgME is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License as
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
-
- QGpgME is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
- In addition, as a special exception, the copyright holders give
- permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
- combinations including the two. You must obey the GNU General
- Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
- your version of the file, but you are not obligated to do so. If
- you do not wish to do so, delete this exception statement from
- your version.
-*/
-
-#ifndef __KLEO_REFRESHOPENPGPKEYSJOB_H__
-#define __KLEO_REFRESHOPENPGPKEYSJOB_H__
-
-#include "abstractimportjob.h"
-#include "qgpgme_export.h"
-
-#include <vector>
-
-namespace GpgME
-{
-class Error;
-class Key;
-}
-
-namespace QGpgME
-{
-
-class QGPGME_EXPORT RefreshOpenPGPKeysJob : public AbstractImportJob
-{
- Q_OBJECT
-protected:
- explicit RefreshOpenPGPKeysJob(QObject *parent);
-public:
- ~RefreshOpenPGPKeysJob() override;
-
- /**
- Starts a refresh of the \a keys.
- */
- virtual GpgME::Error start(const std::vector<GpgME::Key> &keys) = 0;
-};
-
-}
-
-#endif // __KLEO_REFRESHOPENPGPKEYSJOB_H__