34 #ifndef __QGPGME_JOB_P_H__
35 #define __QGPGME_JOB_P_H__
39 #include "qgpgme_debug.h"
52 virtual void start() = 0;
57 void setJobPrivate(
const Job *job, std::unique_ptr<JobPrivate> d);
62 static T *jobPrivate(
const Job *job) {
63 auto d = getJobPrivate(job);
64 return dynamic_cast<T *
>(d);
68 template<
class JobClass>
69 void emitArchiveProgressSignals(JobClass *job,
const QString &what,
int type,
int current,
int total)
71 if (what != QLatin1String{
"gpgtar"}) {
76 Q_EMIT job->fileProgress(current, total);
79 Q_EMIT job->dataProgress(current, total);
82 qCDebug(QGPGME_LOG) << job << __func__ <<
"Received progress for gpgtar with unknown type" << char(type);
An abstract base class for asynchronous crypto operations.
Definition: job.h:73