diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-03 20:49:25 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-04 12:54:12 +0200 |
| commit | 8e65d8f5eba78acc9558e26f9b728521f323b1a6 (patch) | |
| tree | b757abae9cfe2a7797332e0190845edfb52ab0a6 /src/notmuchworker.h | |
| parent | 4175f3e7314410a5e35bb3c06a0faf9065ce2e7a (diff) | |
| download | qtmaildir-8e65d8f5eba78acc9558e26f9b728521f323b1a6.tar.gz qtmaildir-8e65d8f5eba78acc9558e26f9b728521f323b1a6.zip | |
feat(worker): list every tag in the database
Query bar completion cannot offer tag names without a way to enumerate
them, and libnotmuch had no call wired up for it. Follows the existing
generation-counter pattern; the result crosses the thread boundary as a
QStringList.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'src/notmuchworker.h')
| -rw-r--r-- | src/notmuchworker.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/notmuchworker.h b/src/notmuchworker.h index e0c80c6..88187ec 100644 --- a/src/notmuchworker.h +++ b/src/notmuchworker.h @@ -69,11 +69,17 @@ public slots: const QStringList &remove, const QString &description); + /// Every tag in the database, sorted. Feeds query bar completion, which + /// cannot offer tag names it has no way to enumerate. Called at startup, + /// after a sync, and after a tag mutation introduces an unknown tag. + void requestAllTags(quint64 generation); + signals: void threadsReady(const QVector<ThreadSummary> &threads, quint64 generation); void queryFinished(int totalThreads, quint64 generation); void threadLoaded(const QVector<MessageRef> &messages, quint64 generation); void tagsApplied(const TagChange &change); + void allTagsReady(const QStringList &tags, quint64 generation); void errorOccurred(const QString &message); private: |
