diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2012-12-15 09:55:53 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2012-12-15 09:55:53 +0000 |
| commit | 3a965fcd45d585c7e49afcc4b0d2e2d6ef8fe1f5 (patch) | |
| tree | d9ff3cd9621804632dca6001ad20ffb5f52de3f8 /src/qmmpui/qmmpuisettings.h | |
| parent | f31d9ccf3dda970ce2f4139a8c2ab205759c5523 (diff) | |
| download | qmmp-3a965fcd45d585c7e49afcc4b0d2e2d6ef8fe1f5.tar.gz qmmp-3a965fcd45d585c7e49afcc4b0d2e2d6ef8fe1f5.tar.bz2 qmmp-3a965fcd45d585c7e49afcc4b0d2e2d6ef8fe1f5.zip | |
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
Diffstat (limited to 'src/qmmpui/qmmpuisettings.h')
| -rw-r--r-- | src/qmmpui/qmmpuisettings.h | 21 |
1 files changed, 19 insertions, 2 deletions
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 @@ -119,10 +119,27 @@ public: */ 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 |
