QGpgME
16.1.0.0000469
Qt API for GpgME
|
An abstract base class for asynchronously listing all keys. More...
#include <listallkeysjob.h>
Signals | |
void | result (const GpgME::KeyListResult &result, const std::vector< GpgME::Key > &pub=std::vector< GpgME::Key >(), const std::vector< GpgME::Key > &sec=std::vector< GpgME::Key >(), 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 (bool mergeKeys=false)=0 |
virtual GpgME::KeyListResult | exec (std::vector< GpgME::Key > &pub, std::vector< GpgME::Key > &sec, bool mergeKeys=false)=0 |
![]() | |
virtual QString | auditLogAsHtml () const |
virtual GpgME::Error | auditLogError () const |
bool | isAuditLogSupported () const |
Protected Member Functions | |
ListAllKeysJob (QObject *parent) | |
![]() | |
Job (QObject *parent) | |
Additional Inherited Members | |
![]() | |
virtual void | slotCancel ()=0 |
![]() | |
static GpgME::Context * | context (Job *job) |
An abstract base class for asynchronously listing all keys.
To use a ListAllKeysJob, first obtain an instance from the CryptoBackend implementation, connect the progress() and result() signals to suitable slots and then start the key listing with a call to start(). This call might fail, in which case the ListAllKeysJob instance will have schedules it's own destruction with a call to QObject::deleteLater().
After result() is emitted, the ListAllKeysJob will schedule it's own destruction by calling QObject::deleteLater().
This is potentially much faster than a KeyListJob with empty pattern.
|
pure virtual |
Synchronous version of start().
Implemented in QGpgME::QGpgMEListAllKeysJob.
|
pure virtual |
Starts the listallkeys operation. In general, all keys are returned (however, the backend is free to truncate the result and should do so; when this happens, it will be reported by the result object).
If GnuPG 2.1 or later is used, then mergeKeys is ignored. Otherwise, if mergeKeys is true, then some (but not all) information of the secret keys is merged into public keys.
Implemented in QGpgME::QGpgMEListAllKeysJob.