qt: Some minor cleanups

* lang/qt/src/qgpgmequickjob.h: (GpgME::Key, QDateTime, QString):
Remove superfluous forward declarations.
(QGpgMEQuickJob): Remove superfluous second template argument. It is
identical to the default.
(QGpgMEQuickJob::result): Remove. It is already defined in the base
class.
This commit is contained in:
Ingo Klöcker 2020-10-28 16:58:06 +01:00
parent 4166d263e4
commit 60328c4690

View File

@ -34,14 +34,8 @@
#include "threadedjobmixin.h" #include "threadedjobmixin.h"
namespace GpgME { namespace QGpgME
class Key; {
}
class QDateTime;
class QString;
namespace QGpgME{
/** /**
* Interface to the modern key manipulation functions. * Interface to the modern key manipulation functions.
@ -50,7 +44,7 @@ class QGpgMEQuickJob
#ifdef Q_MOC_RUN #ifdef Q_MOC_RUN
: public QuickJob : public QuickJob
#else #else
: public _detail::ThreadedJobMixin<QuickJob, std::tuple<GpgME::Error, QString, GpgME::Error> > : public _detail::ThreadedJobMixin<QuickJob>
#endif #endif
{ {
Q_OBJECT Q_OBJECT
@ -72,10 +66,6 @@ public:
void startAddSubkey(const GpgME::Key &key, const char *algo, void startAddSubkey(const GpgME::Key &key, const char *algo,
const QDateTime &expires = QDateTime(), const QDateTime &expires = QDateTime(),
unsigned int flags = 0) Q_DECL_OVERRIDE; unsigned int flags = 0) Q_DECL_OVERRIDE;
Q_SIGNALS:
void result(const GpgME::Error &error,
const QString &auditLogAsHtml, const GpgME::Error &auditLogError);
}; };
} }