void TrackWidget::onLoveClicked( bool loved ) { if ( loved ) { MutableTrack( m_track ).love(); AnalyticsService::instance().sendEvent( aApp->currentCategory(), LOVE_TRACK, "TrackLoved"); } else { MutableTrack( m_track ).unlove(); AnalyticsService::instance().sendEvent( aApp->currentCategory(), LOVE_TRACK, "TrackUnLoved"); } }
void PlaybackControlsWidget::onBanClicked() { QNetworkReply* banReply = MutableTrack( RadioService::instance().currentTrack() ).ban(); connect(banReply, SIGNAL(finished()), SLOT(onBanFinished())); }