1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

* Added a isFinished and m_finished to PlaylistInterface.

This commit is contained in:
Christian Muehlhaeuser
2012-06-26 04:59:46 +02:00
parent 6fc4f2a89a
commit 3a580faa1d
2 changed files with 4 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ using namespace Tomahawk;
PlaylistInterface::PlaylistInterface () PlaylistInterface::PlaylistInterface ()
: QObject() : QObject()
, m_latchMode( PlaylistModes::StayOnSong ) , m_latchMode( PlaylistModes::StayOnSong )
, m_finished( false )
{ {
m_id = uuid(); m_id = uuid();
} }

View File

@@ -40,6 +40,7 @@ public:
const QString id() { return m_id; } const QString id() { return m_id; }
virtual QList< Tomahawk::query_ptr > tracks() = 0; virtual QList< Tomahawk::query_ptr > tracks() = 0;
virtual bool isFinished() const { return m_finished; }
virtual int unfilteredTrackCount() const = 0; virtual int unfilteredTrackCount() const = 0;
virtual int trackCount() const = 0; virtual int trackCount() const = 0;
@@ -91,7 +92,8 @@ protected:
virtual QList<Tomahawk::query_ptr> filterTracks( const QList<Tomahawk::query_ptr>& queries ); virtual QList<Tomahawk::query_ptr> filterTracks( const QList<Tomahawk::query_ptr>& queries );
PlaylistModes::LatchMode m_latchMode; PlaylistModes::LatchMode m_latchMode;
bool m_finished;
private: private:
Q_DISABLE_COPY( PlaylistInterface ) Q_DISABLE_COPY( PlaylistInterface )