mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-14 18:03:44 +01:00
Rename FindSongs
This commit is contained in:
parent
9ace66edb7
commit
062c59b321
@ -1444,7 +1444,7 @@ void CollectionBackend::DeleteAll() {
|
||||
|
||||
}
|
||||
|
||||
SongList CollectionBackend::FindSongs(const SmartPlaylistSearch &search) {
|
||||
SongList CollectionBackend::SmartPlaylistsFindSongs(const SmartPlaylistSearch &search) {
|
||||
|
||||
QMutexLocker l(db_->Mutex());
|
||||
QSqlDatabase db(db_->Connect());
|
||||
@ -1469,10 +1469,10 @@ SongList CollectionBackend::FindSongs(const SmartPlaylistSearch &search) {
|
||||
|
||||
}
|
||||
|
||||
SongList CollectionBackend::GetAllSongs() {
|
||||
SongList CollectionBackend::SmartPlaylistsGetAllSongs() {
|
||||
|
||||
// Get all the songs!
|
||||
return FindSongs(SmartPlaylistSearch(SmartPlaylistSearch::Type_All, SmartPlaylistSearch::TermList(), SmartPlaylistSearch::Sort_FieldAsc, SmartPlaylistSearchTerm::Field_Artist, -1));
|
||||
return SmartPlaylistsFindSongs(SmartPlaylistSearch(SmartPlaylistSearch::Type_All, SmartPlaylistSearch::TermList(), SmartPlaylistSearch::Sort_FieldAsc, SmartPlaylistSearchTerm::Field_Artist, -1));
|
||||
|
||||
}
|
||||
|
||||
|
@ -193,8 +193,8 @@ class CollectionBackend : public CollectionBackendInterface {
|
||||
|
||||
SongList GetSongsByFingerprint(const QString &fingerprint) override;
|
||||
|
||||
SongList GetAllSongs();
|
||||
SongList FindSongs(const SmartPlaylistSearch &search);
|
||||
SongList SmartPlaylistsGetAllSongs();
|
||||
SongList SmartPlaylistsFindSongs(const SmartPlaylistSearch &search);
|
||||
|
||||
Song::Source Source() const;
|
||||
|
||||
|
@ -86,7 +86,7 @@ PlaylistItemList PlaylistQueryGenerator::GenerateMore(const int count) {
|
||||
current_pos_ += search_copy.limit_;
|
||||
}
|
||||
|
||||
SongList songs = backend_->FindSongs(search_copy);
|
||||
SongList songs = backend_->SmartPlaylistsFindSongs(search_copy);
|
||||
PlaylistItemList items;
|
||||
items.reserve(songs.count());
|
||||
for (const Song &song : songs) {
|
||||
|
Loading…
Reference in New Issue
Block a user