summaryrefslogtreecommitdiff
path: root/src/db/Selection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/Selection.cxx')
-rw-r--r--src/db/Selection.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/db/Selection.cxx b/src/db/Selection.cxx
index 96382eed7..a886916cb 100644
--- a/src/db/Selection.cxx
+++ b/src/db/Selection.cxx
@@ -31,6 +31,18 @@ DatabaseSelection::DatabaseSelection(const char *_uri, bool _recursive,
}
bool
+DatabaseSelection::IsEmpty() const
+{
+ return uri.empty() && (filter == nullptr || filter->IsEmpty());
+}
+
+bool
+DatabaseSelection::HasOtherThanBase() const
+{
+ return filter != nullptr && filter->HasOtherThanBase();
+}
+
+bool
DatabaseSelection::Match(const LightSong &song) const
{
return filter == nullptr || filter->Match(song);