From 3a580faa1deeb42bb1ebc6c32eecdb4e370b4782 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Tue, 26 Jun 2012 04:59:46 +0200 Subject: [PATCH] * Added a isFinished and m_finished to PlaylistInterface. --- src/libtomahawk/PlaylistInterface.cpp | 1 + src/libtomahawk/PlaylistInterface.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 )