QGpgME
15.0.0.000058f
Qt API for GpgME
|
Get the best key to use for a Mailbox. More...
#include <gpgcardjob.h>
Signals | |
void | result (const QString &std_out, const QString &std_err, int exitCode, const QString &auditLogAsHtml=QString(), const GpgME::Error &auditLogError=GpgME::Error()) |
![]() | |
void | progress (const QString &what, int current, int total) |
void | done () |
Public Member Functions | |
virtual GpgME::Error | start (const QStringList &cmds)=0 |
virtual GpgME::Error | exec (const QStringList &cmds, QString &std_out, QString &std_err, int &exitCode)=0 |
![]() | |
virtual QString | auditLogAsHtml () const |
virtual GpgME::Error | auditLogError () const |
bool | isAuditLogSupported () const |
Protected Member Functions | |
GpgCardJob (QObject *parent) | |
![]() | |
Job (QObject *parent) | |
Additional Inherited Members | |
![]() | |
virtual void | slotCancel ()=0 |
![]() | |
static GpgME::Context * | context (Job *job) |
Get the best key to use for a Mailbox.
To use the keyformailboxjob, first obtain an instance from the CryptoBackend and either exec it or start and conncet the result() signals to a suitable slot. The job will be automatically deleted in which case the KeylistJob instance will have schedules it's own destruction with a call to QObject::deleteLater().
The best key is defined as the key with a UID that has an E-Mail that matches the mailbox provided. If multiple keys are found the one with the highest validity is returned.
After result() is emitted, the KeyListJob will schedule it's own destruction by calling QObject::deleteLater().
|
signal |
The resulting stdout and stderr of gpgcard and the exitCode
The auditlog params are always null / empty.
|
pure virtual |
Starts the operation. cmds are the commands to execute.
Implemented in QGpgME::QGpgMEGpgCardJob.