|
QGpgME
13.6.0.000055d
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()) |
Signals inherited from QGpgME::Job | |
| 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 |
Public Member Functions inherited from QGpgME::Job | |
| virtual QString | auditLogAsHtml () const |
| virtual GpgME::Error | auditLogError () const |
| bool | isAuditLogSupported () const |
Protected Member Functions | |
| WKSPublishJob (QObject *parent) | |
Protected Member Functions inherited from QGpgME::Job | |
| Job (QObject *parent) | |
Additional Inherited Members | |
Public Slots inherited from QGpgME::Job | |
| virtual void | slotCancel ()=0 |
Static Public Member Functions inherited from QGpgME::Job | |
| 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 start a startRecieve with the RFC822 mail received as parameter response. Check for errors and then send again send the result from returnedData back to the server.
|
pure 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.
| 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.