QGpgME  13.6.0.0000555
Qt API for GpgME
Signals | Public Member Functions | Protected Member Functions | List of all members
QGpgME::GpgCardJob Class Referenceabstract

Get the best key to use for a Mailbox. More...

#include <gpgcardjob.h>

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

Signals

void result (const QString &std_out, const QString &std_err, int exitCode, 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 GpgME::Error start (const QStringList &cmds)=0
 
virtual GpgME::Error exec (const QStringList &cmds, QString &std_out, QString &std_err, int &exitCode)=0
 
- Public Member Functions inherited from QGpgME::Job
virtual QString auditLogAsHtml () const
 
virtual GpgME::Error auditLogError () const
 
bool isAuditLogSupported () const
 

Protected Member Functions

 GpgCardJob (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)
 

Detailed Description

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().

Member Function Documentation

◆ result

void QGpgME::GpgCardJob::result ( const QString &  std_out,
const QString &  std_err,
int  exitCode,
const QString &  auditLogAsHtml = QString(),
const GpgME::Error &  auditLogError = GpgME::Error() 
)
signal

The resulting stdout and stderr of gpgcard and the exitCode

The auditlog params are always null / empty.

◆ start()

virtual GpgME::Error QGpgME::GpgCardJob::start ( const QStringList &  cmds)
pure virtual

Starts the operation. cmds are the commands to execute.

Implemented in QGpgME::QGpgMEGpgCardJob.


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