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