aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playlistmanager.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2012-12-15 09:55:53 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2012-12-15 09:55:53 +0000
commit3a965fcd45d585c7e49afcc4b0d2e2d6ef8fe1f5 (patch)
treed9ff3cd9621804632dca6001ad20ffb5f52de3f8 /src/qmmpui/playlistmanager.h
parentf31d9ccf3dda970ce2f4139a8c2ab205759c5523 (diff)
downloadqmmp-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/playlistmanager.h')
-rw-r--r--src/qmmpui/playlistmanager.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/qmmpui/playlistmanager.h b/src/qmmpui/playlistmanager.h
index 3b3dcaea9..14de512ea 100644
--- a/src/qmmpui/playlistmanager.h
+++ b/src/qmmpui/playlistmanager.h
@@ -23,6 +23,8 @@
#include <QObject>
#include "playlistmodel.h"
+class QTimer;
+
/*! @brief The PlayListManager class is used to handle multiple playlists.
* @author Ilya Kotov <forkotov02@hotmail.ru>
*/
@@ -260,15 +262,23 @@ public slots:
* This is a convenience function and is the same as calling \b selectedPlayList()->stopAfterSelected()
*/
void stopAfterSelected();
+ /*!
+ * Read the relevant settings.
+ */
+ void readSettings();
+
+private slots:
+ void writePlayLists();
private:
void readPlayLists();
- void writePlayLists();
+ void setAutoSavePlayList();
static PlayListManager* m_instance;
QList <PlayListModel *> m_models;
PlayListModel *m_current;
PlayListModel *m_selected;
- bool m_repeatable, m_shuffle;
+ bool m_repeatable, m_shuffle, m_autosave_playlist;
+ QTimer *m_timer;
};
#endif // PLAYLISTMANAGER_H