Beispiel #1
0
void AutoDJFeature::slotCrateDeleted(int crateId) {
#ifdef __AUTODJCRATES__
    // The crate can't be queried for its auto-DJ status, because it's been
    // deleted by the time this code is reached.  But we can handle that.
    // Another solution would be to add a "crateDeleting" signal to CrateDAO.
    slotCrateAutoDjChanged(crateId, false);
#endif // __AUTODJCRATES__
}
Beispiel #2
0
void AutoDJFeature::slotCrateAdded(int crateId) {
#ifdef __AUTODJCRATES__
    // If this newly-added crate is in the auto-DJ queue, add it to the list.
    if (m_crateDao.isCrateInAutoDj(crateId)) {
        slotCrateAutoDjChanged(crateId, true);
    }
#endif // __AUTODJCRATES__
}
Beispiel #3
0
// Signaled by the crate DAO when a crate is added.
void AutoDJCratesDAO::slotCrateAdded(int crateId) {
    // If this newly-added crate is in the auto-DJ queue, add it to the list.
    if (m_rCrateDAO.isCrateInAutoDj(crateId)) {
        slotCrateAutoDjChanged(crateId, true);
    }
}