LightSong: new class to be used by DatabasePlugin callbacks
Detach the Song class completely from the public API, only to be used by SimpleDatabase and the update thread.
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
struct Tag;
|
||||
struct TagItem;
|
||||
struct Song;
|
||||
struct LightSong;
|
||||
class DetachedSong;
|
||||
|
||||
class SongFilter {
|
||||
@@ -80,10 +81,10 @@ public:
|
||||
bool Match(const Tag &tag) const;
|
||||
|
||||
gcc_pure
|
||||
bool Match(const Song &song) const;
|
||||
bool Match(const DetachedSong &song) const;
|
||||
|
||||
gcc_pure
|
||||
bool Match(const DetachedSong &song) const;
|
||||
bool Match(const LightSong &song) const;
|
||||
};
|
||||
|
||||
private:
|
||||
@@ -107,10 +108,10 @@ public:
|
||||
bool Match(const Tag &tag) const;
|
||||
|
||||
gcc_pure
|
||||
bool Match(const Song &song) const;
|
||||
bool Match(const DetachedSong &song) const;
|
||||
|
||||
gcc_pure
|
||||
bool Match(const DetachedSong &song) const;
|
||||
bool Match(const LightSong &song) const;
|
||||
|
||||
const std::list<Item> &GetItems() const {
|
||||
return items;
|
||||
|
Reference in New Issue
Block a user