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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
@@ -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 )
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user