1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-28 11:42:42 +01: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 ()
: QObject()
, m_latchMode( PlaylistModes::StayOnSong )
, m_finished( false )
{
m_id = uuid();
}

View File

@ -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<Tomahawk::query_ptr> filterTracks( const QList<Tomahawk::query_ptr>& queries );
PlaylistModes::LatchMode m_latchMode;
bool m_finished;
private:
Q_DISABLE_COPY( PlaylistInterface )