From 3a965fcd45d585c7e49afcc4b0d2e2d6ef8fe1f5 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 15 Dec 2012 09:55:53 +0000 Subject: added playlists auto-save feauture (patch by Ferdinand Vesely) (Closes issue 536), changed playlist api git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3063 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/qmmpuisettings.h | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'src/qmmpui/qmmpuisettings.h') diff --git a/src/qmmpui/qmmpuisettings.h b/src/qmmpui/qmmpuisettings.h index b329339bf..9c2960859 100644 --- a/src/qmmpui/qmmpuisettings.h +++ b/src/qmmpui/qmmpuisettings.h @@ -118,11 +118,28 @@ public: * @param enabled Default playlist state (\b true - enabled, \b false - disabled). */ void setDefaultPlayList(const QString &name, bool enabled = true); + /*! + * Enable/disable playlist auto-saving. + * @param enabled New setting for the auto-save option (\b true to enable) + */ + void setAutoSavePlayList(bool enabled); + /*! + * Return the current setting for the playlist auto-save option. + * @return \b true if the playlist should be saved automatically, \b false + * otherwise. + */ + bool autoSavePlayList() const; /*! * Returns a pointer to the QmmpUiSettings instance. */ static QmmpUiSettings* instance(); +signals: + /*! + * Emitted when the playlist settings change. + */ + void playListSettingsChanged(); + public slots: /*! * Writes all unsaved settings to configuration file @@ -141,8 +158,8 @@ private: //default playlist bool m_use_default_pl; QString m_default_pl_name; - - + //playlist auto-save option + bool m_autosave_playlist; }; #endif // QMMPUISETTINGS_H -- cgit v1.2.3-13-gbd6f