1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

* Added itemAt( uint ) and indexOfResult( result ) to PlaylistInterface.

This commit is contained in:
Christian Muehlhaeuser
2012-11-16 08:26:59 +01:00
parent 739eac30eb
commit 342c4d2ec4

View File

@@ -45,11 +45,16 @@ public:
virtual int trackCount() const = 0;
virtual Tomahawk::result_ptr currentItem() const = 0;
virtual Tomahawk::result_ptr previousItem();
virtual bool hasNextItem() { return true; }
virtual bool hasPreviousItem() { return true; }
virtual Tomahawk::result_ptr nextItem();
virtual Tomahawk::result_ptr siblingItem( int itemsAway ) = 0;
virtual Tomahawk::result_ptr previousItem();
virtual Tomahawk::result_ptr siblingItem( int itemsAway, bool readOnly = false ) = 0;
virtual Tomahawk::query_ptr itemAt( unsigned int position ) const = 0;
virtual int indexOfResult( const Tomahawk::result_ptr& result ) const = 0;
virtual PlaylistModes::RepeatMode repeatMode() const = 0;