1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-07 17:42:35 +02:00

* Added playlistChanged() signal to AudioEngine.

This commit is contained in:
Christian Muehlhaeuser 2011-03-02 23:58:13 +01:00
parent 9f61eec649
commit db981757ac
2 changed files with 12 additions and 2 deletions

View File

@ -313,7 +313,7 @@ AudioEngine::playItem( PlaylistInterface* playlist, const Tomahawk::result_ptr&
clearBuffers();
m_playlist = playlist;
setPlaylist( playlist );
m_currentTrackPlaylist = playlist;
loadTrack( result );
@ -372,6 +372,14 @@ AudioEngine::clearBuffers()
}
void
AudioEngine::setPlaylist( PlaylistInterface* playlist )
{
m_playlist = playlist;
emit playlistChanged( playlist );
}
void
AudioEngine::setCurrentTrack( const Tomahawk::result_ptr& result )
{

View File

@ -56,7 +56,7 @@ public slots:
void mute();
void playItem( PlaylistInterface* playlist, const Tomahawk::result_ptr& result );
void setPlaylist( PlaylistInterface* playlist ) { m_playlist = playlist; }
void setPlaylist( PlaylistInterface* playlist );
void setQueue( PlaylistInterface* queue ) { m_queue = queue; }
void onTrackAboutToClose();
@ -74,6 +74,8 @@ signals:
void timerSeconds( unsigned int secondsElapsed );
void timerPercentage( unsigned int percentage );
void playlistChanged( PlaylistInterface* playlist );
void error( AudioErrorCode errorCode );
private slots: