QGpgME  15.0.0.000044f
Qt API for GpgME
Public Member Functions | List of all members
QGpgME::QGpgMEChangeExpiryJob Class Reference
Inheritance diagram for QGpgME::QGpgMEChangeExpiryJob:
Inheritance graph
[legend]
Collaboration diagram for QGpgME::QGpgMEChangeExpiryJob:
Collaboration graph
[legend]

Public Member Functions

 QGpgMEChangeExpiryJob (GpgME::Context *context)
 
GpgME::Error start (const GpgME::Key &key, const QDateTime &expiry) Q_DECL_OVERRIDE
 
GpgME::Error start (const GpgME::Key &key, const QDateTime &expiry, const std::vector< GpgME::Subkey > &subkeys) Q_DECL_OVERRIDE
 
- Public Member Functions inherited from QGpgME::ChangeExpiryJob
void setOptions (Options options)
 
Options options () const
 
- Public Member Functions inherited from QGpgME::Job
bool isAuditLogSupported () const
 

Additional Inherited Members

- Public Types inherited from QGpgME::_detail::ThreadedJobMixin< ChangeExpiryJob >
typedef ThreadedJobMixin< ChangeExpiryJob, std::tuple< GpgME::Error, QString, GpgME::Error > > mixin_type
 
typedef std::tuple< GpgME::Error, QString, GpgME::Error > result_type
 
- Public Types inherited from QGpgME::ChangeExpiryJob
enum  Option { Default = 0x00 , UpdatePrimaryKey = 0x01 , UpdateAllSubkeys = 0x02 }
 
- Public Slots inherited from QGpgME::Job
- Signals inherited from QGpgME::ChangeExpiryJob
void result (const GpgME::Error &result, 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 ()
 
- Static Public Member Functions inherited from QGpgME::Job
static GpgME::Context * context (Job *job)
 
- Protected Member Functions inherited from QGpgME::_detail::ThreadedJobMixin< ChangeExpiryJob >
 ThreadedJobMixin (GpgME::Context *ctx)
 
void lateInitialization ()
 
void run (const T_binder &func)
 
void run (const T_binder &func, const std::shared_ptr< QIODevice > &io)
 
void run (const T_binder &func, const std::shared_ptr< QIODevice > &io1, const std::shared_ptr< QIODevice > &io2)
 
GpgME::Context * context () const
 
virtual void resultHook (const result_type &)
 
void slotFinished ()
 
void slotCancel () Q_DECL_OVERRIDE
 
QString auditLogAsHtml () const Q_DECL_OVERRIDE
 
GpgME::Error auditLogError () const Q_DECL_OVERRIDE
 
void showProgress (const char *, int, int current, int total) Q_DECL_OVERRIDE
 
- Protected Member Functions inherited from QGpgME::ChangeExpiryJob
 ChangeExpiryJob (QObject *parent)
 
- Protected Member Functions inherited from QGpgME::Job
 Job (QObject *parent)
 

Member Function Documentation

◆ start() [1/2]

GpgME::Error QGpgME::QGpgMEChangeExpiryJob::start ( const GpgME::Key &  key,
const QDateTime &  expiry 
)
virtual

Starts the change-expiry operation. key is the key to change the expiry of. expiry is the new expiry time. If expiry is not valid, key is set to never expire.

Implements QGpgME::ChangeExpiryJob.

◆ start() [2/2]

GpgME::Error QGpgME::QGpgMEChangeExpiryJob::start ( const GpgME::Key &  key,
const QDateTime &  expiry,
const std::vector< GpgME::Subkey > &  subkeys 
)
virtual

Starts the change-expiry operation. key is the key to change, subkeys is a list of subkeys of the key, and expiry is the new expiry time. If subkeys is empty, then the expiry of key is changed. Otherwise, the expiry of subkeys is changed. If expiry is not valid, then key or subkeys are set to never expire.

Reimplemented from QGpgME::ChangeExpiryJob.


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