예제 #1
0
void BaseTrackCache::slotTracksAdded(QSet<TrackId> trackIds) {
    if (sDebug) {
        qDebug() << this << "slotTracksAdded" << trackIds.size();
    }
    QSet<TrackId> updateTrackIds;
    for (const auto& trackId: trackIds) {
        updateTrackIds.insert(trackId);
    }
    updateTracksInIndex(updateTrackIds);
}
예제 #2
0
void BaseTrackCache::slotTracksAdded(QSet<int> trackIds) {
    if (sDebug) {
        qDebug() << this << "slotTracksAdded" << trackIds.size();
    }
    updateTracksInIndex(trackIds);
}
예제 #3
0
void BaseTrackCache::updateTrackInIndex(TrackId trackId) {
    QSet<TrackId> trackIds;
    trackIds.insert(trackId);
    updateTracksInIndex(trackIds);
}
예제 #4
0
void BaseTrackCache::ensureCached(QSet<TrackId> trackIds) {
    updateTracksInIndex(trackIds);
}