diff options
| author | Ingo Klöcker <[email protected]> | 2022-04-29 10:50:31 +0200 |
|---|---|---|
| committer | Ingo Klöcker <[email protected]> | 2022-04-29 10:50:31 +0200 |
| commit | fd97cbaa44b8e7914089319afac1e776c9a64283 (patch) | |
| tree | 8cd4290a66a8cbc5eccd43c9ea6ba0cb56de1a10 /lang/qt/src/refreshkeysjob.h | |
| parent | qt: Minor refactoring (diff) | |
| download | gpgme-fd97cbaa44b8e7914089319afac1e776c9a64283.tar.gz gpgme-fd97cbaa44b8e7914089319afac1e776c9a64283.zip | |
qt: Allow refreshing a list of keys
* lang/qt/src/refreshkeysjob.h (class RefreshKeysJob): Add pure virtual
member function start taking a list of keys.
* lang/qt/src/qgpgmerefreshsmimekeysjob.h,
lang/qt/src/qgpgmerefreshsmimekeysjob.cpp (class
QGpgMERefreshSMIMEKeysJob): Implement new member function.
--
The new overload makes it easier to refresh some keys if one does
already have Keys.
GnuPG-bug-id: 5951
Diffstat (limited to 'lang/qt/src/refreshkeysjob.h')
| -rw-r--r-- | lang/qt/src/refreshkeysjob.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lang/qt/src/refreshkeysjob.h b/lang/qt/src/refreshkeysjob.h index c4ba74a0..b6978060 100644 --- a/lang/qt/src/refreshkeysjob.h +++ b/lang/qt/src/refreshkeysjob.h @@ -73,19 +73,20 @@ public: ~RefreshKeysJob(); /** - Starts the keylist operation. \a pattern is a list of patterns + Starts the refresh operation. \a pattern is a list of patterns used to restrict the list of keys returned. Empty patterns are ignored. If \a pattern is empty or contains only empty strings, - all keys are returned (however, the backend is free to truncate - the result and should do so; when this happens, it will be - reported by the reult object). + all keys are refreshed. - If \a secretOnly is true, only keys for which the secret key is - also available are returned. Use this if you need to select a - key for signing. + Only implemented for S/MIME. */ virtual GpgME::Error start(const QStringList &patterns) = 0; + /** + Starts a refresh of the \a keys. + */ + virtual GpgME::Error start(const std::vector<GpgME::Key> &keys) = 0; + Q_SIGNALS: void result(const GpgME::Error &error); }; |
