aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongFilter.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-30 10:00:57 +0100
committerMax Kellermann <max@duempel.org>2013-10-30 10:00:57 +0100
commit6a147a17af10af3852aed3549858d6aae75a8841 (patch)
tree69b01e77b06652ff8104d9de0182fda0f4ab7dfd /src/SongFilter.hxx
parent2b7529e905770e307396ab768a94013833efb802 (diff)
downloadmpd-6a147a17af10af3852aed3549858d6aae75a8841.tar.gz
mpd-6a147a17af10af3852aed3549858d6aae75a8841.tar.xz
mpd-6a147a17af10af3852aed3549858d6aae75a8841.zip
db/proxy: pass search/find to remote MPD
Diffstat (limited to 'src/SongFilter.hxx')
-rw-r--r--src/SongFilter.hxx16
1 files changed, 16 insertions, 0 deletions
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;
}
@@ -106,6 +110,18 @@ public:
}
/**
+ * 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.
*/