From e2bc4908a3397ded862d9e8494544131e4448158 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 15 Sep 2010 18:29:45 +0000 Subject: fixed problem with shuffle and crossfade git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1888 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playstate.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/qmmpui/playstate.h') diff --git a/src/qmmpui/playstate.h b/src/qmmpui/playstate.h index c03ac268e..011a02848 100644 --- a/src/qmmpui/playstate.h +++ b/src/qmmpui/playstate.h @@ -39,7 +39,10 @@ public: * If the step has done returns \b true, otherwise returns \b false */ virtual bool previous() = 0; - + /*! + * Returns next item index. + */ + virtual int nextIndex() = 0; /*! * Service method, resets state to it's defaults. */ @@ -77,6 +80,7 @@ class NormalPlayState : public PlayState public: virtual bool next(); virtual bool previous(); + virtual int nextIndex(); NormalPlayState(PlayListModel* model); }; @@ -89,6 +93,7 @@ class ShufflePlayState : public PlayState public: virtual bool next(); virtual bool previous(); + virtual int nextIndex(); virtual void prepare(); ShufflePlayState(PlayListModel* model); virtual void resetState(); -- cgit v1.2.3-13-gbd6f