QGpgME
2.0.0-unknown
Qt API for GpgME
Loading...
Searching...
No Matches
src
qgpgmekeyformailboxjob.h
1
/*
2
qgpgmekeyformailboxjob.h
3
4
This file is part of libkleopatra, the KDE keymanagement library
5
Copyright (c) 2004,2008 Klarälvdalens Datakonsult AB
6
This file is part of qgpgme, the Qt API binding for gpgme
7
Copyright (c) 2016 by Bundesamt für Sicherheit in der Informationstechnik
8
Software engineering by Intevation GmbH
9
10
QGpgME is free software; you can redistribute it and/or
11
modify it under the terms of the GNU General Public License as
12
published by the Free Software Foundation; either version 2 of the
13
License, or (at your option) any later version.
14
15
QGpgME is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
24
In addition, as a special exception, the copyright holders give
25
permission to link the code of this program with any edition of
26
the Qt library by Trolltech AS, Norway (or with modified versions
27
of Qt that use the same license as Qt), and distribute linked
28
combinations including the two. You must obey the GNU General
29
Public License in all respects for all of the code used other than
30
Qt. If you modify this file, you may extend this exception to
31
your version of the file, but you are not obligated to do so. If
32
you do not wish to do so, delete this exception statement from
33
your version.
34
*/
35
36
#ifndef __QGPGME_QGPGMEKEYFORMAILBOXJOB_H__
37
#define __QGPGME_QGPGMEKEYFORMAILBOXJOB_H__
38
#include "keyformailboxjob.h"
39
40
#include "threadedjobmixin.h"
41
42
#include <gpgme++/keylistresult.h>
43
#include <gpgme++/key.h>
44
45
namespace
QGpgME
46
{
47
48
class
QGpgMEKeyForMailboxJob
49
#
ifdef
Q_MOC_RUN
50
:
public
KeyForMailboxJob
51
#else
52
:
public
_detail::ThreadedJobMixin
<KeyForMailboxJob, void, std::tuple<GpgME::KeyListResult, GpgME::Key, GpgME::UserID, QString, GpgME::Error> >
53
#endif
54
{
55
Q_OBJECT
56
#ifdef Q_MOC_RUN
57
public
Q_SLOTS
:
58
void
slotFinished();
59
#endif
60
public
:
61
explicit
QGpgMEKeyForMailboxJob
(GpgME::Context *context);
62
~QGpgMEKeyForMailboxJob
();
63
74
GpgME::Error
start
(
const
QString
&
mailbox
,
bool
canEncrypt
=
true
)
override
;
75
76
GpgME::KeyListResult exec(
const
QString
&
mailbox
,
bool
canEncrypt
, GpgME::Key &
key
, GpgME::UserID &
uid
)
override
;
77
};
78
79
}
80
#endif
QGpgME::KeyForMailboxJob
Get the best key to use for a Mailbox.
Definition
keyformailboxjob.h:66
QGpgME::QGpgMEKeyForMailboxJob
Definition
qgpgmekeyformailboxjob.h:54
QGpgME::QGpgMEKeyForMailboxJob::start
GpgME::Error start(const QString &mailbox, bool canEncrypt=true) override
Definition
qgpgmekeyformailboxjob.cpp:128
QGpgME::_detail::ThreadedJobMixin
Definition
threadedjobmixin.h:126
QMap
Definition
qgpgmebackend.h:43
Generated by
1.9.8