aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/keylistjob.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-08-25 14:22:12 +0000
committerAndre Heinecke <[email protected]>2016-08-25 14:22:12 +0000
commit4e37d0bb1255558ce20e1a5ac83a2d06a37f8b0b (patch)
tree91da58445c232dbd2fb815ed7b7e9e3e379dc1d8 /lang/qt/src/keylistjob.h
parentqt: Ensure that current src dir is included first (diff)
downloadgpgme-4e37d0bb1255558ce20e1a5ac83a2d06a37f8b0b.tar.gz
gpgme-4e37d0bb1255558ce20e1a5ac83a2d06a37f8b0b.zip
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.
Diffstat (limited to 'lang/qt/src/keylistjob.h')
-rw-r--r--lang/qt/src/keylistjob.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/qt/src/keylistjob.h b/lang/qt/src/keylistjob.h
index fc7a048c..8dc736e0 100644
--- a/lang/qt/src/keylistjob.h
+++ b/lang/qt/src/keylistjob.h
@@ -96,6 +96,9 @@ public:
virtual GpgME::KeyListResult exec(const QStringList &patterns, bool secretOnly, std::vector<GpgME::Key> &keys) = 0;
+ /** Add a flag to the keylistmode used. */
+ virtual void addMode(GpgME::KeyListMode mode) = 0;
+
Q_SIGNALS:
void nextKey(const GpgME::Key &key);
void result(const GpgME::KeyListResult &result, const std::vector<GpgME::Key> &keys = std::vector<GpgME::Key>(), const QString &auditLogAsHtml = QString(), const GpgME::Error &auditLogError = GpgME::Error());