CollectionBackend: Rename source accessor

This commit is contained in:
Jonas Kvinge
2022-10-19 17:11:56 +02:00
parent ec99df3144
commit 54fc11a235
3 changed files with 5 additions and 7 deletions

View File

@@ -77,6 +77,8 @@ class CollectionBackendInterface : public QObject {
virtual QString songs_table() const = 0;
virtual QString fts_table() const = 0;
virtual Song::Source source() const = 0;
virtual Database *db() const = 0;
// Get a list of directories in the collection. Emits DirectoriesDiscovered.
@@ -139,6 +141,8 @@ class CollectionBackend : public CollectionBackendInterface {
void ReportErrors(const CollectionQuery &query);
Song::Source source() const override { return source_; }
Database *db() const override { return db_; }
QString songs_table() const override { return songs_table_; }
@@ -207,8 +211,6 @@ class CollectionBackend : public CollectionBackendInterface {
SongList SmartPlaylistsGetAllSongs();
SongList SmartPlaylistsFindSongs(const SmartPlaylistSearch &search);
Song::Source Source() const;
void AddOrUpdateSongsAsync(const SongList &songs);
void UpdateSongsBySongIDAsync(const SongMap &new_songs);