From 6a147a17af10af3852aed3549858d6aae75a8841 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Oct 2013 10:00:57 +0100 Subject: db/proxy: pass search/find to remote MPD --- src/SongFilter.hxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/SongFilter.hxx') diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx index a71fe2cb1..a34fca8c2 100644 --- a/src/SongFilter.hxx +++ b/src/SongFilter.hxx @@ -61,6 +61,10 @@ public: return tag; } + bool GetFoldCase() const { + return fold_case; + } + const std::string &GetValue() const { return value; } @@ -105,6 +109,18 @@ public: return items; } + /** + * Is there at least one item with "fold case" enabled? + */ + gcc_pure + bool HasFoldCase() const { + for (const auto &i : items) + if (i.GetFoldCase()) + return true; + + return false; + } + /** * Returns the "base" specification (if there is one) or an * empty string. -- cgit v1.2.3