db/proxy: pass search/find to remote MPD

This commit is contained in:
Max Kellermann
2013-10-30 10:00:57 +01:00
parent 2b7529e905
commit 6a147a17af
2 changed files with 54 additions and 1 deletions

View File

@@ -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.