QGpgME 16.1.0.000048f
Qt API for GpgME
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
QGpgME::QGpgMESignKeyJob Class Reference
Inheritance diagram for QGpgME::QGpgMESignKeyJob:
Inheritance graph
[legend]
Collaboration diagram for QGpgME::QGpgMESignKeyJob:
Collaboration graph
[legend]

Classes

class  Private
 

Public Member Functions

 QGpgMESignKeyJob (GpgME::Context *context)
 
GpgME::Error start (const GpgME::Key &key) Q_DECL_OVERRIDE
 
void setUserIDsToSign (const std::vector< unsigned int > &idsToSign) Q_DECL_OVERRIDE
 
void setCheckLevel (unsigned int checkLevel) Q_DECL_OVERRIDE
 
void setExportable (bool exportable) Q_DECL_OVERRIDE
 
void setSigningKey (const GpgME::Key &key) Q_DECL_OVERRIDE
 
void setNonRevocable (bool nonRevocable) Q_DECL_OVERRIDE
 
void setRemark (const QString &remark) Q_DECL_OVERRIDE
 
void setDupeOk (bool value) Q_DECL_OVERRIDE
 
void setTrustSignature (GpgME::TrustSignatureTrust trust, unsigned short depth, const QString &scope) Q_DECL_OVERRIDE
 
void setExpirationDate (const QDate &expiration) override
 
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)
 
virtual void setExpirationDate (const QDate &expiration)
 
- Public Member Functions inherited from QGpgME::Job
virtual QString auditLogAsHtml () const
 
virtual GpgME::Error auditLogError () const
 
bool isAuditLogSupported () const
 

Additional Inherited Members

- Public Types inherited from QGpgME::_detail::ThreadedJobMixin< SignKeyJob >
typedef ThreadedJobMixin< SignKeyJob, 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
virtual void slotCancel ()=0
 
- 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 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)
 
void lateInitialization ()
 
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)
 
GpgME::Context * context () const
 
virtual void resultHook (const result_type &)
 
void slotFinished ()
 
void slotCancel () Q_DECL_OVERRIDE
 
QString auditLogAsHtml () const Q_DECL_OVERRIDE
 
GpgME::Error auditLogError () const Q_DECL_OVERRIDE
 
void showProgress (const char *, int, int current, int total) Q_DECL_OVERRIDE
 
- Protected Member Functions inherited from QGpgME::SignKeyJob
 SignKeyJob (QObject *parent)
 
- Protected Member Functions inherited from QGpgME::Job
 Job (QObject *parent)
 

Member Function Documentation

◆ setCheckLevel()

void QGpgMESignKeyJob::setCheckLevel ( unsigned int  checkLevel)
virtual

sets the check level

Parameters
checkLevelthe check level, ranges from 0 (no claim) and 3 (extensively checked), default is 0

Implements QGpgME::SignKeyJob.

◆ setDupeOk()

void QGpgMESignKeyJob::setDupeOk ( bool  )
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)
overridevirtual

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)
virtual

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

Implements QGpgME::SignKeyJob.

◆ setNonRevocable()

void QGpgMESignKeyJob::setNonRevocable ( bool  nonRevocable)
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 &  )
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)
virtual

sets an alternate signing key

Implements QGpgME::SignKeyJob.

◆ setTrustSignature()

void QGpgMESignKeyJob::setTrustSignature ( GpgME::TrustSignatureTrust  trust,
unsigned short  depth,
const QString &  scope 
)
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)
virtual

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

Parameters
idsToSignlist of user ID indexes (of the key to be signed).

Implements QGpgME::SignKeyJob.

◆ start()

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

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

Parameters
keyToSignthe key to be signed

Implements QGpgME::SignKeyJob.


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