34 #ifndef __QGPGME_JOB_P_H__
35 #define __QGPGME_JOB_P_H__
39 #include "qgpgme_debug.h"
44 friend class ::QGpgME::Job;
52 virtual GpgME::Error startIt() = 0;
54 virtual void startNow() = 0;
60 template<
class JobClass>
61 void 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);
78 #endif // __QGPGME_JOB_P_H__
An abstract base class for asynchronous crypto operations.
Definition: job.h:71