QGpgME 21.6.2.0000005
Qt API for GpgME
|
#include <wkspublishjob.h>
Signals | |
void | result (const GpgME::Error &error, const QByteArray &returnedData, const QByteArray &returnedError, const QString &auditLogAsHtml=QString(), const GpgME::Error &auditLogError=GpgME::Error()) |
![]() | |
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 () |
Public Member Functions | |
virtual void | startCheck (const QString &mailbox)=0 |
virtual void | startCreate (const char *fpr, const QString &mailbox)=0 |
virtual void | startReceive (const QByteArray &response)=0 |
![]() | |
virtual QString | auditLogAsHtml () const |
virtual GpgME::Error | auditLogError () const |
bool | isAuditLogSupported () const |
GpgME::Error | startIt () |
void | startNow () |
Protected Member Functions | |
WKSPublishJob (QObject *parent) | |
![]() | |
Job (QObject *parent) | |
Additional Inherited Members | |
![]() | |
virtual void | slotCancel ()=0 |
![]() | |
static GpgME::Context * | context (Job *job) |
Handles Web Key Service Publishing. Needs WKS tools installed and server support.
Remember that after a result is emitted the job is auto deleted so you can only use it for a single action.
The workflow is to call startCreate, check for errors and then send the RFC822 mail returned in returnedData.
When the response is received call startReceive with the RFC822 mail received as parameter response. Check for errors and then send the result from returnedData back to the server.
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.
the | mailbox to check for. |
Implemented in QGpgME::QGpgMEWKSPublishJob.
|
pure virtual |
Create a publish request. The returnedData from the result signal will contain the full Request as returned by gpg-wks-client –create
fpr | the fingerprint of the key to create the request for. |
mailbox | A simple mail address without a Name. |
Implemented in QGpgME::QGpgMEWKSPublishJob.
|
pure virtual |
Handle a submission response. The returnedData in the result singnal will contain the confirmation response as returned by gpg-wks-client –receive
response | The response of the server. |
Implemented in QGpgME::QGpgMEWKSPublishJob.