CollectionBackend/CollectionWatcher: add HasSongsWithMissingLoudnessCharacteristics logic

Exactly identical to the "missing fingerprint" logic,
just for the two new fields being added.
This commit is contained in:
Roman Lebedev
2023-06-27 05:01:26 +03:00
committed by Jonas Kvinge
parent 0ea81b13b9
commit f905676b1c
4 changed files with 45 additions and 0 deletions

View File

@@ -102,6 +102,7 @@ class CollectionWatcher : public QObject {
SongList FindSongsInSubdirectory(const QString &path);
bool HasSongsWithMissingFingerprint(const QString &path);
bool HasSongsWithMissingLoudnessCharacteristics(const QString &path);
bool HasSeenSubdir(const QString &path);
void SetKnownSubdirs(const CollectionSubdirectoryList &subdirs);
CollectionSubdirectoryList GetImmediateSubdirs(const QString &path);
@@ -156,6 +157,9 @@ class CollectionWatcher : public QObject {
QMultiMap<QString, Song> cached_songs_missing_fingerprint_;
bool cached_songs_missing_fingerprint_dirty_;
QMultiMap<QString, Song> cached_songs_missing_loudness_characteristics_;
bool cached_songs_missing_loudness_characteristics_dirty_;
CollectionSubdirectoryList known_subdirs_;
bool known_subdirs_dirty_;
};