aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playstate.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-09-15 18:29:45 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-09-15 18:29:45 +0000
commite2bc4908a3397ded862d9e8494544131e4448158 (patch)
treea72cb3ed23c4df927739df3a57a387b80c12ffed /src/qmmpui/playstate.h
parent4b02064e9f260443c38ba6e145d64715b9031e27 (diff)
downloadqmmp-e2bc4908a3397ded862d9e8494544131e4448158.tar.gz
qmmp-e2bc4908a3397ded862d9e8494544131e4448158.tar.bz2
qmmp-e2bc4908a3397ded862d9e8494544131e4448158.zip
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
Diffstat (limited to 'src/qmmpui/playstate.h')
-rw-r--r--src/qmmpui/playstate.h7
1 files changed, 6 insertions, 1 deletions
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();