Loading...
Searching...
No Matches
QGpgME::QGpgMESignKeyJob Class Reference
Inheritance diagram for QGpgME::QGpgMESignKeyJob:
[legend]
Collaboration diagram for QGpgME::QGpgMESignKeyJob:
[legend]

## Classes

class | Private

## Public Member Functions

| QGpgMESignKeyJob (GpgME::Context *context)
GpgME::Error | start (const GpgME::Key &key) override
void | setUserIDsToSign (const std::vector< unsigned int > &idsToSign) override
void | setCheckLevel (unsigned int checkLevel) override
void | setExportable (bool exportable) override
void | setSigningKey (const GpgME::Key &key) override
void | setNonRevocable (bool nonRevocable) override
void | setRemark (const QString &remark) override
void | setDupeOk (bool value) override
void | setTrustSignature (GpgME::TrustSignatureTrust trust, unsigned short depth, const QString &scope) override
void | setExpirationDate (const QDate &expiration) override
Public Member Functions inherited from QGpgME::_detail::ThreadedJobMixin< SignKeyJob >
void | run ()
void | run (const T_binder &func)
void | run (const T_binder &func, const std::shared_ptr< QIODevice > &io)
void | run (const T_binder &func, const std::shared_ptr< QIODevice > &io1, const std::shared_ptr< QIODevice > &io2)
Public Member Functions inherited from QGpgME::Job
bool | isAuditLogSupported () const
GpgME::Error | startIt ()
void | startNow ()

## Additional Inherited Members

Public Types inherited from QGpgME::_detail::ThreadedJobMixin< SignKeyJob >
typedef ThreadedJobMixin< SignKeyJob, void, std::tuple< GpgME::Error, QString, GpgME::Error > > | mixin_type
typedef std::tuple< GpgME::Error, QString, GpgME::Error > | result_type
Public Slots inherited from QGpgME::Job
Signals inherited from QGpgME::SignKeyJob
void | result (const GpgME::Error &result, const QString &auditLogAsHtml=QString(), const GpgME::Error &auditLogError=GpgME::Error())
Signals inherited from QGpgME::Job
void | jobProgress (int current, int total)
void | rawProgress (const QString &what, int type, int current, int total)
QGPGME_DEPRECATED void | progress (const QString &what, int current, int total)
void | done ()
Static Public Member Functions inherited from QGpgME::Job
static GpgME::Context * | context (Job *job)
Protected Member Functions inherited from QGpgME::_detail::ThreadedJobMixin< SignKeyJob >
| ThreadedJobMixin (GpgME::Context *ctx)
| ThreadedJobMixin (GpgME::Context *ctx)
void | lateInitialization ()
void | setWorkerFunction (const T_binder &func)
GpgME::Context * | context () const
virtual void | resultHook (const result_type &)
void | slotFinished ()
void | slotCancel () override
QString | auditLogAsHtml () const override
GpgME::Error | auditLogError () const override
void | showProgress (const char *what, int type, int current, int total) override
Protected Member Functions inherited from QGpgME::SignKeyJob
| SignKeyJob (QObject *parent)
Protected Member Functions inherited from QGpgME::Job
| Job (std::unique_ptr< JobPrivate >, QObject *parent)
| Job (QObject *parent)
Protected Attributes inherited from QGpgME::Job
const std::unique_ptr< JobPrivate > | d_ptr

## Member Function Documentation

## setCheckLevel()

void QGpgMESignKeyJob::setCheckLevel | ( | unsigned int | checkLevel | ) |

override virtual

sets the check level

Parameters

  checkLevel | the check level, ranges from 0 (no claim) and 3 (extensively checked), default is 0

Implements QGpgME::SignKeyJob.

## setDupeOk()

void QGpgMESignKeyJob::setDupeOk | ( | bool |  | ) |

override virtual

Set this if it is ok to overwrite an existing signature. In that case the context has to have the flag "extended-edit" set to 1 through Context::setFlag before calling edit.

Not pure virtual for ABI compatibility.

Reimplemented from QGpgME::SignKeyJob.

## setExpirationDate()

void QGpgMESignKeyJob::setExpirationDate | ( | const QDate & | expiration | ) |

override virtual

Sets the expiration date of the key signature to expiration. By default, key signatures do not expire.

Note: Expiration dates after 2106-02-05 will be set to 2106-02-05.

Not pure virtual for ABI compatibility.

Reimplemented from QGpgME::SignKeyJob.

## setExportable()

void QGpgMESignKeyJob::setExportable | ( | bool | exportable | ) |

override virtual

sets whether the signature should be exportable, or local only. default is local.

Implements QGpgME::SignKeyJob.

## setNonRevocable()

void QGpgMESignKeyJob::setNonRevocable | ( | bool | nonRevocable | ) |

override virtual

if set, the created signature won't be revocable. By default signatures can be revoked.

Implements QGpgME::SignKeyJob.

## setRemark()

void QGpgMESignKeyJob::setRemark | ( | const QString & |  | ) |

override virtual

Add a remark to the signature. This uses rem@g.nosp@m.nupg.nosp@m..org as a notation.

Not pure virtual for ABI compatibility.

Reimplemented from QGpgME::SignKeyJob.

## setSigningKey()

void QGpgMESignKeyJob::setSigningKey | ( | const GpgME::Key & | key | ) |

override virtual

sets an alternate signing key

Implements QGpgME::SignKeyJob.

## setTrustSignature()

void QGpgMESignKeyJob::setTrustSignature | ( | GpgME::TrustSignatureTrust | trust,
|  | unsigned short | depth,
|  | const QString & | scope
| ) |  |

override virtual

If set, then the created signature will be a trust signature. By default, no trust signatures are created.

trust is the amount of trust to put into the signed key, either `TrustSignatureTrust::Partial` or `TrustSignatureTrust::Complete`. depth is the level of the trust signature. Values between 0 and 255 are allowed. Level 0 has the same meaning as an ordinary validity signature. Level 1 means that the signed key is asserted to be a valid trusted introducer. Level n >= 2 means that the signed key is asserted to be trusted to issue level n-1 trust signatures, i.e., that it is a "meta introducer". scope is a domain name that limits the scope of trust of the signed key to user IDs with email addresses matching the domain (or a subdomain).

Not pure virtual for ABI compatibility.

Reimplemented from QGpgME::SignKeyJob.

## setUserIDsToSign()

void QGpgMESignKeyJob::setUserIDsToSign | ( | const std::vector< unsigned int > & | idsToSign | ) |

override virtual

If explicitly specified, only the listed user IDs will be signed. Otherwise all user IDs are signed.

Parameters

  idsToSign | list of user ID indexes (of the key to be signed).

Implements QGpgME::SignKeyJob.

## start()

Error QGpgMESignKeyJob::start | ( | const GpgME::Key & | keyToSign | ) |

override virtual

Starts the key signing operation. key is the key to sign.

Parameters

  keyToSign | the key to be signed

Implements QGpgME::SignKeyJob.

The documentation for this class was generated from the following files:

- qgpgmesignkeyjob.h
- qgpgmesignkeyjob.cpp