aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/qmmpuisettings.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2014-03-26 12:14:23 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2014-03-26 12:14:23 +0000
commit7bde21f66ddd82eb6e4a36c2f55154c5f872b03d (patch)
tree3e38b8e1de6c1f3c2a1ff9ac71a093a5cd3968ed /src/qmmpui/qmmpuisettings.h
parent24085d3e7901ba13477a4d6786abfd4c26fccd3c (diff)
downloadqmmp-7bde21f66ddd82eb6e4a36c2f55154c5f872b03d.tar.gz
qmmp-7bde21f66ddd82eb6e4a36c2f55154c5f872b03d.tar.bz2
qmmp-7bde21f66ddd82eb6e4a36c2f55154c5f872b03d.zip
added new option 'clear previous playlist when opening new one'
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4208 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/qmmpuisettings.h')
-rw-r--r--src/qmmpui/qmmpuisettings.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/qmmpui/qmmpuisettings.h b/src/qmmpui/qmmpuisettings.h
index 9df54b6ee..a070dc348 100644
--- a/src/qmmpui/qmmpuisettings.h
+++ b/src/qmmpui/qmmpuisettings.h
@@ -170,6 +170,17 @@ public:
*/
bool autoSavePlayList() const;
/*!
+ * Enable/disable feature to clear previous playlist when opening new one.
+ * @param enabled New setting for this option (\b true to enable)
+ */
+ void setClearPreviousPlayList(bool enabled);
+ /*!
+ * Return the current setting for the option to clear playlist when opening new one.
+ * @return \b true if the playlist should be saved automatically, \b false
+ * otherwise.
+ */
+ bool clearPreviousPlayList() const;
+ /*!
* Returns a pointer to the QmmpUiSettings instance.
*/
static QmmpUiSettings* instance();
@@ -250,6 +261,7 @@ private:
bool m_groups_enabled;
bool m_repeat_track;
bool m_no_pl_advance;
+ bool m_clear_prev_playlist;
//general
bool m_resume_on_startup;
QStringList m_exclude_filters, m_restrict_filters;