QGpgME  10.3.4.0000000
Qt API for GpgME
Public Member Functions | List of all members
QGpgME::QGpgMEWKSPublishJob Class Reference

#include <qgpgmewkspublishjob.h>

Inheritance diagram for QGpgME::QGpgMEWKSPublishJob:
Inheritance graph
[legend]
Collaboration diagram for QGpgME::QGpgMEWKSPublishJob:
Collaboration graph
[legend]

Public Member Functions

 QGpgMEWKSPublishJob (GpgME::Context *context)
 
void startCheck (const QString &mailbox) Q_DECL_OVERRIDE
 
void startCreate (const char *fpr, const QString &mailbox) Q_DECL_OVERRIDE
 
void startReceive (const QByteArray &response) 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< WKSPublishJob, std::tuple< GpgME::Error, QByteArray, QByteArray, QString, GpgME::Error > >
typedef ThreadedJobMixin< WKSPublishJob, std::tuple< GpgME::Error, QByteArray, QByteArray, QString, GpgME::Error > > mixin_type
 
typedef std::tuple< GpgME::Error, QByteArray, QByteArray, QString, GpgME::Error > result_type
 
- Public Slots inherited from QGpgME::Job
- Signals inherited from QGpgME::WKSPublishJob
void result (const GpgME::Error &error, const QByteArray &returnedData, const QByteArray &returnedError, 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< WKSPublishJob, std::tuple< GpgME::Error, QByteArray, QByteArray, QString, GpgME::Error > >
 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::WKSPublishJob
 WKSPublishJob (QObject *parent)
 
- Protected Member Functions inherited from QGpgME::Job
 Job (QObject *parent)
 

Detailed Description

Handles Web Key Service Publishing. Needs WKS tools installed and server support.

Member Function Documentation

◆ startCheck()

void QGpgMEWKSPublishJob::startCheck ( const QString &  mailbox)
virtual

Start a check if WKS Publishing is supported. As this involves an HTTP Query it might take a while. Returns GPG_ERR_NOT_SUPPORED result if GnuPG is too old or the required tools are not installed.

The error GPG_ERR_NOT_ENABLED indicates that wks-tools failed to detect a working wks service for this.

Parameters
themailbox to check for.

Implements QGpgME::WKSPublishJob.

◆ startCreate()

void QGpgMEWKSPublishJob::startCreate ( const char *  fpr,
const QString &  mailbox 
)
virtual

Create a publish request. The returnedData from the result signal will contain the full Request as returned by gpg-wks-client –create

Parameters
fprthe fingerprint of the key to create the request for.
mailboxA simple mail address without a Name.

Implements QGpgME::WKSPublishJob.

◆ startReceive()

void QGpgMEWKSPublishJob::startReceive ( const QByteArray &  response)
virtual

Handle a submission response. The returnedData in the result singnal will contain the confirmation response as returned by gpg-wks-client –receive

Parameters
responseThe response of the server.

Implements QGpgME::WKSPublishJob.


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