extragear/multimedia/amarok/src
Seb Ruiz
ruiz at kde.org
Tue Apr 22 04:53:06 CEST 2008
2008/4/22 Dan Meltzer <hydrogen at notyetimplemented.com>:
> SVN commit 799704 by dmeltzer:
>
> Some fairly service agnostic support for "loving" any track.
>
> This commits uses the engine controller (which may not be the best place for it, but not sure where else to put it)
> to emit a signal when the user "loves" a track. Interested services (or other parts of the application)
> can listen for this signal and behave as they wish. I'm bypassing the little action buttons for now as I'm
> not sure the best way to show only the one, but all the time (if lastfm is active). This adds a dbus call /Collection loveTrack
> as well as a global shortcut (default Meta + L) to love the current playing track.
> --- trunk/extragear/multimedia/amarok/src/EngineController.cpp #799703:799704
> @@ -318,6 +318,13 @@
> }
>
> void
> +EngineController::loveTrack()
> +{
> + if( m_currentTrack )
> + emit loveTrack( m_currentTrack );
> +}
> +
I'm not sure this belongs in the EngineController. Perhaps in the
Collection or MainWindow?
--
Seb Ruiz
http://www.sebruiz.net/
More information about the Amarok-devel
mailing list