aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playstate.h
diff options
context:
space:
mode:
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();