QGpgME  8.1.0.0
Qt API for GpgME
qgpgmetofupolicyjob.h
1 /* qgpgmetofupolicyjob.h
2 
3  Copyright (c) 2016 Intevation GmbH
4 
5  QGpgME is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License as
7  published by the Free Software Foundation; either version 2 of the
8  License, or (at your option) any later version.
9 
10  QGpgME is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 
19  In addition, as a special exception, the copyright holders give
20  permission to link the code of this program with any edition of
21  the Qt library by Trolltech AS, Norway (or with modified versions
22  of Qt that use the same license as Qt), and distribute linked
23  combinations including the two. You must obey the GNU General
24  Public License in all respects for all of the code used other than
25  Qt. If you modify this file, you may extend this exception to
26  your version of the file, but you are not obligated to do so. If
27  you do not wish to do so, delete this exception statement from
28  your version.
29 */
30 #ifndef QGPGME_QGPGMETOFUPOLICYJOB_H
31 #define QGPGME_QGPGMETOFUPOLICYJOB_H
32 
33 #include "tofupolicyjob.h"
34 
35 #include "threadedjobmixin.h"
36 namespace GpgME
37 {
38  class Key;
39 } // namespace GpgME
40 
41 namespace QGpgME {
42 
44 #ifdef Q_MOC_RUN
45  : public TofuPolicyJob
46 #else
47  : public _detail::ThreadedJobMixin<TofuPolicyJob, std::tuple<GpgME::Error, QString, GpgME::Error> >
48 #endif
49 {
50  Q_OBJECT
51 #ifdef Q_MOC_RUN
52 public Q_SLOTS:
53  void slotFinished();
54 #endif
55 public:
56  explicit QGpgMETofuPolicyJob(GpgME::Context *context);
58 
59  void start(const GpgME::Key &key, GpgME::TofuInfo::Policy policy) Q_DECL_OVERRIDE;
60  GpgME::Error exec(const GpgME::Key &key, GpgME::TofuInfo::Policy policy) Q_DECL_OVERRIDE;
61 };
62 
63 }
64 
65 #endif
Definition: tofupolicyjob.h:53
Definition: qgpgmetofupolicyjob.h:43
Definition: abstractimportjob.h:41
Definition: threadedjobmixin.h:122
Definition: abstractimportjob.h:47