34#ifndef __QGPGME_JOB_P_H__
35#define __QGPGME_JOB_P_H__
39#include "qgpgme_debug.h"
44 friend class ::QGpgME::Job;
49 JobPrivate() =
default;
50 virtual ~JobPrivate() =
default;
52 virtual GpgME::Error startIt() = 0;
54 virtual void startNow() = 0;
60template<
class JobClass>
61void emitArchiveProgressSignals(JobClass *job,
const QString &what,
int type,
int current,
int total)
63 if (what != QLatin1String{
"gpgtar"}) {
68 Q_EMIT job->fileProgress(current, total);
71 Q_EMIT job->dataProgress(current, total);
74 qCDebug(QGPGME_LOG) << job << __func__ <<
"Received progress for gpgtar with unknown type" << char(type);