From 4e37d0bb1255558ce20e1a5ac83a2d06a37f8b0b Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Thu, 25 Aug 2016 16:22:12 +0200 Subject: qt: Add generic flag support for keylistjobs * lang/qt/src/keylistjob.h (addMode): New. * lang/qt/src/qgpgmekeylistjob.h (addMode): New. * lang/qt/src/qgpgmekeylistjob.cpp (addMode: New. -- Instead of new API for each new thing lets be a bit more generic / open. --- lang/qt/src/qgpgmekeylistjob.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lang/qt/src/qgpgmekeylistjob.h') diff --git a/lang/qt/src/qgpgmekeylistjob.h b/lang/qt/src/qgpgmekeylistjob.h index cbe1e94d..2d5406aa 100644 --- a/lang/qt/src/qgpgmekeylistjob.h +++ b/lang/qt/src/qgpgmekeylistjob.h @@ -74,9 +74,10 @@ public: /* from KeyListJob */ GpgME::KeyListResult exec(const QStringList &patterns, bool secretOnly, std::vector &keys) Q_DECL_OVERRIDE; + void addMode(GpgME::KeyListMode mode) Q_DECL_OVERRIDE; + /* from ThreadedJobMixin */ void resultHook(const result_type &result) Q_DECL_OVERRIDE; - private: GpgME::KeyListResult mResult; bool mSecretOnly; -- cgit v1.2.3