QGpgME  10.3.4.0000000
Qt API for GpgME
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]

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
 
- 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
- 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
thecheck level, ranges from 0 (no claim) and 3 (extensively checked), default is 0

Implements 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.

◆ setSigningKey()

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

sets an alternate signing key

Implements 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
listof 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
idsToSignthe user IDs to sign
signingKeythe secret key to use for signing
optionthe signing mode, either local or exportable

Implements QGpgME::SignKeyJob.


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