diff --git a/src/libtomahawk/PlaylistInterface.cpp b/src/libtomahawk/PlaylistInterface.cpp index a8b24ebb8..d255ab766 100644 --- a/src/libtomahawk/PlaylistInterface.cpp +++ b/src/libtomahawk/PlaylistInterface.cpp @@ -29,6 +29,7 @@ using namespace Tomahawk; PlaylistInterface::PlaylistInterface () : QObject() , m_latchMode( PlaylistModes::StayOnSong ) + , m_finished( false ) { m_id = uuid(); } diff --git a/src/libtomahawk/PlaylistInterface.h b/src/libtomahawk/PlaylistInterface.h index fa18a4de7..380c80430 100644 --- a/src/libtomahawk/PlaylistInterface.h +++ b/src/libtomahawk/PlaylistInterface.h @@ -40,6 +40,7 @@ public: const QString id() { return m_id; } virtual QList< Tomahawk::query_ptr > tracks() = 0; + virtual bool isFinished() const { return m_finished; } virtual int unfilteredTrackCount() const = 0; virtual int trackCount() const = 0; @@ -91,7 +92,8 @@ protected: virtual QList filterTracks( const QList& queries ); PlaylistModes::LatchMode m_latchMode; - + bool m_finished; + private: Q_DISABLE_COPY( PlaylistInterface )