From a0c457d7dd9d609bdf8de45d9b5ac6e578ae38b2 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 29 Aug 2010 19:29:03 +0000 Subject: added 'auto stop' option (patch by Avihay Baratz) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1862 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/mediaplayer.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/qmmpui/mediaplayer.h') diff --git a/src/qmmpui/mediaplayer.h b/src/qmmpui/mediaplayer.h index 19fd3f991..3809cdb3c 100644 --- a/src/qmmpui/mediaplayer.h +++ b/src/qmmpui/mediaplayer.h @@ -59,6 +59,10 @@ public: * Returns \b true if "Repeate Track" option is enabled, otherwise returns \b false */ bool isRepeatable() const; + /*! + * Returns \b true if "Auto Stop" option is enabled, otherwise returns \b false + */ + bool isAutoStopping() const; public slots: /*! @@ -82,6 +86,11 @@ public slots: * @param enable Repeate state of the current track (\b true - to repeat, \b false - to stop repeating) */ void setRepeatable(bool enable); + /*! + * Toggles the AutoStop feature. + * @param enable the AutoStop state (\b true - automatic stop, \b false - normal play) + */ + void setAutoStop(bool enable); signals: /*! @@ -89,9 +98,11 @@ signals: * @param enabled New repeate state of the current track (\b true - enabled, \b false - disabled) */ void repeatableChanged(bool enabled); + void autoStopChanged(bool enabled); private slots: void playNext(); + void autoStop(); void updateNextUrl(); private: @@ -99,6 +110,7 @@ private: SoundCore *m_core; static MediaPlayer* m_instance; bool m_repeat; + bool m_autoStop; int m_skips; QString m_nextUrl; }; -- cgit v1.2.3-13-gbd6f