void AimpTuneController::sendTune(const Tune &tune) { if (tune != _currentTune && !tune.isNull()) { _currentTune = tune; _tuneSent = true; } }
/** * Polls for new song info. */ void PollingTuneController::check() { Tune tune = currentTune(); if (prev_tune_ != tune) { prev_tune_ = tune; if (tune.isNull()) { emit stopped(); } else { emit playing(tune); } } }