QGpgME 21.6.2.0000005
Qt API for GpgME
Loading...
Searching...
No Matches
qgpgmeexportjob.h
1/*
2 qgpgmeexportjob.h
3
4 This file is part of qgpgme, the Qt API binding for gpgme
5 Copyright (c) 2004,2008 Klarälvdalens Datakonsult AB
6 Copyright (c) 2016 by Bundesamt für Sicherheit in der Informationstechnik
7 Software engineering by Intevation GmbH
8 Copyright (c) 2022 by g10 Code GmbH
9 Software engineering by Ingo Klöcker <dev@ingo-kloecker.de>
10
11 QGpgME is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License as
13 published by the Free Software Foundation; either version 2 of the
14 License, or (at your option) any later version.
15
16 QGpgME is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24
25 In addition, as a special exception, the copyright holders give
26 permission to link the code of this program with any edition of
27 the Qt library by Trolltech AS, Norway (or with modified versions
28 of Qt that use the same license as Qt), and distribute linked
29 combinations including the two. You must obey the GNU General
30 Public License in all respects for all of the code used other than
31 Qt. If you modify this file, you may extend this exception to
32 your version of the file, but you are not obligated to do so. If
33 you do not wish to do so, delete this exception statement from
34 your version.
35*/
36
37#ifndef __QGPGME_QGPGMEEXPORTJOB_H__
38#define __QGPGME_QGPGMEEXPORTJOB_H__
39
40#include "exportjob.h"
41
42#include "threadedjobmixin.h"
43
44namespace QGpgME
45{
46
49 : public ExportJob
50#else
51 : public _detail::ThreadedJobMixin<ExportJob, std::tuple<GpgME::Error, QByteArray, QString, GpgME::Error> >
52#endif
53{
55#ifdef Q_MOC_RUN
56public Q_SLOTS:
57 void slotFinished();
58#endif
59public:
60 explicit QGpgMEExportJob(GpgME::Context *context);
61 // Creates an export job with forced export mode @p exportMode. The
62 // export mode flags set with @p exportMode cannot be overridden with
63 // setExportFlags.
64 explicit QGpgMEExportJob(GpgME::Context *context, unsigned int exportMode);
65 ~QGpgMEExportJob() override;
66
67 /* from ExportJob */
68 void setExportFlags(unsigned int flags) override;
69
70 /* from ExportJob */
71 GpgME::Error start(const QStringList &patterns) override;
72 GpgME::Error exec(const QStringList &patterns, QByteArray &data) override;
73
74private:
75 unsigned int m_exportMode;
76 unsigned int m_additionalExportModeFlags;
77};
78
79}
80
81#endif // __QGPGME_QGPGMEEXPORTJOB_H__
An abstract base class for asynchronous exporters.
Definition exportjob.h:66
Definition qgpgmeexportjob.h:53
GpgME::Error exec(const QStringList &patterns, QByteArray &data) override
Definition qgpgmeexportjob.cpp:91
GpgME::Error start(const QStringList &patterns) override
Definition qgpgmeexportjob.cpp:84
Definition threadedjobmixin.h:126
Definition qgpgmebackend.h:43