QGpgME
21.6.2.0000005
Qt API for GpgME
Loading...
Searching...
No Matches
lang
qt
src
tofupolicyjob.h
1
/* tofupolicyjob.h
2
3
Copyright (c) 2016 by Bundesamt für Sicherheit in der Informationstechnik
4
Software engineering by Intevation GmbH
5
6
QGpgME is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License as
8
published by the Free Software Foundation; either version 2 of the
9
License, or (at your option) any later version.
10
11
QGpgME is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
General Public License for more details.
15
16
You should have received a copy of the GNU General Public License along
17
with this program; if not, write to the Free Software Foundation, Inc.,
18
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
20
In addition, as a special exception, the copyright holders give
21
permission to link the code of this program with any edition of
22
the Qt library by Trolltech AS, Norway (or with modified versions
23
of Qt that use the same license as Qt), and distribute linked
24
combinations including the two. You must obey the GNU General
25
Public License in all respects for all of the code used other than
26
Qt. If you modify this file, you may extend this exception to
27
your version of the file, but you are not obligated to do so. If
28
you do not wish to do so, delete this exception statement from
29
your version.
30
*/
31
#ifndef QGPGME_TOFUPOLICYJOB_H
32
#define QGPGME_TOFUPOLICYJOB_H
33
34
#include "job.h"
35
36
#include "qgpgme_export.h"
37
38
#include <gpgme++/tofuinfo.h>
39
40
namespace
GpgME
41
{
42
class
Key
;
43
}
// namespace GpgME
44
45
namespace
QGpgME {
46
50
class
QGPGME_EXPORT
TofuPolicyJob
:
public
Job
51
{
52
Q_OBJECT
53
protected
:
54
explicit
TofuPolicyJob
(QObject *
parent
);
55
public
:
56
~TofuPolicyJob
();
57
58
59
/* Set the policy to \a policy see the gpgme manual for
60
* policy explanations. */
61
virtual
void
start(
const
GpgME::Key &key, GpgME::TofuInfo::Policy
policy
) = 0;
62
63
virtual
GpgME::Error exec(
const
GpgME::Key &key, GpgME::TofuInfo::Policy
policy
) = 0;
64
65
Q_SIGNALS
:
66
/* Result of the operation
67
*
68
* As usual auditLogAsHtml and auditLogError can be ignored.
69
**/
70
void
result(
const
GpgME::Error &
error
,
71
const
QString
&auditLogAsHtml =
QString
(),
72
const
GpgME::Error &auditLogError = GpgME::Error());
73
};
74
75
}
76
77
#endif
QGpgME::Job
An abstract base class for asynchronous crypto operations.
Definition
job.h:69
QGpgME::TofuPolicyJob
Definition
tofupolicyjob.h:51
QMap
Definition
qgpgmebackend.h:43
Generated on Tue May 20 2025 15:38:13 for QGpgME by
1.9.8