diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-08-29 19:29:03 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-08-29 19:29:03 +0000 |
| commit | a0c457d7dd9d609bdf8de45d9b5ac6e578ae38b2 (patch) | |
| tree | ec0b5e90acc2445f9888c222af2ab530daf91ffb /src/qmmpui/mediaplayer.h | |
| parent | 9aa6aaa154d5671fa1ab656b2ae739b2c1129f36 (diff) | |
| download | qmmp-a0c457d7dd9d609bdf8de45d9b5ac6e578ae38b2.tar.gz qmmp-a0c457d7dd9d609bdf8de45d9b5ac6e578ae38b2.tar.bz2 qmmp-a0c457d7dd9d609bdf8de45d9b5ac6e578ae38b2.zip | |
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
Diffstat (limited to 'src/qmmpui/mediaplayer.h')
| -rw-r--r-- | src/qmmpui/mediaplayer.h | 12 |
1 files changed, 12 insertions, 0 deletions
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; }; |
