Loading...
Searching...
No Matches
signkeyjob.h
/*
signkeyjob.h
This file is part of qgpgme, the Qt API binding for gpgme
Copyright (c) 2008 Klarälvdalens Datakonsult AB
Copyright (c) 2016 by Bundesamt für Sicherheit in der Informationstechnik
Software engineering by Intevation GmbH
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_SIGNKEYJOB_H__
#define __KLEO_SIGNKEYJOB_H__
#include "job.h"
#include <vector>
namespace GpgME
{
class Error;
class Key;
enum class TrustSignatureTrust : char;
}
class QDate;
class QString;
namespace QGpgME
{
class QGPGME_EXPORT SignKeyJob : public Job
{
Q_OBJECT
protected:
explicit SignKeyJob(QObject *parent);
public:
~SignKeyJob();
virtual GpgME::Error start(const GpgME::Key &keyToSign) = 0;
virtual void setUserIDsToSign(const std::vector<unsigned int> &idsToSign) = 0;
virtual void setCheckLevel(unsigned int checkLevel) = 0;
virtual void setExportable(bool exportable) = 0;
virtual void setSigningKey(const GpgME::Key &key) = 0;
virtual void setNonRevocable(bool nonRevocable) = 0;
virtual void setDupeOk(bool) {}
virtual void setRemark(const QString &) {}
virtual void setTrustSignature(GpgME::TrustSignatureTrust trust, unsigned short depth, const QString &scope) { Q_UNUSED(trust); Q_UNUSED(depth); Q_UNUSED(scope); }
virtual void setExpirationDate(const QDate &expiration) { Q_UNUSED(expiration); }
Q_SIGNALS:
void result(const GpgME::Error &result, const QString &auditLogAsHtml = QString(), const GpgME::Error &auditLogError = GpgME::Error());
};
}
#endif // __KLEO_SIGNKEYJOB_H__
QGpgME::Job
An abstract base class for asynchronous crypto operations.
Definition job.h:72
QGpgME::SignKeyJob
An abstract base class to sign keys asynchronously.
Definition signkeyjob.h:69
QGpgME::SignKeyJob::setNonRevocable
virtual void setNonRevocable(bool nonRevocable)=0
QGpgME::SignKeyJob::setSigningKey
virtual void setSigningKey(const GpgME::Key &key)=0
QGpgME::SignKeyJob::setExpirationDate
virtual void setExpirationDate(const QDate &expiration)
Definition signkeyjob.h:156
QGpgME::SignKeyJob::start
virtual GpgME::Error start(const GpgME::Key &keyToSign)=0
QGpgME::SignKeyJob::setExportable
virtual void setExportable(bool exportable)=0
QGpgME::SignKeyJob::setDupeOk
virtual void setDupeOk(bool)
Definition signkeyjob.h:120
QGpgME::SignKeyJob::setRemark
virtual void setRemark(const QString &)
Definition signkeyjob.h:127
QGpgME::SignKeyJob::setCheckLevel
virtual void setCheckLevel(unsigned int checkLevel)=0
QGpgME::SignKeyJob::setTrustSignature
virtual void setTrustSignature(GpgME::TrustSignatureTrust trust, unsigned short depth, const QString &scope)
Definition signkeyjob.h:146
QGpgME::SignKeyJob::setUserIDsToSign
virtual void setUserIDsToSign(const std::vector< unsigned int > &idsToSign)=0
QMap
Definition qgpgmebackend.h:43